Documentation ¶
Index ¶
- type Transaction
- func (_m *Transaction) Close() error
- func (_m *Transaction) Closed() bool
- func (_m *Transaction) Commit() error
- func (_m *Transaction) Create(_a0 *schema.Resource) error
- func (_m *Transaction) Delete(_a0 *schema.Schema, _a1 interface{}) error
- func (_m *Transaction) Exec(sql string, args ...interface{}) error
- func (_m *Transaction) Fetch(_a0 *schema.Schema, _a1 transaction.Filter) (*schema.Resource, error)
- func (_m *Transaction) List(_a0 *schema.Schema, _a1 transaction.Filter, _a2 *pagination.Paginator) ([]*schema.Resource, uint64, error)
- func (_m *Transaction) Query(_a0 *schema.Schema, _a1 string, _a2 []interface{}) ([]*schema.Resource, error)
- func (_m *Transaction) RawTransaction() *sqlx.Tx
- func (_m *Transaction) SetIsolationLevel(_a0 transaction.Type) error
- func (_m *Transaction) StateFetch(_a0 *schema.Schema, _a1 transaction.Filter) (transaction.ResourceState, error)
- func (_m *Transaction) StateUpdate(_a0 *schema.Resource, _a1 *transaction.ResourceState) error
- func (_m *Transaction) Update(_a0 *schema.Resource) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Transaction ¶
Transaction mock
func (*Transaction) Delete ¶
func (_m *Transaction) Delete(_a0 *schema.Schema, _a1 interface{}) error
Delete mock
func (*Transaction) Exec ¶
func (_m *Transaction) Exec(sql string, args ...interface{}) error
Exec executes sql in transaction
func (*Transaction) Fetch ¶
func (_m *Transaction) Fetch(_a0 *schema.Schema, _a1 transaction.Filter) (*schema.Resource, error)
Fetch mock
func (*Transaction) List ¶
func (_m *Transaction) List(_a0 *schema.Schema, _a1 transaction.Filter, _a2 *pagination.Paginator) ([]*schema.Resource, uint64, error)
List mock
func (*Transaction) Query ¶
func (_m *Transaction) Query(_a0 *schema.Schema, _a1 string, _a2 []interface{}) ([]*schema.Resource, error)
Query mock
func (*Transaction) RawTransaction ¶
func (_m *Transaction) RawTransaction() *sqlx.Tx
RawTransaction mock
func (*Transaction) SetIsolationLevel ¶
func (_m *Transaction) SetIsolationLevel(_a0 transaction.Type) error
SetIsolationLevel specify transaction isolation level
func (*Transaction) StateFetch ¶
func (_m *Transaction) StateFetch(_a0 *schema.Schema, _a1 transaction.Filter) (transaction.ResourceState, error)
StateFetch mock
func (*Transaction) StateUpdate ¶
func (_m *Transaction) StateUpdate(_a0 *schema.Resource, _a1 *transaction.ResourceState) error
StateUpdate mock
Click to show internal directories.
Click to hide internal directories.