Documentation
¶
Overview ¶
Package sqlbind provides generated, reflection-free database/sql row mapping.
Index ¶
- func Bool(row Row, column string) (bool, error)
- func Float64(row Row, column string) (float64, error)
- func ForEach(rows *sql.Rows, fn func(Row) error) error
- func Int(row Row, column string) (int, error)
- func Int64(row Row, column string) (int64, error)
- func Key(row Row, column string) (key string, present bool, err error)
- func RegisterScanRows[T any](fn func(*sql.Rows) ([]T, error))
- func RequiredKey(row Row, column string) (string, error)
- func ScanRows[T any](rows *sql.Rows) ([]T, error)
- func String(row Row, column string) (string, error)
- type Row
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterScanRows ¶
RegisterScanRows registers a generated SQL tree scanner for T.
func RequiredKey ¶
RequiredKey is Key with NULL rejected for a root object.
Types ¶
Click to show internal directories.
Click to hide internal directories.