record

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 22, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrValueConvert = iota
	ErrColNotFind
	ErrEmptyName
	ErrParseRows
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ActiveRecord

type ActiveRecord struct {
	// contains filtered or unexported fields
}

func GetActiveRecord

func GetActiveRecord(rows *sql.Rows) (*ActiveRecord, error)

func (*ActiveRecord) Format

func (rd *ActiveRecord) Format(s fmt.State, verb rune)

func (*ActiveRecord) Get

func (rd *ActiveRecord) Get(colName string) (string,
	error)

func (*ActiveRecord) GetInt

func (rd *ActiveRecord) GetInt(colName string) (int, error)

func (*ActiveRecord) GetInt64

func (rd *ActiveRecord) GetInt64(colName string) (int64, error)

func (*ActiveRecord) GetString

func (rd *ActiveRecord) GetString(colName string) (string, error)

type ActiveRecordList

type ActiveRecordList []*ActiveRecord

func GetActiveRecordList

func GetActiveRecordList(rows *sql.Rows) (ActiveRecordList, error)

func (ActiveRecordList) Format

func (rds ActiveRecordList) Format(s fmt.State, verb rune)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL