libpq

package
v2.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 31, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConnPool

func NewConnPool(pool *sql.DB) adapter.ConnPool

NewConnPool instantiates new adapter.ConnPool using github.com/lib/pq

func NewTx

func NewTx(tx *sql.Tx) adapter.Tx

NewTx instantiates new adapter.Tx github.com/lib/pq

Types

type Tx

type Tx struct {
	// contains filtered or unexported fields
}

Tx implements adapter.Tx using github.com/lib/pq

func (*Tx) Commit

func (tx *Tx) Commit(ctx context.Context) error

Commit implements adapter.Tx.Commit() using github.com/lib/pq

func (*Tx) Exec

func (tx *Tx) Exec(ctx context.Context, sql string, arguments ...interface{}) (adapter.CommandTag, error)

Exec implements adapter.Tx.Exec() using github.com/lib/pq

func (*Tx) QueryRow

func (tx *Tx) QueryRow(ctx context.Context, sql string, args ...interface{}) adapter.Row

QueryRow implements adapter.Tx.QueryRow() using github.com/lib/pq

func (*Tx) Rollback

func (tx *Tx) Rollback(ctx context.Context) error

Rollback implements adapter.Tx.Rollback() using github.com/lib/pq

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL