Versions in this module Expand all Collapse all v1 v1.0.1 Aug 17, 2026 Changes in this version + const AT + const DOLLAR + const NAMED + const QUESTION + const UNKNOWN + var ErrMultiRows = errors.New("sql: multiple rows returned") + var NameMapper = strings.ToLower + func BindDriver(driverName string, bindType int) + func BindType(driverName string) int + func FieldsByTraversal(v reflect.Value, traversals [][]int, values []any, ptrs bool) error + func Get(q Queryer, dest any, query string, args ...any) error + func In(query string, args ...any) (string, []any, error) + func IsScannable(t reflect.Type) bool + func MapScan(r ColScanner, dest map[string]any) error + func Mapper() *reflectx.Mapper + func MustExec(e Execer, query string, args ...any) sql.Result + func Rebind(bindType int, query string) string + func RebindBuff(bindType int, query string) string + func ScanAll(rows Rowsi, dest any, structOnly bool, unsafe bool) error + func Select(q Queryer, dest any, query string, args ...any) error + func SetLogMode(m LogMode) + func SetLogger(l Logger) + func SliceScan(r ColScanner) ([]any, error) + func StructScan(rows Rowsi, dest any) error + type Binder interface + BindNamed func(string, any) (string, []any, error) + DriverName func() string + Rebind func(string) string + type ColScanner interface + Columns func() ([]string, error) + Err func() error + Scan func(dest ...any) error + type Execer interface + Exec func(query string, args ...any) (sql.Result, error) + type Ext interface + type LogEntry struct + Args []any + Duration time.Duration + Err error + Operation string + Query string + RowsAffected int64 + type LogMode int + const LogDebug + const LogProd + func GetLogMode() LogMode + type Logger interface + LogSQL func(entry LogEntry) + func GetLogger() Logger + type Preparer interface + Prepare func(query string) (*sql.Stmt, error) + type Queryer interface + Query func(query string, args ...any) (*sql.Rows, error) + QueryRowx func(query string, args ...any) *Row + Queryx func(query string, args ...any) (*Rows, error) + type Row struct + Mapper *reflectx.Mapper + Rows *sql.Rows + Unsafe bool + func NewRow(rows *sql.Rows, err error, unsafe bool, mapper *reflectx.Mapper) *Row + func (r *Row) ColumnTypes() ([]*sql.ColumnType, error) + func (r *Row) Columns() ([]string, error) + func (r *Row) Err() error + func (r *Row) MapScan(dest map[string]any) error + func (r *Row) Scan(dest ...any) error + func (r *Row) ScanAny(dest any, structOnly bool) error + func (r *Row) SliceScan() ([]any, error) + func (r *Row) StructScan(dest any) error + type Rows struct + Mapper *reflectx.Mapper + Unsafe bool + func (r *Rows) MapScan(dest map[string]any) error + func (r *Rows) NextResultSet() bool + func (r *Rows) SliceScan() ([]any, error) + func (r *Rows) StructScan(dest any) error + type Rowsi interface + Close func() error + Columns func() ([]string, error) + Err func() error + Next func() bool + Scan func(...any) error