Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶ added in v0.3.5
type DB interface { Querier BeginTxx(ctx context.Context, opts *sql.TxOptions) (Tx, error) Close() error }
DB wraps sqlx.Tx and sqlx.DB https://github.com/jmoiron/sqlx/issues/344#issuecomment-318372779
type Querier ¶ added in v0.3.5
type Querier interface { NamedExecContext(ctx context.Context, query string, arg interface{}) (sql.Result, error) ExecContext(ctx context.Context, query string, args ...interface{}) (sql.Result, error) GetContext(ctx context.Context, dest interface{}, query string, args ...interface{}) error Rebind(query string) string SelectContext(ctx context.Context, dest interface{}, query string, args ...interface{}) error }
Querier common operations for sqlx.Tx and sqlx.DB
Click to show internal directories.
Click to hide internal directories.