Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
type DB interface { SQLExecer Transactor Pinger Close() }
DB is an interface for database driver.
type NamedExecer ¶
type NamedExecer interface { ScanOneContext(context.Context, interface{}, Query, ...interface{}) error ScanAllContext(context.Context, interface{}, Query, ...interface{}) error }
NamedExecer is an interface for database named query.
type QueryExecer ¶
type QueryExecer interface { ExecContext(context.Context, Query, ...interface{}) (pgconn.CommandTag, error) QueryContext(context.Context, Query, ...interface{}) (pgx.Rows, error) QueryRowContext(context.Context, Query, ...interface{}) pgx.Row }
QueryExecer is an interface for database common query.
type SQLExecer ¶
type SQLExecer interface { NamedExecer QueryExecer }
SQLExecer complex NamedExecer & QueryExecer
type Transactor ¶
Transactor is an interface for beggin database transaction.
Click to show internal directories.
Click to hide internal directories.