Versions in this module Expand all Collapse all v0 v0.1.0 May 23, 2026 Changes in this version + var ErrNoRows = errors.New("mapper: no rows") + var ErrTooManyRows = errors.New("mapper: too many rows") + func AsBool(v any) (bool, bool) + func AsInt(v any) (int, bool) + func AsInt64(v any) (int64, bool) + func AsString(v any) (string, bool) + func AsTime(v any) (time.Time, bool) + func AssignValue(dst reflect.Value, src any) error + func ClearNamedStructScanPlanCache() + func CurrentSchemaVersion() string + func FillFromMap[T any](dst *T, m map[string]any) error + func ScanMapRows(rows Rows, each func(row map[string]any) error) error + func ScanStructOne[T any](rows Rows) (*T, error) + func ScanStructRowsWithCacheKey[T any](rows Rows, cacheKey string, each func(*T) error) error + func ScanStructRows[T any](rows Rows, each func(*T) error) error + func ScanStructSlice[T any](rows Rows) ([]T, error) + func SetSchemaVersion(version string) + func ToSnakeCase(s string) string + type NullStringLike struct + String string + Valid bool + type NullTimeLike struct + Time time.Time + Valid bool + type Row map[string]any + func (r Row) Bool(key string) (bool, bool) + func (r Row) Int(key string) (int, bool) + func (r Row) Int64(key string) (int64, bool) + func (r Row) String(key string) (string, bool) + func (r Row) Time(key string) (time.Time, bool) + type Rows interface + Close func() error + Columns func() ([]string, error) + Err func() error + Next func() bool + Scan func(dest ...any) error + type ScanMapper interface + ScanMap func(map[string]any) error