mocks

package
v0.3.20 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2022 License: MIT Imports: 6 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

type ConnX added in v0.0.25

type ConnX struct {
	mock.Mock
}

ConnX is an autogenerated mock type for the ConnX type

func (*ConnX) Beginx added in v0.0.25

func (_m *ConnX) Beginx() (*sqlx.Tx, error)

Beginx provides a mock function with given fields:

func (*ConnX) BindNamed added in v0.0.25

func (_m *ConnX) BindNamed(_a0 string, _a1 interface{}) (string, []interface{}, error)

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

func (*ConnX) Get added in v0.0.25

func (_m *ConnX) Get(_a0 interface{}, _a1 string, _a2 ...interface{}) error

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

func (*ConnX) MapperFunc added in v0.0.25

func (_m *ConnX) MapperFunc(_a0 func(string) string)

MapperFunc provides a mock function with given fields: _a0

func (*ConnX) MustBegin added in v0.0.25

func (_m *ConnX) MustBegin() *sqlx.Tx

MustBegin provides a mock function with given fields:

func (*ConnX) MustExec added in v0.0.25

func (_m *ConnX) MustExec(_a0 string, _a1 ...interface{}) sql.Result

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

func (*ConnX) NamedExec added in v0.0.25

func (_m *ConnX) NamedExec(_a0 string, _a1 interface{}) (sql.Result, error)

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

func (*ConnX) NamedQuery added in v0.0.25

func (_m *ConnX) NamedQuery(_a0 string, _a1 interface{}) (*sqlx.Rows, error)

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

func (*ConnX) PrepareNamed added in v0.0.25

func (_m *ConnX) PrepareNamed(_a0 string) (*sqlx.NamedStmt, error)

PrepareNamed provides a mock function with given fields: _a0

func (*ConnX) Preparex added in v0.0.25

func (_m *ConnX) Preparex(_a0 string) (*sqlx.Stmt, error)

Preparex provides a mock function with given fields: _a0

func (*ConnX) Query added in v0.0.25

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

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

func (*ConnX) QueryRowx added in v0.0.25

func (_m *ConnX) QueryRowx(query string, args ...interface{}) *sqlx.Row

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

func (*ConnX) Queryx added in v0.0.25

func (_m *ConnX) Queryx(query string, args ...interface{}) (*sqlx.Rows, error)

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

func (*ConnX) Rebind added in v0.0.25

func (_m *ConnX) Rebind(_a0 string) string

Rebind provides a mock function with given fields: _a0

func (*ConnX) Select added in v0.0.25

func (_m *ConnX) Select(_a0 interface{}, _a1 string, _a2 ...interface{}) error

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

func (*ConnX) Unsafe added in v0.0.25

func (_m *ConnX) Unsafe() *sqlx.DB

Unsafe provides a mock function with given fields:

Jump to

Keyboard shortcuts

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