Documentation
¶
Index ¶
- type Conn
- func (conn *Conn) Begin(ctx context.Context) (*Tx, error)
- func (conn *Conn) BeginTx(ctx context.Context, opts *sql.TxOptions) (*Tx, error)
- func (conn *Conn) Close() error
- func (conn *Conn) Conn() *sql.Conn
- func (conn *Conn) Exec(ctx context.Context, query string, args ...interface{}) (sql.Result, error)
- func (conn *Conn) Find(ctx context.Context, dest interface{}, query string, args ...interface{}) error
- func (conn *Conn) FindAll(ctx context.Context, dest []interface{}, query string, args ...interface{}) error
- func (conn *Conn) Ping(ctx context.Context) error
- func (conn *Conn) Prepare(ctx context.Context, query string, examples ...interface{}) (*Stmt, error)
- func (conn *Conn) Query(ctx context.Context, query string, args ...interface{}) (*Rows, error)
- type DB
- func (db *DB) Begin(ctx context.Context) (*Tx, error)
- func (db *DB) BeginTx(ctx context.Context, opts *sql.TxOptions) (*Tx, error)
- func (db *DB) Close() error
- func (db *DB) DB() *sql.DB
- func (db *DB) Exec(ctx context.Context, query string, args ...interface{}) (sql.Result, error)
- func (db *DB) Find(ctx context.Context, dest interface{}, query string, args ...interface{}) error
- func (db *DB) FindAll(ctx context.Context, dest interface{}, query string, args ...interface{}) error
- func (db *DB) Ping(ctx context.Context) error
- func (db *DB) Prepare(ctx context.Context, query string, examples ...interface{}) (*Stmt, error)
- func (db *DB) Query(ctx context.Context, query string, args ...interface{}) (*Rows, error)
- type ExecFn
- type PrepareFn
- type QueryFn
- type Rows
- type Stmt
- type Tx
- func (tx *Tx) Commit() error
- func (tx *Tx) Exec(ctx context.Context, query string, args ...interface{}) (sql.Result, error)
- func (tx *Tx) Find(ctx context.Context, dest interface{}, query string, args ...interface{}) error
- func (tx *Tx) FindAll(ctx context.Context, dest []interface{}, query string, args ...interface{}) error
- func (tx *Tx) Prepare(ctx context.Context, query string, examples ...interface{}) (*Stmt, error)
- func (tx *Tx) Query(ctx context.Context, query string, args ...interface{}) (*Rows, error)
- func (tx *Tx) Rollback() error
- func (tx *Tx) Tx() *sql.Tx
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Conn ¶
type Conn struct {
// contains filtered or unexported fields
}
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
type Stmt ¶
type Stmt struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.