mocks

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 16, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

type DB struct {
	mock.Mock
}

DB is an autogenerated mock type for the DB type

func (*DB) Begin

func (_m *DB) Begin() (dbtools.Tx, error)

Begin provides a mock function with given fields:

func (*DB) BeginTx

func (_m *DB) BeginTx(ctx context.Context, opts *sql.TxOptions) (dbtools.Tx, error)

BeginTx provides a mock function with given fields: ctx, opts

type PGXTx

type PGXTx struct {
	mock.Mock
}

PGXTx is an autogenerated mock type for the pgxTx type

func (*PGXTx) Begin

func (_m *PGXTx) Begin(ctx context.Context) (pgx.Tx, error)

Begin provides a mock function with given fields: ctx

func (*PGXTx) Commit

func (_m *PGXTx) Commit(ctx context.Context) error

Commit provides a mock function with given fields: ctx

func (*PGXTx) Conn

func (_m *PGXTx) Conn() *pgx.Conn

Conn provides a mock function with given fields:

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

func (*PGXTx) Query

func (_m *PGXTx) Query(ctx context.Context, sql string, args ...interface{}) (pgx.Rows, error)

Query provides a mock function with given fields: ctx, sql, args

func (*PGXTx) QueryRow

func (_m *PGXTx) QueryRow(ctx context.Context, sql string, args ...interface{}) pgx.Row

QueryRow provides a mock function with given fields: ctx, sql, args

func (*PGXTx) Rollback

func (_m *PGXTx) Rollback(ctx context.Context) error

Rollback provides a mock function with given fields: ctx

func (*PGXTx) SendBatch

func (_m *PGXTx) SendBatch(ctx context.Context, b *pgx.Batch) pgx.BatchResults

SendBatch provides a mock function with given fields: ctx, b

type Pool

type Pool struct {
	mock.Mock
}

Pool is an autogenerated mock type for the Pool type

func (*Pool) Begin

func (_m *Pool) Begin(ctx context.Context) (pgx.Tx, error)

Begin provides a mock function with given fields: ctx

func (*Pool) BeginTx

func (_m *Pool) BeginTx(ctx context.Context, txOptions pgx.TxOptions) (pgx.Tx, error)

BeginTx provides a mock function with given fields: ctx, txOptions

type Tx

type Tx struct {
	mock.Mock
}

Tx is an autogenerated mock type for the Tx type

func (*Tx) Commit

func (_m *Tx) Commit() error

Commit provides a mock function with given fields:

func (*Tx) Exec

func (_m *Tx) Exec(query string, args ...interface{}) (sql.Result, error)

Exec provides a mock function with given fields: query, args

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) Prepare

func (_m *Tx) Prepare(query string) (*sql.Stmt, error)

Prepare provides a mock function with given fields: query

func (*Tx) PrepareContext

func (_m *Tx) PrepareContext(ctx context.Context, query string) (*sql.Stmt, error)

PrepareContext provides a mock function with given fields: ctx, query

func (*Tx) Query

func (_m *Tx) Query(query string, args ...interface{}) (*sql.Rows, error)

Query provides a mock function with given fields: query, args

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) QueryRow

func (_m *Tx) QueryRow(query string, args ...interface{}) *sql.Row

QueryRow provides a mock function with given fields: query, args

func (*Tx) QueryRowContext

func (_m *Tx) QueryRowContext(ctx context.Context, query string, args ...interface{}) *sql.Row

QueryRowContext provides a mock function with given fields: ctx, query, args

func (*Tx) Rollback

func (_m *Tx) Rollback() error

Rollback provides a mock function with given fields:

func (*Tx) Stmt

func (_m *Tx) Stmt(stmt *sql.Stmt) *sql.Stmt

Stmt provides a mock function with given fields: stmt

func (*Tx) StmtContext

func (_m *Tx) StmtContext(ctx context.Context, stmt *sql.Stmt) *sql.Stmt

StmtContext provides a mock function with given fields: ctx, stmt

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL