Documentation ¶
Index ¶
- type Core
- type DB
- func (d *DB) Exec(ctx context.Context, query string, args ...interface{}) (sql.Result, error)
- func (d *DB) Query(ctx context.Context, query string, args ...interface{}) (*Rows, error)
- func (d *DB) QueryRow(ctx context.Context, query string, args ...interface{}) (*Row, error)
- func (d *DB) Tx(ctx context.Context, f func(context.Context) error) error
- type DBItf
- type Row
- type Rows
- type Tx
- func (t *Tx) Commit() error
- func (t *Tx) Exec(ctx context.Context, query string, args ...interface{}) (sql.Result, error)
- func (t *Tx) Query(ctx context.Context, query string, args ...interface{}) (*Rows, error)
- func (t *Tx) QueryRow(ctx context.Context, query string, args ...interface{}) (*Row, error)
- func (t *Tx) Rollback() error
- func (t *Tx) Tx(f func() error) (err error)
- type TxItf
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.