Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connection ¶
type Connection interface {
Exec(ctx context.Context, sql string, arguments ...any) (pgconn.CommandTag, error)
Query(ctx context.Context, sql string, args ...any) (pgx.Rows, error)
}
Connection is the pgx behavior required to execute generated queries.
type Preparer ¶
type Preparer interface {
Prepare(ctx context.Context, name, sql string) (*pgconn.StatementDescription, error)
}
Preparer is the pgx behavior required by generated PrepareStatements.
type Query ¶
Query is an executable generated PostgreSQL query returning T.
type Transaction ¶
type Transaction interface {
Connection
Commit(ctx context.Context) error
Rollback(ctx context.Context) error
}
Transaction is a transactional Connection.
Click to show internal directories.
Click to hide internal directories.