Documentation ¶
Index ¶
- type Conn
- func (_m *Conn) Begin(_a0 context.Context) (pgx.Tx, error)
- func (_m *Conn) Close()
- func (_m *Conn) Exec(_a0 context.Context, _a1 string, _a2 ...interface{}) (pgconn.CommandTag, error)
- func (_m *Conn) Query(_a0 context.Context, _a1 string, _a2 ...interface{}) (pgx.Rows, error)
- func (_m *Conn) QueryFunc(_a0 context.Context, _a1 string, _a2 []interface{}, _a3 []interface{}, ...) (pgconn.CommandTag, error)
- func (_m *Conn) QueryRow(_a0 context.Context, _a1 string, _a2 ...interface{}) pgx.Row
- func (_m *Conn) SendBatch(_a0 context.Context, _a1 *pgx.Batch) pgx.BatchResults
- type ConnX
- func (_m *ConnX) Beginx() (*sqlx.Tx, error)
- func (_m *ConnX) BindNamed(_a0 string, _a1 interface{}) (string, []interface{}, error)
- func (_m *ConnX) Get(_a0 interface{}, _a1 string, _a2 ...interface{}) error
- func (_m *ConnX) MapperFunc(_a0 func(string) string)
- func (_m *ConnX) MustBegin() *sqlx.Tx
- func (_m *ConnX) MustExec(_a0 string, _a1 ...interface{}) sql.Result
- func (_m *ConnX) NamedExec(_a0 string, _a1 interface{}) (sql.Result, error)
- func (_m *ConnX) NamedQuery(_a0 string, _a1 interface{}) (*sqlx.Rows, error)
- func (_m *ConnX) PrepareNamed(_a0 string) (*sqlx.NamedStmt, error)
- func (_m *ConnX) Preparex(_a0 string) (*sqlx.Stmt, error)
- func (_m *ConnX) Query(query string, args ...interface{}) (*sql.Rows, error)
- func (_m *ConnX) QueryRowx(query string, args ...interface{}) *sqlx.Row
- func (_m *ConnX) Queryx(query string, args ...interface{}) (*sqlx.Rows, error)
- func (_m *ConnX) Rebind(_a0 string) string
- func (_m *ConnX) Select(_a0 interface{}, _a1 string, _a2 ...interface{}) error
- func (_m *ConnX) Unsafe() *sqlx.DB
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Conn ¶
Conn is an autogenerated mock type for the Conn type
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) 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
type ConnX ¶ added in v0.0.25
ConnX is an autogenerated mock type for the ConnX type
func (*ConnX) BindNamed ¶ added in v0.0.25
BindNamed provides a mock function with given fields: _a0, _a1
func (*ConnX) MapperFunc ¶ added in v0.0.25
MapperFunc provides a mock function with given fields: _a0
func (*ConnX) MustExec ¶ added in v0.0.25
MustExec provides a mock function with given fields: _a0, _a1
func (*ConnX) NamedExec ¶ added in v0.0.25
NamedExec provides a mock function with given fields: _a0, _a1
func (*ConnX) NamedQuery ¶ added in v0.0.25
NamedQuery provides a mock function with given fields: _a0, _a1
func (*ConnX) PrepareNamed ¶ added in v0.0.25
PrepareNamed provides a mock function with given fields: _a0
func (*ConnX) Query ¶ added in v0.0.25
Query provides a mock function with given fields: query, args
func (*ConnX) QueryRowx ¶ added in v0.0.25
QueryRowx provides a mock function with given fields: query, args
func (*ConnX) Queryx ¶ added in v0.0.25
Queryx provides a mock function with given fields: query, args