Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PgxConn ¶
type PgxConn interface { Close() Exec(ctx context.Context, sql string, arguments ...interface{}) (pgconn.CommandTag, error) Query(ctx context.Context, sql string, args ...interface{}) (PgxRows, error) QueryRow(ctx context.Context, sql string, args ...interface{}) pgx.Row CopyFrom( ctx context.Context, tx pgx.Tx, tableName pgx.Identifier, columnNames []string, rowSrc pgx.CopyFromSource, oids []uint32, ) (int64, error) CopyFromRows(rows [][]interface{}) pgx.CopyFromSource NewBatch() PgxBatch SendBatch(ctx context.Context, b PgxBatch) (pgx.BatchResults, error) Acquire(ctx context.Context) (*pgxpool.Conn, error) BeginTx(ctx context.Context) (pgx.Tx, error) }
func NewPgxConn ¶
func NewQueryLoggingPgxConn ¶
This is only used by querier to log the time consumed by SQL queries executed using Query(), QueryRow()
Click to show internal directories.
Click to hide internal directories.