Documentation ¶
Index ¶
- Variables
- type DB
- func (db *DB) Begin(ctx context.Context) (*sqlx.Tx, error)
- func (db *DB) DriverName() string
- func (db *DB) ExecContext(ctx context.Context, query string, args ...interface{}) (sql.Result, error)
- func (db *DB) Get(dest interface{}, query string, args ...interface{}) error
- func (db *DB) GetContext(ctx context.Context, dest interface{}, query string, args ...interface{}) error
- func (db *DB) NamedExecContext(ctx context.Context, query string, arg interface{}) (sql.Result, error)
- func (db *DB) NamedGetContext(ctx context.Context, dest interface{}, query string, arg interface{}) error
- func (db *DB) NamedQueryContext(ctx context.Context, query string, arg interface{}) (*sqlx.Rows, error)
- func (db *DB) NamedSelectContext(ctx context.Context, dest interface{}, query string, arg interface{}) error
- func (db *DB) QueryxContext(ctx context.Context, query string, args ...interface{}) (*sqlx.Rows, error)
- func (db *DB) Rebind(sql string) string
- func (db *DB) Select(dest interface{}, query string, args ...interface{}) error
- func (db *DB) SelectContext(ctx context.Context, dest interface{}, query string, args ...interface{}) error
- func (db *DB) Transaction(ctx context.Context) (tx *sqlx.Tx)
- func (db *DB) WithNewOwnedTransaction(ctx context.Context, fn func(context.Context, *sqlx.Tx) error) error
- func (db *DB) WithNewTransaction(ctx context.Context, fn func(context.Context) error) error
Constants ¶
This section is empty.
Variables ¶
View Source
var TxContextKey = transactionContextKey("sqlx.tx")
Functions ¶
This section is empty.
Types ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
func (*DB) DriverName ¶
func (*DB) ExecContext ¶
func (*DB) GetContext ¶
func (*DB) NamedExecContext ¶
func (*DB) NamedGetContext ¶
func (*DB) NamedQueryContext ¶
func (*DB) NamedSelectContext ¶
func (*DB) QueryxContext ¶
func (*DB) SelectContext ¶
func (*DB) WithNewOwnedTransaction ¶
Click to show internal directories.
Click to hide internal directories.