Documentation ¶
Index ¶
- type DB
- type PGXTx
- func (_m *PGXTx) Begin(ctx context.Context) (pgx.Tx, error)
- func (_m *PGXTx) Commit(ctx context.Context) error
- func (_m *PGXTx) Conn() *pgx.Conn
- func (_m *PGXTx) CopyFrom(ctx context.Context, tableName pgx.Identifier, columnNames []string, ...) (int64, error)
- func (_m *PGXTx) Exec(ctx context.Context, sql string, arguments ...interface{}) (pgconn.CommandTag, error)
- func (_m *PGXTx) LargeObjects() pgx.LargeObjects
- func (_m *PGXTx) Prepare(ctx context.Context, name string, sql string) (*pgconn.StatementDescription, error)
- func (_m *PGXTx) Query(ctx context.Context, sql string, args ...interface{}) (pgx.Rows, error)
- func (_m *PGXTx) QueryRow(ctx context.Context, sql string, args ...interface{}) pgx.Row
- func (_m *PGXTx) Rollback(ctx context.Context) error
- func (_m *PGXTx) SendBatch(ctx context.Context, b *pgx.Batch) pgx.BatchResults
- type Pool
- type Tx
- func (_m *Tx) Commit() error
- func (_m *Tx) Exec(query string, args ...interface{}) (sql.Result, error)
- func (_m *Tx) ExecContext(ctx context.Context, query string, args ...interface{}) (sql.Result, error)
- func (_m *Tx) Prepare(query string) (*sql.Stmt, error)
- func (_m *Tx) PrepareContext(ctx context.Context, query string) (*sql.Stmt, error)
- func (_m *Tx) Query(query string, args ...interface{}) (*sql.Rows, error)
- func (_m *Tx) QueryContext(ctx context.Context, query string, args ...interface{}) (*sql.Rows, error)
- func (_m *Tx) QueryRow(query string, args ...interface{}) *sql.Row
- func (_m *Tx) QueryRowContext(ctx context.Context, query string, args ...interface{}) *sql.Row
- func (_m *Tx) Rollback() error
- func (_m *Tx) Stmt(stmt *sql.Stmt) *sql.Stmt
- func (_m *Tx) StmtContext(ctx context.Context, stmt *sql.Stmt) *sql.Stmt
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
DB is an autogenerated mock type for the DB type
type PGXTx ¶
PGXTx is an autogenerated mock type for the pgxTx type
func (*PGXTx) CopyFrom ¶
func (_m *PGXTx) 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 (*PGXTx) Exec ¶
func (_m *PGXTx) Exec(ctx context.Context, sql string, arguments ...interface{}) (pgconn.CommandTag, error)
Exec provides a mock function with given fields: ctx, sql, arguments
func (*PGXTx) LargeObjects ¶
func (_m *PGXTx) LargeObjects() pgx.LargeObjects
LargeObjects provides a mock function with given fields:
func (*PGXTx) Prepare ¶
func (_m *PGXTx) Prepare(ctx context.Context, name string, sql string) (*pgconn.StatementDescription, error)
Prepare provides a mock function with given fields: ctx, name, sql
type Pool ¶
Pool is an autogenerated mock type for the Pool type
type Tx ¶
Tx is an autogenerated mock type for the Tx type
func (*Tx) ExecContext ¶
func (_m *Tx) ExecContext(ctx context.Context, query string, args ...interface{}) (sql.Result, error)
ExecContext provides a mock function with given fields: ctx, query, args
func (*Tx) PrepareContext ¶
PrepareContext provides a mock function with given fields: ctx, query
func (*Tx) QueryContext ¶
func (_m *Tx) QueryContext(ctx context.Context, query string, args ...interface{}) (*sql.Rows, error)
QueryContext provides a mock function with given fields: ctx, query, args
func (*Tx) QueryRowContext ¶
QueryRowContext provides a mock function with given fields: ctx, query, args