mocks

package
v0.0.24 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Conn

type Conn struct {
	mock.Mock
}

Conn is an autogenerated mock type for the Conn type

func (*Conn) Begin

func (_m *Conn) Begin(_a0 context.Context) (pgx.Tx, error)

Begin provides a mock function with given fields: _a0

func (*Conn) Close

func (_m *Conn) Close()

Close provides a mock function with given fields:

func (*Conn) Exec

func (_m *Conn) Exec(_a0 context.Context, _a1 string, _a2 ...interface{}) (pgconn.CommandTag, error)

Exec provides a mock function with given fields: _a0, _a1, _a2

func (*Conn) Query

func (_m *Conn) Query(_a0 context.Context, _a1 string, _a2 ...interface{}) (pgx.Rows, error)

Query provides a mock function with given fields: _a0, _a1, _a2

func (*Conn) QueryFunc

func (_m *Conn) QueryFunc(_a0 context.Context, _a1 string, _a2 []interface{}, _a3 []interface{}, _a4 func(pgx.QueryFuncRow) error) (pgconn.CommandTag, error)

QueryFunc provides a mock function with given fields: _a0, _a1, _a2, _a3, _a4

func (*Conn) QueryRow

func (_m *Conn) QueryRow(_a0 context.Context, _a1 string, _a2 ...interface{}) pgx.Row

QueryRow provides a mock function with given fields: _a0, _a1, _a2

func (*Conn) SendBatch

func (_m *Conn) SendBatch(_a0 context.Context, _a1 *pgx.Batch) pgx.BatchResults

SendBatch provides a mock function with given fields: _a0, _a1

Jump to

Keyboard shortcuts

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