Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logf ¶
type Logf func(format string, v ...interface{})
Logf interface for logging formatted messages such as log.Fatalf, log.Panicf, or log.Printf
type Named ¶
Named map of queries and their *sqlx.NamedStmt counterparts.
func (*Named) Add ¶
Add queries to the Named stmts map. Statements for these queries can be retrieved using the same query after the map has been prepared.
func (*Named) MustPrepare ¶
MustPrepare prepares all the queries in the map and triggers the provided logf function if something goes wrong
Click to show internal directories.
Click to hide internal directories.