Documentation
¶
Index ¶
- func NewPgxPool(conn *pgxpool.Conn) *pgxManager
- func NewSqlx(db *sqlx.DB) *sqlxManager
- type Fn
- type MockTx
- func (m *MockTx) Begin(ctx context.Context) (pgx.Tx, error)
- func (m *MockTx) Conn() *pgx.Conn
- func (m *MockTx) CopyFrom(ctx context.Context, tableName pgx.Identifier, columnNames []string, ...) (int64, error)
- func (m *MockTx) Exec(ctx context.Context, sql string, arguments ...any) (commandTag pgconn.CommandTag, err error)
- func (m *MockTx) LargeObjects() pgx.LargeObjects
- func (m *MockTx) Prepare(ctx context.Context, name, sql string) (*pgconn.StatementDescription, error)
- func (m *MockTx) Query(ctx context.Context, sql string, args ...any) (pgx.Rows, error)
- func (m *MockTx) QueryRow(ctx context.Context, sql string, args ...any) pgx.Row
- func (m *MockTx) SendBatch(ctx context.Context, b *pgx.Batch) pgx.BatchResults
- type TxManager
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewPgxPool ¶
Types ¶
type MockTx ¶
func (*MockTx) CopyFrom ¶
func (m *MockTx) CopyFrom(ctx context.Context, tableName pgx.Identifier, columnNames []string, rowSrc pgx.CopyFromSource) (int64, error)
func (*MockTx) LargeObjects ¶
func (m *MockTx) LargeObjects() pgx.LargeObjects
Click to show internal directories.
Click to hide internal directories.