Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Executor ¶
type Executor interface { SQL(query string, args ...interface{}) Params(args ...interface{}) Bind(call func(result Result) error) }
Executor interface for generate execute query
type PluginSetup ¶
type PluginSetup func(o *options)
func UsePluginLogger ¶
func UsePluginLogger(l log.Logger) PluginSetup
func UsePluginMetric ¶
func UsePluginMetric(m plugins.MetricExecutor) PluginSetup
type Querier ¶
type Querier interface { SQL(query string, args ...interface{}) Bind(call func(bind Scanner) error) }
Querier interface for generate query
type Scanner ¶
type Scanner interface {
Scan(args ...interface{}) error
}
Scanner interface for bind data
type Stmt ¶
type Stmt interface { Ping() error CallContext(name string, ctx context.Context, callFunc func(context.Context, *sql.DB) error) error TxContext(name string, ctx context.Context, callFunc func(context.Context, *sql.Tx) error) error ExecContext(name string, ctx context.Context, call func(q Executor)) error QueryContext(name string, ctx context.Context, call func(q Querier)) error TransactionContext(name string, ctx context.Context, call func(v Tx)) error }
Stmt statement model
Source Files ¶
Click to show internal directories.
Click to hide internal directories.