Documentation ¶
Index ¶
- type Pool
- func (_m *Pool) Acquire(ctx context.Context) (*pgxpool.Conn, error)
- func (_m *Pool) AcquireAllIdle(ctx context.Context) []*pgxpool.Conn
- func (_m *Pool) AcquireFunc(ctx context.Context, f func(*pgxpool.Conn) error) error
- func (_m *Pool) Begin(ctx context.Context) (pgx.Tx, error)
- func (_m *Pool) BeginFunc(ctx context.Context, f func(pgx.Tx) error) error
- func (_m *Pool) BeginTx(ctx context.Context, txOptions pgx.TxOptions) (pgx.Tx, error)
- func (_m *Pool) BeginTxFunc(ctx context.Context, txOptions pgx.TxOptions, f func(pgx.Tx) error) error
- func (_m *Pool) Close()
- func (_m *Pool) Config() *pgxpool.Config
- func (_m *Pool) CopyFrom(ctx context.Context, tableName pgx.Identifier, columnNames []string, ...) (int64, error)
- func (_m *Pool) Exec(ctx context.Context, sql string, arguments ...interface{}) (pgconn.CommandTag, error)
- func (_m *Pool) Ping(ctx context.Context) error
- func (_m *Pool) Query(ctx context.Context, sql string, args ...interface{}) (pgx.Rows, error)
- func (_m *Pool) QueryFunc(ctx context.Context, sql string, args []interface{}, scans []interface{}, ...) (pgconn.CommandTag, error)
- func (_m *Pool) QueryRow(ctx context.Context, sql string, args ...interface{}) pgx.Row
- func (_m *Pool) SendBatch(ctx context.Context, b *pgx.Batch) pgx.BatchResults
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Pool ¶
Pool is an autogenerated mock type for the Pool type
func NewPool ¶
NewPool creates a new instance of Pool. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Pool) AcquireAllIdle ¶
AcquireAllIdle provides a mock function with given fields: ctx
func (*Pool) AcquireFunc ¶
AcquireFunc provides a mock function with given fields: ctx, f
func (*Pool) BeginTxFunc ¶
func (_m *Pool) BeginTxFunc(ctx context.Context, txOptions pgx.TxOptions, f func(pgx.Tx) error) error
BeginTxFunc provides a mock function with given fields: ctx, txOptions, f
func (*Pool) CopyFrom ¶
func (_m *Pool) CopyFrom(ctx context.Context, tableName pgx.Identifier, columnNames []string, rowSrc pgx.CopyFromSource) (int64, error)
CopyFrom provides a mock function with given fields: ctx, tableName, columnNames, rowSrc
func (*Pool) Exec ¶
func (_m *Pool) Exec(ctx context.Context, sql string, arguments ...interface{}) (pgconn.CommandTag, error)
Exec provides a mock function with given fields: ctx, sql, arguments
func (*Pool) QueryFunc ¶
func (_m *Pool) QueryFunc(ctx context.Context, sql string, args []interface{}, scans []interface{}, f func(pgx.QueryFuncRow) error) (pgconn.CommandTag, error)
QueryFunc provides a mock function with given fields: ctx, sql, args, scans, f