Documentation
¶
Overview ¶
Package pgxmigrate provides a migrate.DB adapter for pgx.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Querier ¶
type Querier interface {
Exec(ctx context.Context, sql string, args ...any) (pgconn.CommandTag, error)
Query(ctx context.Context, sql string, args ...any) (pgx.Rows, error)
Begin(ctx context.Context) (pgx.Tx, error)
}
Querier is the subset of pgx methods used by the migrator. Both *pgxpool.Pool and *pgx.Conn satisfy this interface.
Click to show internal directories.
Click to hide internal directories.