Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNilRows = errors.New("nil *sql.Rows as argument")
Functions ¶
This section is empty.
Types ¶
type LookupMapper ¶
type LookupMapper struct {
// contains filtered or unexported fields
}
type Mapper ¶
type Mapper interface {
//Get typeName should be sql type as is called in sql.ColumnType.DatabaseTypeName()
Get(typeName string, fallback reflect.Type) reflect.Type
//Type allow to set alias, extends or fix mapper behaviour
Type(t reflect.Type, asTypes ...string)
}
Mapper translate sql types to golang types
func DefaultMapper ¶
func DefaultMapper() Mapper
type Scanner ¶
type Scanner struct {
// contains filtered or unexported fields
}
func NewScanner ¶
Inspect set scanner to read a column set
func (*Scanner) Scan ¶
Scan return true if there are rows in queue and false if there is no more rows or an error occured. To distinguish between error or no more rows Err() method should be consulted
Click to show internal directories.
Click to hide internal directories.