Documentation ¶
Index ¶
- 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
- type CtxQuerier
- type Fixture
- type MapRow
- type MapRows
- type Row
- type Rows
- type StdoutLogger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func QueryDump ¶
func QueryDump(dbi interface{}, qry string, args ...interface{})
Dump result of query to output
func QueryInt ¶
func QueryInt(dbi CtxQuerier, qry string, args ...interface{}) (result int)
func QueryString ¶
func QueryString(dbi CtxQuerier, qry string, args ...interface{}) (result string)
Types ¶
type CtxQuerier ¶
type Fixture ¶
func NewFixture ¶
func NewFixture() *Fixture
func (*Fixture) RunMigrationFile ¶
func (*Fixture) RunMigrations ¶
func (f *Fixture) RunMigrations()
type MapRows ¶
type MapRows []MapRow
func QueryMaps ¶
func QueryMaps(dbi CtxQuerier, qry string, args ...interface{}) MapRows
Returns the result of a query as a loosely typed structure, for use with test code
type Rows ¶
type Rows []Row
func Query ¶
func Query(dbi CtxQuerier, qry string, args ...interface{}) Rows
type StdoutLogger ¶
type StdoutLogger struct { }
func (StdoutLogger) Printf ¶
func (s StdoutLogger) Printf(format string, v ...interface{})
func (StdoutLogger) Println ¶
func (s StdoutLogger) Println(v ...interface{})
Click to show internal directories.
Click to hide internal directories.