Versions in this module Expand all Collapse all v1 v1.0.2 Aug 26, 2022 Changes in this version type Builder + func (b *Builder) In(column string, args ...interface{}) *Builder v1.0.1 May 15, 2022 Changes in this version + type DB struct + func Connect(driverName, master string, slaves ...string) (*DB, error) + func (db *DB) PrepareContext(ctx context.Context, query string) (*sql.Stmt, error) v1.0.0 May 4, 2022 Changes in this version + func Build(ctx context.Context, f func(builder *Builder)) context.Context + func WithBuilder(ctx context.Context, b *Builder) context.Context + type Builder struct + func BuilderFrom(ctx context.Context) (*Builder, bool) + func (b *Builder) Build(query string, args ...interface{}) (string, []interface{}) + func (b *Builder) Limit(x int) *Builder + func (b *Builder) Offset(x int) *Builder + func (b *Builder) Order(cols string) *Builder + func (b *Builder) Where(query string, args ...interface{}) *Builder + type DBTX interface + ExecContext func(context.Context, string, ...interface{}) (sql.Result, error) + PrepareContext func(context.Context, string) (*sql.Stmt, error) + QueryContext func(context.Context, string, ...interface{}) (*sql.Rows, error) + QueryRowContext func(context.Context, string, ...interface{}) *sql.Row + func Wrap(db DBTX) DBTX