Versions in this module Expand all Collapse all v1 v1.0.0 Dec 23, 2021 Changes in this version + func NewPgx(conn PgxConn) *pgxConn + func NewSQL(conn SQLConn) *dbSQL + type Conn interface + BeginFunc func(ctx context.Context, f func(Conn) error) (err error) + Exec func(ctx context.Context, sql string, arguments ...interface{}) (int, error) + Query func(ctx context.Context, sql string, optionsAndArgs ...interface{}) (Rows, error) + type Engine struct + func New(conn Conn, options ...Option) *Engine + func (pg *Engine) Build(fixtures populator.Fixtures) ([]populator.Command, error) + func (pg *Engine) Exec(cmds []populator.Command) error + type Option func(*Engine) + func DisableForeignKeyCheck() Option + type PgxConn interface + Begin func(context.Context) (pgx.Tx, error) + Exec func(ctx context.Context, sql string, arguments ...interface{}) (pgconn.CommandTag, error) + Query func(ctx context.Context, sql string, optionsAndArgs ...interface{}) (pgx.Rows, error) + type Rows interface + Close func() + Err func() error + Next func() bool + Scan func(dest ...interface{}) error + type SQLConn interface + BeginTx func(context.Context, *sql.TxOptions) (*sql.Tx, error) + ExecContext func(ctx context.Context, sql string, arguments ...interface{}) (sql.Result, error) + QueryContext func(ctx context.Context, sql string, optionsAndArgs ...interface{}) (*sql.Rows, error)