Versions in this module Expand all Collapse all v2 v2.0.2 Jan 9, 2026 v2.0.1 Jan 9, 2026 Changes in this version + var SQL = sqlcode.MustInclude(sqlcode.Options{}, sqlfs) + func DumpRows(rows *sql.Rows) + func QueryDump(dbi interface{}, qry string, args ...interface{}) + func QueryInt(dbi CtxQuerier, qry string, args ...interface{}) (result int) + func QueryString(dbi CtxQuerier, qry string, args ...interface{}) (result string) + func QueryTime(dbi CtxQuerier, qry string, args ...interface{}) (result time.Time) + type CtxExecer interface + ExecContext func(ctx context.Context, query string, args ...interface{}) (sql.Result, error) + type CtxQuerier interface + QueryContext func(ctx context.Context, query string, args ...interface{}) (*sql.Rows, error) + QueryRowContext func(ctx context.Context, query string, args ...interface{}) *sql.Row + type Fixture struct + DB *sql.DB + DBName string + Driver SqlDriverType + func NewFixture() *Fixture + func (f *Fixture) IsPostgresql() bool + func (f *Fixture) IsSqlServer() bool + func (f *Fixture) Quote(value string) string + func (f *Fixture) RunIfMssql(t *testing.T, name string, fn func(t *testing.T)) + func (f *Fixture) RunMigrationFile(filename string) + func (f *Fixture) Teardown() + type MapRow map[string]interface + type MapRows []MapRow + func QueryMaps(dbi CtxQuerier, qry string, args ...interface{}) MapRows + func RowsMap(columns []string, rows Rows) (outRows MapRows) + type Row []interface + type Rows []Row + func Query(dbi CtxQuerier, qry string, args ...interface{}) Rows + func RowIteratorToSlice(rows *sql.Rows) (columns []string, result Rows) + type SqlDriverType int + const SqlDriverMssql + const SqlDriverPgx + type StdoutLogger struct + func (s StdoutLogger) Printf(format string, v ...interface{}) + func (s StdoutLogger) Println(v ...interface{})