Documentation ¶
Index ¶
- func SetupAndMock(driver string, t *testing.T) (*sqlx.DB, sqlmock.Sqlmock, func() error)
- 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{}) databasesql.Result
- func (_m *ConnX) NamedExec(_a0 string, _a1 interface{}) (databasesql.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{}) (*databasesql.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 ¶
Types ¶
type ConnX ¶
ConnX is an autogenerated mock type for the ConnX type
func (*ConnX) MapperFunc ¶
MapperFunc provides a mock function with given fields: _a0
func (*ConnX) MustExec ¶
func (_m *ConnX) MustExec(_a0 string, _a1 ...interface{}) databasesql.Result
MustExec provides a mock function with given fields: _a0, _a1
func (*ConnX) NamedExec ¶
func (_m *ConnX) NamedExec(_a0 string, _a1 interface{}) (databasesql.Result, error)
NamedExec provides a mock function with given fields: _a0, _a1
func (*ConnX) NamedQuery ¶
NamedQuery provides a mock function with given fields: _a0, _a1
func (*ConnX) PrepareNamed ¶
PrepareNamed provides a mock function with given fields: _a0
func (*ConnX) Query ¶
func (_m *ConnX) Query(query string, args ...interface{}) (*databasesql.Rows, error)
Query provides a mock function with given fields: query, args
Click to show internal directories.
Click to hide internal directories.