orm

package
v0.0.0-...-44f477e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 29, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Creator

type Creator struct {
	mock.Mock
}

Creator is an autogenerated mock type for the Creator type

func (*Creator) Create

func (_m *Creator) Create() orm.Ormer

Create provides a mock function with given fields:

type FakeOrmer

type FakeOrmer struct{}

FakeOrmer ...

func (*FakeOrmer) Begin

func (f *FakeOrmer) Begin() error

Begin ...

func (*FakeOrmer) BeginTx

func (f *FakeOrmer) BeginTx(ctx context.Context, opts *sql.TxOptions) error

BeginTx ...

func (*FakeOrmer) Commit

func (f *FakeOrmer) Commit() error

Commit ...

func (*FakeOrmer) DBStats

func (f *FakeOrmer) DBStats() *sql.DBStats

DBStats ...

func (*FakeOrmer) Delete

func (f *FakeOrmer) Delete(md interface{}, cols ...string) (int64, error)

Delete ...

func (*FakeOrmer) Driver

func (f *FakeOrmer) Driver() orm.Driver

Driver ...

func (*FakeOrmer) Insert

func (f *FakeOrmer) Insert(interface{}) (int64, error)

Insert ...

func (*FakeOrmer) InsertMulti

func (f *FakeOrmer) InsertMulti(bulk int, mds interface{}) (int64, error)

InsertMulti ...

func (*FakeOrmer) InsertOrUpdate

func (f *FakeOrmer) InsertOrUpdate(md interface{}, colConflitAndArgs ...string) (int64, error)

InsertOrUpdate ...

func (*FakeOrmer) LoadRelated

func (f *FakeOrmer) LoadRelated(md interface{}, name string, args ...interface{}) (int64, error)

LoadRelated ...

func (*FakeOrmer) QueryM2M

func (f *FakeOrmer) QueryM2M(md interface{}, name string) orm.QueryM2Mer

QueryM2M ...

func (*FakeOrmer) QueryTable

func (f *FakeOrmer) QueryTable(ptrStructOrTableName interface{}) orm.QuerySeter

QueryTable ...

func (*FakeOrmer) Raw

func (f *FakeOrmer) Raw(query string, args ...interface{}) orm.RawSeter

Raw ...

func (*FakeOrmer) Read

func (f *FakeOrmer) Read(md interface{}, cols ...string) error

Read ...

func (*FakeOrmer) ReadForUpdate

func (f *FakeOrmer) ReadForUpdate(md interface{}, cols ...string) error

ReadForUpdate ...

func (*FakeOrmer) ReadOrCreate

func (f *FakeOrmer) ReadOrCreate(md interface{}, col1 string, cols ...string) (bool, int64, error)

ReadOrCreate ...

func (*FakeOrmer) Rollback

func (f *FakeOrmer) Rollback() error

Rollback ...

func (*FakeOrmer) Update

func (f *FakeOrmer) Update(md interface{}, cols ...string) (int64, error)

Update ...

func (*FakeOrmer) Using

func (f *FakeOrmer) Using(name string) error

Using ...

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL