Documentation ¶
Index ¶
- type Query
- func (_m *Query) BeginTx(ctx context.Context) (dbwrapper.Tx, error)
- func (_m *Query) Exec(ctx context.Context, qb dbwrapper.Sqlizer) error
- func (_m *Query) Get(ctx context.Context, qb dbwrapper.Sqlizer, dest interface{}) error
- func (_m *Query) GetList(ctx context.Context, qb dbwrapper.Sqlizer, dest interface{}) error
- type Tx
- func (_m *Tx) BeginTx(ctx context.Context) (dbwrapper.Tx, error)
- func (_m *Tx) Commit(ctx context.Context) error
- func (_m *Tx) Exec(ctx context.Context, qb dbwrapper.Sqlizer) error
- func (_m *Tx) Get(ctx context.Context, qb dbwrapper.Sqlizer, dest interface{}) error
- func (_m *Tx) GetList(ctx context.Context, qb dbwrapper.Sqlizer, dest interface{}) error
- func (_m *Tx) Rollback(ctx context.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Query ¶ added in v1.0.1
Query is an autogenerated mock type for the Query type
func NewQuery ¶ added in v1.0.1
NewQuery creates a new instance of Query. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
type Tx ¶
Tx is an autogenerated mock type for the Tx type
func NewTx ¶
NewTx creates a new instance of Tx. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
Click to show internal directories.
Click to hide internal directories.