Documentation ¶
Index ¶
- type Creator
- type FakeOrmer
- func (f *FakeOrmer) Begin() (orm.TxOrmer, error)
- func (f *FakeOrmer) BeginTx(ctx context.Context, opts *sql.TxOptions) error
- func (f *FakeOrmer) BeginWithCtx(ctx context.Context) (orm.TxOrmer, error)
- func (f *FakeOrmer) BeginWithCtxAndOpts(ctx context.Context, opts *sql.TxOptions) (orm.TxOrmer, error)
- func (f *FakeOrmer) BeginWithOpts(opts *sql.TxOptions) (orm.TxOrmer, error)
- func (f *FakeOrmer) Commit() error
- func (f *FakeOrmer) DBStats() *sql.DBStats
- func (f *FakeOrmer) Delete(md interface{}, cols ...string) (int64, error)
- func (f *FakeOrmer) DeleteWithCtx(ctx context.Context, md interface{}, cols ...string) (int64, error)
- func (f *FakeOrmer) DoTx(task func(ctx context.Context, txOrm orm.TxOrmer) error) error
- func (f *FakeOrmer) DoTxWithCtx(ctx context.Context, task func(ctx context.Context, txOrm orm.TxOrmer) error) error
- func (f *FakeOrmer) DoTxWithCtxAndOpts(ctx context.Context, opts *sql.TxOptions, ...) error
- func (f *FakeOrmer) DoTxWithOpts(opts *sql.TxOptions, task func(ctx context.Context, txOrm orm.TxOrmer) error) error
- func (f *FakeOrmer) Driver() orm.Driver
- func (f *FakeOrmer) Insert(interface{}) (int64, error)
- func (f *FakeOrmer) InsertMulti(bulk int, mds interface{}) (int64, error)
- func (f *FakeOrmer) InsertMultiWithCtx(ctx context.Context, bulk int, mds interface{}) (int64, error)
- func (f *FakeOrmer) InsertOrUpdate(md interface{}, colConflitAndArgs ...string) (int64, error)
- func (f *FakeOrmer) InsertOrUpdateWithCtx(ctx context.Context, md interface{}, colConflitAndArgs ...string) (int64, error)
- func (f *FakeOrmer) InsertWithCtx(ctx context.Context, md interface{}) (int64, error)
- func (f *FakeOrmer) LoadRelated(md interface{}, name string, args ...utils.KV) (int64, error)
- func (f *FakeOrmer) LoadRelatedWithCtx(_ context.Context, md interface{}, name string, args ...utils.KV) (int64, error)
- func (f *FakeOrmer) QueryM2M(md interface{}, name string) orm.QueryM2Mer
- func (f *FakeOrmer) QueryM2MWithCtx(ctx context.Context, md interface{}, name string) orm.QueryM2Mer
- func (f *FakeOrmer) QueryTable(ptrStructOrTableName interface{}) orm.QuerySeter
- func (f *FakeOrmer) QueryTableWithCtx(ctx context.Context, ptrStructOrTableName interface{}) orm.QuerySeter
- func (f *FakeOrmer) Raw(query string, args ...interface{}) orm.RawSeter
- func (f *FakeOrmer) RawWithCtx(ctx context.Context, query string, args ...interface{}) orm.RawSeter
- func (f *FakeOrmer) Read(md interface{}, cols ...string) error
- func (f *FakeOrmer) ReadForUpdate(md interface{}, cols ...string) error
- func (f *FakeOrmer) ReadForUpdateWithCtx(ctx context.Context, md interface{}, cols ...string) error
- func (f *FakeOrmer) ReadOrCreate(md interface{}, col1 string, cols ...string) (bool, int64, error)
- func (f *FakeOrmer) ReadOrCreateWithCtx(ctx context.Context, md interface{}, col1 string, cols ...string) (bool, int64, error)
- func (f *FakeOrmer) ReadWithCtx(ctx context.Context, md interface{}, cols ...string) error
- func (f *FakeOrmer) Rollback() error
- func (f *FakeOrmer) Update(md interface{}, cols ...string) (int64, error)
- func (f *FakeOrmer) UpdateWithCtx(ctx context.Context, md interface{}, cols ...string) (int64, error)
- func (f *FakeOrmer) Using(name string) error
- type FakeRawSeter
- func (f FakeRawSeter) Exec() (sql.Result, error)
- func (f FakeRawSeter) Prepare() (orm.RawPreparer, error)
- func (f FakeRawSeter) QueryRow(containers ...interface{}) error
- func (f FakeRawSeter) QueryRows(containers ...interface{}) (int64, error)
- func (f FakeRawSeter) RowsToMap(result *orm.Params, keyCol, valueCol string) (int64, error)
- func (f FakeRawSeter) RowsToStruct(ptrStruct interface{}, keyCol, valueCol string) (int64, error)
- func (f FakeRawSeter) SetArgs(i ...interface{}) orm.RawSeter
- func (f FakeRawSeter) Values(container *[]orm.Params, cols ...string) (int64, error)
- func (f FakeRawSeter) ValuesFlat(container *orm.ParamsList, cols ...string) (int64, error)
- func (f FakeRawSeter) ValuesList(container *[]orm.ParamsList, cols ...string) (int64, error)
- type FakeTxOrmer
- func (f *FakeTxOrmer) Commit() error
- func (f *FakeTxOrmer) DBStats() *sql.DBStats
- func (f *FakeTxOrmer) Delete(md interface{}, cols ...string) (int64, error)
- func (f *FakeTxOrmer) DeleteWithCtx(ctx context.Context, md interface{}, cols ...string) (int64, error)
- func (f *FakeTxOrmer) Driver() orm.Driver
- func (f *FakeTxOrmer) Insert(md interface{}) (int64, error)
- func (f *FakeTxOrmer) InsertMulti(bulk int, mds interface{}) (int64, error)
- func (f *FakeTxOrmer) InsertMultiWithCtx(ctx context.Context, bulk int, mds interface{}) (int64, error)
- func (f *FakeTxOrmer) InsertOrUpdate(md interface{}, colConflitAndArgs ...string) (int64, error)
- func (f *FakeTxOrmer) InsertOrUpdateWithCtx(ctx context.Context, md interface{}, colConflitAndArgs ...string) (int64, error)
- func (f *FakeTxOrmer) InsertWithCtx(ctx context.Context, md interface{}) (int64, error)
- func (f *FakeTxOrmer) LoadRelated(md interface{}, name string, args ...utils.KV) (int64, error)
- func (f *FakeTxOrmer) LoadRelatedWithCtx(ctx context.Context, md interface{}, name string, args ...utils.KV) (int64, error)
- func (f *FakeTxOrmer) QueryM2M(md interface{}, name string) orm.QueryM2Mer
- func (f *FakeTxOrmer) QueryM2MWithCtx(ctx context.Context, md interface{}, name string) orm.QueryM2Mer
- func (f *FakeTxOrmer) QueryTable(ptrStructOrTableName interface{}) orm.QuerySeter
- func (f *FakeTxOrmer) QueryTableWithCtx(ctx context.Context, ptrStructOrTableName interface{}) orm.QuerySeter
- func (f *FakeTxOrmer) Raw(query string, args ...interface{}) orm.RawSeter
- func (f *FakeTxOrmer) RawWithCtx(ctx context.Context, query string, args ...interface{}) orm.RawSeter
- func (f *FakeTxOrmer) Read(md interface{}, cols ...string) error
- func (f *FakeTxOrmer) ReadForUpdate(md interface{}, cols ...string) error
- func (f *FakeTxOrmer) ReadForUpdateWithCtx(ctx context.Context, md interface{}, cols ...string) error
- func (f *FakeTxOrmer) ReadOrCreate(md interface{}, col1 string, cols ...string) (bool, int64, error)
- func (f *FakeTxOrmer) ReadOrCreateWithCtx(ctx context.Context, md interface{}, col1 string, cols ...string) (bool, int64, error)
- func (f *FakeTxOrmer) ReadWithCtx(ctx context.Context, md interface{}, cols ...string) error
- func (f *FakeTxOrmer) Rollback() error
- func (f *FakeTxOrmer) RollbackUnlessCommit() error
- func (f *FakeTxOrmer) Update(md interface{}, cols ...string) (int64, error)
- func (f *FakeTxOrmer) UpdateWithCtx(ctx context.Context, md interface{}, cols ...string) (int64, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Creator ¶
Creator is an autogenerated mock type for the Creator type
func NewCreator ¶
NewCreator creates a new instance of Creator. 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 FakeOrmer ¶
type FakeOrmer struct { }
FakeOrmer ...
func (*FakeOrmer) BeginWithCtx ¶
func (*FakeOrmer) BeginWithCtxAndOpts ¶
func (*FakeOrmer) BeginWithOpts ¶
func (*FakeOrmer) DeleteWithCtx ¶
func (*FakeOrmer) DoTxWithCtx ¶
func (*FakeOrmer) DoTxWithCtxAndOpts ¶
func (*FakeOrmer) DoTxWithOpts ¶
func (*FakeOrmer) InsertMulti ¶
InsertMulti ...
func (*FakeOrmer) InsertMultiWithCtx ¶
func (*FakeOrmer) InsertOrUpdate ¶
InsertOrUpdate ...
func (*FakeOrmer) InsertOrUpdateWithCtx ¶
func (*FakeOrmer) InsertWithCtx ¶
func (*FakeOrmer) LoadRelated ¶
func (*FakeOrmer) LoadRelatedWithCtx ¶
func (*FakeOrmer) QueryM2M ¶
func (f *FakeOrmer) QueryM2M(md interface{}, name string) orm.QueryM2Mer
QueryM2M ...
func (*FakeOrmer) QueryM2MWithCtx ¶
func (*FakeOrmer) QueryTable ¶
func (f *FakeOrmer) QueryTable(ptrStructOrTableName interface{}) orm.QuerySeter
QueryTable ...
func (*FakeOrmer) QueryTableWithCtx ¶
func (f *FakeOrmer) QueryTableWithCtx(ctx context.Context, ptrStructOrTableName interface{}) orm.QuerySeter
func (*FakeOrmer) RawWithCtx ¶
func (*FakeOrmer) ReadForUpdate ¶
ReadForUpdate ...
func (*FakeOrmer) ReadForUpdateWithCtx ¶
func (*FakeOrmer) ReadOrCreate ¶
ReadOrCreate ...
func (*FakeOrmer) ReadOrCreateWithCtx ¶
func (*FakeOrmer) ReadWithCtx ¶
func (*FakeOrmer) UpdateWithCtx ¶
type FakeRawSeter ¶
type FakeRawSeter struct { }
FakeTxOrmer ...
func (FakeRawSeter) Prepare ¶
func (f FakeRawSeter) Prepare() (orm.RawPreparer, error)
func (FakeRawSeter) QueryRow ¶
func (f FakeRawSeter) QueryRow(containers ...interface{}) error
func (FakeRawSeter) QueryRows ¶
func (f FakeRawSeter) QueryRows(containers ...interface{}) (int64, error)
func (FakeRawSeter) RowsToStruct ¶
func (f FakeRawSeter) RowsToStruct(ptrStruct interface{}, keyCol, valueCol string) (int64, error)
func (FakeRawSeter) SetArgs ¶
func (f FakeRawSeter) SetArgs(i ...interface{}) orm.RawSeter
func (FakeRawSeter) ValuesFlat ¶
func (f FakeRawSeter) ValuesFlat(container *orm.ParamsList, cols ...string) (int64, error)
func (FakeRawSeter) ValuesList ¶
func (f FakeRawSeter) ValuesList(container *[]orm.ParamsList, cols ...string) (int64, error)
type FakeTxOrmer ¶
type FakeTxOrmer struct { }
FakeTxOrmer ...
func (*FakeTxOrmer) Commit ¶
func (f *FakeTxOrmer) Commit() error
func (*FakeTxOrmer) DBStats ¶
func (f *FakeTxOrmer) DBStats() *sql.DBStats
func (*FakeTxOrmer) Delete ¶
func (f *FakeTxOrmer) Delete(md interface{}, cols ...string) (int64, error)
func (*FakeTxOrmer) DeleteWithCtx ¶
func (*FakeTxOrmer) Driver ¶
func (f *FakeTxOrmer) Driver() orm.Driver
func (*FakeTxOrmer) Insert ¶
func (f *FakeTxOrmer) Insert(md interface{}) (int64, error)
func (*FakeTxOrmer) InsertMulti ¶
func (f *FakeTxOrmer) InsertMulti(bulk int, mds interface{}) (int64, error)
func (*FakeTxOrmer) InsertMultiWithCtx ¶
func (*FakeTxOrmer) InsertOrUpdate ¶
func (f *FakeTxOrmer) InsertOrUpdate(md interface{}, colConflitAndArgs ...string) (int64, error)
func (*FakeTxOrmer) InsertOrUpdateWithCtx ¶
func (*FakeTxOrmer) InsertWithCtx ¶
func (f *FakeTxOrmer) InsertWithCtx(ctx context.Context, md interface{}) (int64, error)
func (*FakeTxOrmer) LoadRelated ¶
func (*FakeTxOrmer) LoadRelatedWithCtx ¶
func (*FakeTxOrmer) QueryM2M ¶
func (f *FakeTxOrmer) QueryM2M(md interface{}, name string) orm.QueryM2Mer
func (*FakeTxOrmer) QueryM2MWithCtx ¶
func (f *FakeTxOrmer) QueryM2MWithCtx(ctx context.Context, md interface{}, name string) orm.QueryM2Mer
func (*FakeTxOrmer) QueryTable ¶
func (f *FakeTxOrmer) QueryTable(ptrStructOrTableName interface{}) orm.QuerySeter
func (*FakeTxOrmer) QueryTableWithCtx ¶
func (f *FakeTxOrmer) QueryTableWithCtx(ctx context.Context, ptrStructOrTableName interface{}) orm.QuerySeter
func (*FakeTxOrmer) RawWithCtx ¶
func (*FakeTxOrmer) Read ¶
func (f *FakeTxOrmer) Read(md interface{}, cols ...string) error
func (*FakeTxOrmer) ReadForUpdate ¶
func (f *FakeTxOrmer) ReadForUpdate(md interface{}, cols ...string) error
func (*FakeTxOrmer) ReadForUpdateWithCtx ¶
func (f *FakeTxOrmer) ReadForUpdateWithCtx(ctx context.Context, md interface{}, cols ...string) error
func (*FakeTxOrmer) ReadOrCreate ¶
func (*FakeTxOrmer) ReadOrCreateWithCtx ¶
func (*FakeTxOrmer) ReadWithCtx ¶
func (f *FakeTxOrmer) ReadWithCtx(ctx context.Context, md interface{}, cols ...string) error
func (*FakeTxOrmer) Rollback ¶
func (f *FakeTxOrmer) Rollback() error
func (*FakeTxOrmer) RollbackUnlessCommit ¶
func (f *FakeTxOrmer) RollbackUnlessCommit() error
func (*FakeTxOrmer) Update ¶
func (f *FakeTxOrmer) Update(md interface{}, cols ...string) (int64, error)
func (*FakeTxOrmer) UpdateWithCtx ¶
Click to show internal directories.
Click to hide internal directories.