Documentation ¶
Index ¶
- func MustOpen(conn string) db.DB
- func Open(conn string) (db.DB, error)
- type DB
- func (d *DB) BeginTx(ctx context.Context, isolationLevel string) (db.Tx, error)
- func (d *DB) Close() error
- func (d *DB) ErrGetCode(err error) string
- func (d *DB) ErrNoRows() error
- func (d *DB) Exec(query string, args ...interface{}) (db.Result, error)
- func (d *DB) Query(query string, args ...interface{}) (db.Rows, error)
- func (d *DB) QueryRow(query string, args ...interface{}) db.Row
- type Result
- type Rows
- type Tx
- func (t *Tx) Commit(ctx context.Context) error
- func (t *Tx) ExecContext(ctx context.Context, query string, args ...interface{}) (db.Result, error)
- func (t *Tx) QueryContext(ctx context.Context, query string, args ...interface{}) (db.Rows, error)
- func (t *Tx) QueryRowContext(ctx context.Context, query string, args ...interface{}) db.Row
- func (t *Tx) Rollback(ctx context.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Result ¶
type Result struct {
// contains filtered or unexported fields
}
func (Result) RowsAffected ¶
type Tx ¶
type Tx struct {
pgx.Tx
}
func (*Tx) ExecContext ¶
func (*Tx) QueryContext ¶
func (*Tx) QueryRowContext ¶
Click to show internal directories.
Click to hide internal directories.