orm

package
v1.15.11 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2025 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Association

type Association struct {
	mock.Mock
}

Association is an autogenerated mock type for the Association type

func NewAssociation

func NewAssociation(t interface {
	mock.TestingT
	Cleanup(func())
}) *Association

NewAssociation creates a new instance of Association. 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.

func (*Association) Append

func (_m *Association) Append(values ...interface{}) error

Append provides a mock function with given fields: values

func (*Association) Clear

func (_m *Association) Clear() error

Clear provides a mock function with no fields

func (*Association) Count

func (_m *Association) Count() int64

Count provides a mock function with no fields

func (*Association) Delete

func (_m *Association) Delete(values ...interface{}) error

Delete provides a mock function with given fields: values

func (*Association) EXPECT

func (_m *Association) EXPECT() *Association_Expecter

func (*Association) Find

func (_m *Association) Find(out interface{}, conds ...interface{}) error

Find provides a mock function with given fields: out, conds

func (*Association) Replace

func (_m *Association) Replace(values ...interface{}) error

Replace provides a mock function with given fields: values

type Association_Append_Call

type Association_Append_Call struct {
	*mock.Call
}

Association_Append_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Append'

func (*Association_Append_Call) Return

func (*Association_Append_Call) Run

func (_c *Association_Append_Call) Run(run func(values ...interface{})) *Association_Append_Call

func (*Association_Append_Call) RunAndReturn

func (_c *Association_Append_Call) RunAndReturn(run func(...interface{}) error) *Association_Append_Call

type Association_Clear_Call

type Association_Clear_Call struct {
	*mock.Call
}

Association_Clear_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Clear'

func (*Association_Clear_Call) Return

func (*Association_Clear_Call) Run

func (_c *Association_Clear_Call) Run(run func()) *Association_Clear_Call

func (*Association_Clear_Call) RunAndReturn

func (_c *Association_Clear_Call) RunAndReturn(run func() error) *Association_Clear_Call

type Association_Count_Call

type Association_Count_Call struct {
	*mock.Call
}

Association_Count_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Count'

func (*Association_Count_Call) Return

func (*Association_Count_Call) Run

func (_c *Association_Count_Call) Run(run func()) *Association_Count_Call

func (*Association_Count_Call) RunAndReturn

func (_c *Association_Count_Call) RunAndReturn(run func() int64) *Association_Count_Call

type Association_Delete_Call

type Association_Delete_Call struct {
	*mock.Call
}

Association_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'

func (*Association_Delete_Call) Return

func (*Association_Delete_Call) Run

func (_c *Association_Delete_Call) Run(run func(values ...interface{})) *Association_Delete_Call

func (*Association_Delete_Call) RunAndReturn

func (_c *Association_Delete_Call) RunAndReturn(run func(...interface{}) error) *Association_Delete_Call

type Association_Expecter

type Association_Expecter struct {
	// contains filtered or unexported fields
}

func (*Association_Expecter) Append

func (_e *Association_Expecter) Append(values ...interface{}) *Association_Append_Call

Append is a helper method to define mock.On call

  • values ...interface{}

func (*Association_Expecter) Clear

Clear is a helper method to define mock.On call

func (*Association_Expecter) Count

Count is a helper method to define mock.On call

func (*Association_Expecter) Delete

func (_e *Association_Expecter) Delete(values ...interface{}) *Association_Delete_Call

Delete is a helper method to define mock.On call

  • values ...interface{}

func (*Association_Expecter) Find

func (_e *Association_Expecter) Find(out interface{}, conds ...interface{}) *Association_Find_Call

Find is a helper method to define mock.On call

  • out interface{}
  • conds ...interface{}

func (*Association_Expecter) Replace

func (_e *Association_Expecter) Replace(values ...interface{}) *Association_Replace_Call

Replace is a helper method to define mock.On call

  • values ...interface{}

type Association_Find_Call

type Association_Find_Call struct {
	*mock.Call
}

Association_Find_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Find'

func (*Association_Find_Call) Return

func (*Association_Find_Call) Run

func (_c *Association_Find_Call) Run(run func(out interface{}, conds ...interface{})) *Association_Find_Call

func (*Association_Find_Call) RunAndReturn

func (_c *Association_Find_Call) RunAndReturn(run func(interface{}, ...interface{}) error) *Association_Find_Call

type Association_Replace_Call

type Association_Replace_Call struct {
	*mock.Call
}

Association_Replace_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Replace'

func (*Association_Replace_Call) Return

func (*Association_Replace_Call) Run

func (_c *Association_Replace_Call) Run(run func(values ...interface{})) *Association_Replace_Call

func (*Association_Replace_Call) RunAndReturn

func (_c *Association_Replace_Call) RunAndReturn(run func(...interface{}) error) *Association_Replace_Call

type ConnectionModel

type ConnectionModel struct {
	mock.Mock
}

ConnectionModel is an autogenerated mock type for the ConnectionModel type

func NewConnectionModel

func NewConnectionModel(t interface {
	mock.TestingT
	Cleanup(func())
}) *ConnectionModel

NewConnectionModel creates a new instance of ConnectionModel. 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.

func (*ConnectionModel) Connection

func (_m *ConnectionModel) Connection() string

Connection provides a mock function with no fields

func (*ConnectionModel) EXPECT

type ConnectionModel_Connection_Call

type ConnectionModel_Connection_Call struct {
	*mock.Call
}

ConnectionModel_Connection_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Connection'

func (*ConnectionModel_Connection_Call) Return

func (*ConnectionModel_Connection_Call) Run

func (*ConnectionModel_Connection_Call) RunAndReturn

type ConnectionModel_Expecter

type ConnectionModel_Expecter struct {
	// contains filtered or unexported fields
}

func (*ConnectionModel_Expecter) Connection

Connection is a helper method to define mock.On call

type Cursor

type Cursor struct {
	mock.Mock
}

Cursor is an autogenerated mock type for the Cursor type

func NewCursor

func NewCursor(t interface {
	mock.TestingT
	Cleanup(func())
}) *Cursor

NewCursor creates a new instance of Cursor. 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.

func (*Cursor) EXPECT

func (_m *Cursor) EXPECT() *Cursor_Expecter

func (*Cursor) Scan

func (_m *Cursor) Scan(value interface{}) error

Scan provides a mock function with given fields: value

type Cursor_Expecter

type Cursor_Expecter struct {
	// contains filtered or unexported fields
}

func (*Cursor_Expecter) Scan

func (_e *Cursor_Expecter) Scan(value interface{}) *Cursor_Scan_Call

Scan is a helper method to define mock.On call

  • value interface{}

type Cursor_Scan_Call

type Cursor_Scan_Call struct {
	*mock.Call
}

Cursor_Scan_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Scan'

func (*Cursor_Scan_Call) Return

func (_c *Cursor_Scan_Call) Return(_a0 error) *Cursor_Scan_Call

func (*Cursor_Scan_Call) Run

func (_c *Cursor_Scan_Call) Run(run func(value interface{})) *Cursor_Scan_Call

func (*Cursor_Scan_Call) RunAndReturn

func (_c *Cursor_Scan_Call) RunAndReturn(run func(interface{}) error) *Cursor_Scan_Call

type DispatchesEvents

type DispatchesEvents struct {
	mock.Mock
}

DispatchesEvents is an autogenerated mock type for the DispatchesEvents type

func NewDispatchesEvents

func NewDispatchesEvents(t interface {
	mock.TestingT
	Cleanup(func())
}) *DispatchesEvents

NewDispatchesEvents creates a new instance of DispatchesEvents. 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.

func (*DispatchesEvents) DispatchesEvents

func (_m *DispatchesEvents) DispatchesEvents() map[orm.EventType]func(orm.Event) error

DispatchesEvents provides a mock function with no fields

func (*DispatchesEvents) EXPECT

type DispatchesEvents_DispatchesEvents_Call

type DispatchesEvents_DispatchesEvents_Call struct {
	*mock.Call
}

DispatchesEvents_DispatchesEvents_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DispatchesEvents'

func (*DispatchesEvents_DispatchesEvents_Call) Return

func (*DispatchesEvents_DispatchesEvents_Call) Run

func (*DispatchesEvents_DispatchesEvents_Call) RunAndReturn

type DispatchesEvents_Expecter

type DispatchesEvents_Expecter struct {
	// contains filtered or unexported fields
}

func (*DispatchesEvents_Expecter) DispatchesEvents

DispatchesEvents is a helper method to define mock.On call

type Event

type Event struct {
	mock.Mock
}

Event is an autogenerated mock type for the Event type

func NewEvent

func NewEvent(t interface {
	mock.TestingT
	Cleanup(func())
}) *Event

NewEvent creates a new instance of Event. 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.

func (*Event) Context

func (_m *Event) Context() context.Context

Context provides a mock function with no fields

func (*Event) EXPECT

func (_m *Event) EXPECT() *Event_Expecter

func (*Event) GetAttribute

func (_m *Event) GetAttribute(key string) interface{}

GetAttribute provides a mock function with given fields: key

func (*Event) GetOriginal

func (_m *Event) GetOriginal(key string, def ...interface{}) interface{}

GetOriginal provides a mock function with given fields: key, def

func (*Event) IsClean

func (_m *Event) IsClean(columns ...string) bool

IsClean provides a mock function with given fields: columns

func (*Event) IsDirty

func (_m *Event) IsDirty(columns ...string) bool

IsDirty provides a mock function with given fields: columns

func (*Event) Query

func (_m *Event) Query() orm.Query

Query provides a mock function with no fields

func (*Event) SetAttribute

func (_m *Event) SetAttribute(key string, value interface{})

SetAttribute provides a mock function with given fields: key, value

type Event_Context_Call

type Event_Context_Call struct {
	*mock.Call
}

Event_Context_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Context'

func (*Event_Context_Call) Return

func (*Event_Context_Call) Run

func (_c *Event_Context_Call) Run(run func()) *Event_Context_Call

func (*Event_Context_Call) RunAndReturn

func (_c *Event_Context_Call) RunAndReturn(run func() context.Context) *Event_Context_Call

type Event_Expecter

type Event_Expecter struct {
	// contains filtered or unexported fields
}

func (*Event_Expecter) Context

func (_e *Event_Expecter) Context() *Event_Context_Call

Context is a helper method to define mock.On call

func (*Event_Expecter) GetAttribute

func (_e *Event_Expecter) GetAttribute(key interface{}) *Event_GetAttribute_Call

GetAttribute is a helper method to define mock.On call

  • key string

func (*Event_Expecter) GetOriginal

func (_e *Event_Expecter) GetOriginal(key interface{}, def ...interface{}) *Event_GetOriginal_Call

GetOriginal is a helper method to define mock.On call

  • key string
  • def ...interface{}

func (*Event_Expecter) IsClean

func (_e *Event_Expecter) IsClean(columns ...interface{}) *Event_IsClean_Call

IsClean is a helper method to define mock.On call

  • columns ...string

func (*Event_Expecter) IsDirty

func (_e *Event_Expecter) IsDirty(columns ...interface{}) *Event_IsDirty_Call

IsDirty is a helper method to define mock.On call

  • columns ...string

func (*Event_Expecter) Query

func (_e *Event_Expecter) Query() *Event_Query_Call

Query is a helper method to define mock.On call

func (*Event_Expecter) SetAttribute

func (_e *Event_Expecter) SetAttribute(key interface{}, value interface{}) *Event_SetAttribute_Call

SetAttribute is a helper method to define mock.On call

  • key string
  • value interface{}

type Event_GetAttribute_Call

type Event_GetAttribute_Call struct {
	*mock.Call
}

Event_GetAttribute_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAttribute'

func (*Event_GetAttribute_Call) Return

func (_c *Event_GetAttribute_Call) Return(_a0 interface{}) *Event_GetAttribute_Call

func (*Event_GetAttribute_Call) Run

func (_c *Event_GetAttribute_Call) Run(run func(key string)) *Event_GetAttribute_Call

func (*Event_GetAttribute_Call) RunAndReturn

func (_c *Event_GetAttribute_Call) RunAndReturn(run func(string) interface{}) *Event_GetAttribute_Call

type Event_GetOriginal_Call

type Event_GetOriginal_Call struct {
	*mock.Call
}

Event_GetOriginal_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetOriginal'

func (*Event_GetOriginal_Call) Return

func (_c *Event_GetOriginal_Call) Return(_a0 interface{}) *Event_GetOriginal_Call

func (*Event_GetOriginal_Call) Run

func (_c *Event_GetOriginal_Call) Run(run func(key string, def ...interface{})) *Event_GetOriginal_Call

func (*Event_GetOriginal_Call) RunAndReturn

func (_c *Event_GetOriginal_Call) RunAndReturn(run func(string, ...interface{}) interface{}) *Event_GetOriginal_Call

type Event_IsClean_Call

type Event_IsClean_Call struct {
	*mock.Call
}

Event_IsClean_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsClean'

func (*Event_IsClean_Call) Return

func (_c *Event_IsClean_Call) Return(_a0 bool) *Event_IsClean_Call

func (*Event_IsClean_Call) Run

func (_c *Event_IsClean_Call) Run(run func(columns ...string)) *Event_IsClean_Call

func (*Event_IsClean_Call) RunAndReturn

func (_c *Event_IsClean_Call) RunAndReturn(run func(...string) bool) *Event_IsClean_Call

type Event_IsDirty_Call

type Event_IsDirty_Call struct {
	*mock.Call
}

Event_IsDirty_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsDirty'

func (*Event_IsDirty_Call) Return

func (_c *Event_IsDirty_Call) Return(_a0 bool) *Event_IsDirty_Call

func (*Event_IsDirty_Call) Run

func (_c *Event_IsDirty_Call) Run(run func(columns ...string)) *Event_IsDirty_Call

func (*Event_IsDirty_Call) RunAndReturn

func (_c *Event_IsDirty_Call) RunAndReturn(run func(...string) bool) *Event_IsDirty_Call

type Event_Query_Call

type Event_Query_Call struct {
	*mock.Call
}

Event_Query_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Query'

func (*Event_Query_Call) Return

func (_c *Event_Query_Call) Return(_a0 orm.Query) *Event_Query_Call

func (*Event_Query_Call) Run

func (_c *Event_Query_Call) Run(run func()) *Event_Query_Call

func (*Event_Query_Call) RunAndReturn

func (_c *Event_Query_Call) RunAndReturn(run func() orm.Query) *Event_Query_Call

type Event_SetAttribute_Call

type Event_SetAttribute_Call struct {
	*mock.Call
}

Event_SetAttribute_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetAttribute'

func (*Event_SetAttribute_Call) Return

func (*Event_SetAttribute_Call) Run

func (_c *Event_SetAttribute_Call) Run(run func(key string, value interface{})) *Event_SetAttribute_Call

func (*Event_SetAttribute_Call) RunAndReturn

func (_c *Event_SetAttribute_Call) RunAndReturn(run func(string, interface{})) *Event_SetAttribute_Call

type Factory

type Factory struct {
	mock.Mock
}

Factory is an autogenerated mock type for the Factory type

func NewFactory

func NewFactory(t interface {
	mock.TestingT
	Cleanup(func())
}) *Factory

NewFactory creates a new instance of Factory. 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.

func (*Factory) Count

func (_m *Factory) Count(count int) orm.Factory

Count provides a mock function with given fields: count

func (*Factory) Create

func (_m *Factory) Create(value interface{}, attributes ...map[string]interface{}) error

Create provides a mock function with given fields: value, attributes

func (*Factory) CreateQuietly

func (_m *Factory) CreateQuietly(value interface{}, attributes ...map[string]interface{}) error

CreateQuietly provides a mock function with given fields: value, attributes

func (*Factory) EXPECT

func (_m *Factory) EXPECT() *Factory_Expecter

func (*Factory) Make

func (_m *Factory) Make(value interface{}, attributes ...map[string]interface{}) error

Make provides a mock function with given fields: value, attributes

type Factory_Count_Call

type Factory_Count_Call struct {
	*mock.Call
}

Factory_Count_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Count'

func (*Factory_Count_Call) Return

func (*Factory_Count_Call) Run

func (_c *Factory_Count_Call) Run(run func(count int)) *Factory_Count_Call

func (*Factory_Count_Call) RunAndReturn

func (_c *Factory_Count_Call) RunAndReturn(run func(int) orm.Factory) *Factory_Count_Call

type Factory_CreateQuietly_Call

type Factory_CreateQuietly_Call struct {
	*mock.Call
}

Factory_CreateQuietly_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateQuietly'

func (*Factory_CreateQuietly_Call) Return

func (*Factory_CreateQuietly_Call) Run

func (_c *Factory_CreateQuietly_Call) Run(run func(value interface{}, attributes ...map[string]interface{})) *Factory_CreateQuietly_Call

func (*Factory_CreateQuietly_Call) RunAndReturn

func (_c *Factory_CreateQuietly_Call) RunAndReturn(run func(interface{}, ...map[string]interface{}) error) *Factory_CreateQuietly_Call

type Factory_Create_Call

type Factory_Create_Call struct {
	*mock.Call
}

Factory_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'

func (*Factory_Create_Call) Return

func (*Factory_Create_Call) Run

func (_c *Factory_Create_Call) Run(run func(value interface{}, attributes ...map[string]interface{})) *Factory_Create_Call

func (*Factory_Create_Call) RunAndReturn

func (_c *Factory_Create_Call) RunAndReturn(run func(interface{}, ...map[string]interface{}) error) *Factory_Create_Call

type Factory_Expecter

type Factory_Expecter struct {
	// contains filtered or unexported fields
}

func (*Factory_Expecter) Count

func (_e *Factory_Expecter) Count(count interface{}) *Factory_Count_Call

Count is a helper method to define mock.On call

  • count int

func (*Factory_Expecter) Create

func (_e *Factory_Expecter) Create(value interface{}, attributes ...interface{}) *Factory_Create_Call

Create is a helper method to define mock.On call

  • value interface{}
  • attributes ...map[string]interface{}

func (*Factory_Expecter) CreateQuietly

func (_e *Factory_Expecter) CreateQuietly(value interface{}, attributes ...interface{}) *Factory_CreateQuietly_Call

CreateQuietly is a helper method to define mock.On call

  • value interface{}
  • attributes ...map[string]interface{}

func (*Factory_Expecter) Make

func (_e *Factory_Expecter) Make(value interface{}, attributes ...interface{}) *Factory_Make_Call

Make is a helper method to define mock.On call

  • value interface{}
  • attributes ...map[string]interface{}

type Factory_Make_Call

type Factory_Make_Call struct {
	*mock.Call
}

Factory_Make_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Make'

func (*Factory_Make_Call) Return

func (_c *Factory_Make_Call) Return(_a0 error) *Factory_Make_Call

func (*Factory_Make_Call) Run

func (_c *Factory_Make_Call) Run(run func(value interface{}, attributes ...map[string]interface{})) *Factory_Make_Call

func (*Factory_Make_Call) RunAndReturn

func (_c *Factory_Make_Call) RunAndReturn(run func(interface{}, ...map[string]interface{}) error) *Factory_Make_Call

type Observer

type Observer struct {
	mock.Mock
}

Observer is an autogenerated mock type for the Observer type

func NewObserver

func NewObserver(t interface {
	mock.TestingT
	Cleanup(func())
}) *Observer

NewObserver creates a new instance of Observer. 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.

func (*Observer) Created

func (_m *Observer) Created(_a0 orm.Event) error

Created provides a mock function with given fields: _a0

func (*Observer) Deleted

func (_m *Observer) Deleted(_a0 orm.Event) error

Deleted provides a mock function with given fields: _a0

func (*Observer) EXPECT

func (_m *Observer) EXPECT() *Observer_Expecter

func (*Observer) ForceDeleted

func (_m *Observer) ForceDeleted(_a0 orm.Event) error

ForceDeleted provides a mock function with given fields: _a0

func (*Observer) Updated

func (_m *Observer) Updated(_a0 orm.Event) error

Updated provides a mock function with given fields: _a0

type ObserverWithCreating added in v1.15.0

type ObserverWithCreating struct {
	mock.Mock
}

ObserverWithCreating is an autogenerated mock type for the ObserverWithCreating type

func NewObserverWithCreating added in v1.15.0

func NewObserverWithCreating(t interface {
	mock.TestingT
	Cleanup(func())
}) *ObserverWithCreating

NewObserverWithCreating creates a new instance of ObserverWithCreating. 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.

func (*ObserverWithCreating) Creating added in v1.15.0

func (_m *ObserverWithCreating) Creating(_a0 orm.Event) error

Creating provides a mock function with given fields: _a0

func (*ObserverWithCreating) EXPECT added in v1.15.0

type ObserverWithCreating_Creating_Call added in v1.15.0

type ObserverWithCreating_Creating_Call struct {
	*mock.Call
}

ObserverWithCreating_Creating_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Creating'

func (*ObserverWithCreating_Creating_Call) Return added in v1.15.0

func (*ObserverWithCreating_Creating_Call) Run added in v1.15.0

func (*ObserverWithCreating_Creating_Call) RunAndReturn added in v1.15.0

type ObserverWithCreating_Expecter added in v1.15.0

type ObserverWithCreating_Expecter struct {
	// contains filtered or unexported fields
}

func (*ObserverWithCreating_Expecter) Creating added in v1.15.0

Creating is a helper method to define mock.On call

  • _a0 orm.Event

type ObserverWithDeleting added in v1.15.0

type ObserverWithDeleting struct {
	mock.Mock
}

ObserverWithDeleting is an autogenerated mock type for the ObserverWithDeleting type

func NewObserverWithDeleting added in v1.15.0

func NewObserverWithDeleting(t interface {
	mock.TestingT
	Cleanup(func())
}) *ObserverWithDeleting

NewObserverWithDeleting creates a new instance of ObserverWithDeleting. 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.

func (*ObserverWithDeleting) Deleting added in v1.15.0

func (_m *ObserverWithDeleting) Deleting(_a0 orm.Event) error

Deleting provides a mock function with given fields: _a0

func (*ObserverWithDeleting) EXPECT added in v1.15.0

type ObserverWithDeleting_Deleting_Call added in v1.15.0

type ObserverWithDeleting_Deleting_Call struct {
	*mock.Call
}

ObserverWithDeleting_Deleting_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Deleting'

func (*ObserverWithDeleting_Deleting_Call) Return added in v1.15.0

func (*ObserverWithDeleting_Deleting_Call) Run added in v1.15.0

func (*ObserverWithDeleting_Deleting_Call) RunAndReturn added in v1.15.0

type ObserverWithDeleting_Expecter added in v1.15.0

type ObserverWithDeleting_Expecter struct {
	// contains filtered or unexported fields
}

func (*ObserverWithDeleting_Expecter) Deleting added in v1.15.0

Deleting is a helper method to define mock.On call

  • _a0 orm.Event

type ObserverWithForceDeleting added in v1.15.0

type ObserverWithForceDeleting struct {
	mock.Mock
}

ObserverWithForceDeleting is an autogenerated mock type for the ObserverWithForceDeleting type

func NewObserverWithForceDeleting added in v1.15.0

func NewObserverWithForceDeleting(t interface {
	mock.TestingT
	Cleanup(func())
}) *ObserverWithForceDeleting

NewObserverWithForceDeleting creates a new instance of ObserverWithForceDeleting. 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.

func (*ObserverWithForceDeleting) EXPECT added in v1.15.0

func (*ObserverWithForceDeleting) ForceDeleting added in v1.15.0

func (_m *ObserverWithForceDeleting) ForceDeleting(_a0 orm.Event) error

ForceDeleting provides a mock function with given fields: _a0

type ObserverWithForceDeleting_Expecter added in v1.15.0

type ObserverWithForceDeleting_Expecter struct {
	// contains filtered or unexported fields
}

func (*ObserverWithForceDeleting_Expecter) ForceDeleting added in v1.15.0

ForceDeleting is a helper method to define mock.On call

  • _a0 orm.Event

type ObserverWithForceDeleting_ForceDeleting_Call added in v1.15.0

type ObserverWithForceDeleting_ForceDeleting_Call struct {
	*mock.Call
}

ObserverWithForceDeleting_ForceDeleting_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ForceDeleting'

func (*ObserverWithForceDeleting_ForceDeleting_Call) Return added in v1.15.0

func (*ObserverWithForceDeleting_ForceDeleting_Call) Run added in v1.15.0

func (*ObserverWithForceDeleting_ForceDeleting_Call) RunAndReturn added in v1.15.0

type ObserverWithRestored added in v1.15.0

type ObserverWithRestored struct {
	mock.Mock
}

ObserverWithRestored is an autogenerated mock type for the ObserverWithRestored type

func NewObserverWithRestored added in v1.15.0

func NewObserverWithRestored(t interface {
	mock.TestingT
	Cleanup(func())
}) *ObserverWithRestored

NewObserverWithRestored creates a new instance of ObserverWithRestored. 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.

func (*ObserverWithRestored) EXPECT added in v1.15.0

func (*ObserverWithRestored) Restored added in v1.15.0

func (_m *ObserverWithRestored) Restored(_a0 orm.Event) error

Restored provides a mock function with given fields: _a0

type ObserverWithRestored_Expecter added in v1.15.0

type ObserverWithRestored_Expecter struct {
	// contains filtered or unexported fields
}

func (*ObserverWithRestored_Expecter) Restored added in v1.15.0

Restored is a helper method to define mock.On call

  • _a0 orm.Event

type ObserverWithRestored_Restored_Call added in v1.15.0

type ObserverWithRestored_Restored_Call struct {
	*mock.Call
}

ObserverWithRestored_Restored_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Restored'

func (*ObserverWithRestored_Restored_Call) Return added in v1.15.0

func (*ObserverWithRestored_Restored_Call) Run added in v1.15.0

func (*ObserverWithRestored_Restored_Call) RunAndReturn added in v1.15.0

type ObserverWithRestoring added in v1.15.0

type ObserverWithRestoring struct {
	mock.Mock
}

ObserverWithRestoring is an autogenerated mock type for the ObserverWithRestoring type

func NewObserverWithRestoring added in v1.15.0

func NewObserverWithRestoring(t interface {
	mock.TestingT
	Cleanup(func())
}) *ObserverWithRestoring

NewObserverWithRestoring creates a new instance of ObserverWithRestoring. 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.

func (*ObserverWithRestoring) EXPECT added in v1.15.0

func (*ObserverWithRestoring) Restoring added in v1.15.0

func (_m *ObserverWithRestoring) Restoring(_a0 orm.Event) error

Restoring provides a mock function with given fields: _a0

type ObserverWithRestoring_Expecter added in v1.15.0

type ObserverWithRestoring_Expecter struct {
	// contains filtered or unexported fields
}

func (*ObserverWithRestoring_Expecter) Restoring added in v1.15.0

Restoring is a helper method to define mock.On call

  • _a0 orm.Event

type ObserverWithRestoring_Restoring_Call added in v1.15.0

type ObserverWithRestoring_Restoring_Call struct {
	*mock.Call
}

ObserverWithRestoring_Restoring_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Restoring'

func (*ObserverWithRestoring_Restoring_Call) Return added in v1.15.0

func (*ObserverWithRestoring_Restoring_Call) Run added in v1.15.0

func (*ObserverWithRestoring_Restoring_Call) RunAndReturn added in v1.15.0

type ObserverWithRetrieved added in v1.15.0

type ObserverWithRetrieved struct {
	mock.Mock
}

ObserverWithRetrieved is an autogenerated mock type for the ObserverWithRetrieved type

func NewObserverWithRetrieved added in v1.15.0

func NewObserverWithRetrieved(t interface {
	mock.TestingT
	Cleanup(func())
}) *ObserverWithRetrieved

NewObserverWithRetrieved creates a new instance of ObserverWithRetrieved. 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.

func (*ObserverWithRetrieved) EXPECT added in v1.15.0

func (*ObserverWithRetrieved) Retrieved added in v1.15.0

func (_m *ObserverWithRetrieved) Retrieved(_a0 orm.Event) error

Retrieved provides a mock function with given fields: _a0

type ObserverWithRetrieved_Expecter added in v1.15.0

type ObserverWithRetrieved_Expecter struct {
	// contains filtered or unexported fields
}

func (*ObserverWithRetrieved_Expecter) Retrieved added in v1.15.0

Retrieved is a helper method to define mock.On call

  • _a0 orm.Event

type ObserverWithRetrieved_Retrieved_Call added in v1.15.0

type ObserverWithRetrieved_Retrieved_Call struct {
	*mock.Call
}

ObserverWithRetrieved_Retrieved_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Retrieved'

func (*ObserverWithRetrieved_Retrieved_Call) Return added in v1.15.0

func (*ObserverWithRetrieved_Retrieved_Call) Run added in v1.15.0

func (*ObserverWithRetrieved_Retrieved_Call) RunAndReturn added in v1.15.0

type ObserverWithSaved added in v1.15.0

type ObserverWithSaved struct {
	mock.Mock
}

ObserverWithSaved is an autogenerated mock type for the ObserverWithSaved type

func NewObserverWithSaved added in v1.15.0

func NewObserverWithSaved(t interface {
	mock.TestingT
	Cleanup(func())
}) *ObserverWithSaved

NewObserverWithSaved creates a new instance of ObserverWithSaved. 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.

func (*ObserverWithSaved) EXPECT added in v1.15.0

func (*ObserverWithSaved) Saved added in v1.15.0

func (_m *ObserverWithSaved) Saved(_a0 orm.Event) error

Saved provides a mock function with given fields: _a0

type ObserverWithSaved_Expecter added in v1.15.0

type ObserverWithSaved_Expecter struct {
	// contains filtered or unexported fields
}

func (*ObserverWithSaved_Expecter) Saved added in v1.15.0

func (_e *ObserverWithSaved_Expecter) Saved(_a0 interface{}) *ObserverWithSaved_Saved_Call

Saved is a helper method to define mock.On call

  • _a0 orm.Event

type ObserverWithSaved_Saved_Call added in v1.15.0

type ObserverWithSaved_Saved_Call struct {
	*mock.Call
}

ObserverWithSaved_Saved_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Saved'

func (*ObserverWithSaved_Saved_Call) Return added in v1.15.0

func (*ObserverWithSaved_Saved_Call) Run added in v1.15.0

func (*ObserverWithSaved_Saved_Call) RunAndReturn added in v1.15.0

type ObserverWithSaving added in v1.15.0

type ObserverWithSaving struct {
	mock.Mock
}

ObserverWithSaving is an autogenerated mock type for the ObserverWithSaving type

func NewObserverWithSaving added in v1.15.0

func NewObserverWithSaving(t interface {
	mock.TestingT
	Cleanup(func())
}) *ObserverWithSaving

NewObserverWithSaving creates a new instance of ObserverWithSaving. 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.

func (*ObserverWithSaving) EXPECT added in v1.15.0

func (*ObserverWithSaving) Saving added in v1.15.0

func (_m *ObserverWithSaving) Saving(_a0 orm.Event) error

Saving provides a mock function with given fields: _a0

type ObserverWithSaving_Expecter added in v1.15.0

type ObserverWithSaving_Expecter struct {
	// contains filtered or unexported fields
}

func (*ObserverWithSaving_Expecter) Saving added in v1.15.0

func (_e *ObserverWithSaving_Expecter) Saving(_a0 interface{}) *ObserverWithSaving_Saving_Call

Saving is a helper method to define mock.On call

  • _a0 orm.Event

type ObserverWithSaving_Saving_Call added in v1.15.0

type ObserverWithSaving_Saving_Call struct {
	*mock.Call
}

ObserverWithSaving_Saving_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Saving'

func (*ObserverWithSaving_Saving_Call) Return added in v1.15.0

func (*ObserverWithSaving_Saving_Call) Run added in v1.15.0

func (*ObserverWithSaving_Saving_Call) RunAndReturn added in v1.15.0

type ObserverWithUpdating added in v1.15.0

type ObserverWithUpdating struct {
	mock.Mock
}

ObserverWithUpdating is an autogenerated mock type for the ObserverWithUpdating type

func NewObserverWithUpdating added in v1.15.0

func NewObserverWithUpdating(t interface {
	mock.TestingT
	Cleanup(func())
}) *ObserverWithUpdating

NewObserverWithUpdating creates a new instance of ObserverWithUpdating. 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.

func (*ObserverWithUpdating) EXPECT added in v1.15.0

func (*ObserverWithUpdating) Updating added in v1.15.0

func (_m *ObserverWithUpdating) Updating(_a0 orm.Event) error

Updating provides a mock function with given fields: _a0

type ObserverWithUpdating_Expecter added in v1.15.0

type ObserverWithUpdating_Expecter struct {
	// contains filtered or unexported fields
}

func (*ObserverWithUpdating_Expecter) Updating added in v1.15.0

Updating is a helper method to define mock.On call

  • _a0 orm.Event

type ObserverWithUpdating_Updating_Call added in v1.15.0

type ObserverWithUpdating_Updating_Call struct {
	*mock.Call
}

ObserverWithUpdating_Updating_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Updating'

func (*ObserverWithUpdating_Updating_Call) Return added in v1.15.0

func (*ObserverWithUpdating_Updating_Call) Run added in v1.15.0

func (*ObserverWithUpdating_Updating_Call) RunAndReturn added in v1.15.0

type Observer_Created_Call

type Observer_Created_Call struct {
	*mock.Call
}

Observer_Created_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Created'

func (*Observer_Created_Call) Return

func (*Observer_Created_Call) Run

func (_c *Observer_Created_Call) Run(run func(_a0 orm.Event)) *Observer_Created_Call

func (*Observer_Created_Call) RunAndReturn

func (_c *Observer_Created_Call) RunAndReturn(run func(orm.Event) error) *Observer_Created_Call

type Observer_Deleted_Call

type Observer_Deleted_Call struct {
	*mock.Call
}

Observer_Deleted_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Deleted'

func (*Observer_Deleted_Call) Return

func (*Observer_Deleted_Call) Run

func (_c *Observer_Deleted_Call) Run(run func(_a0 orm.Event)) *Observer_Deleted_Call

func (*Observer_Deleted_Call) RunAndReturn

func (_c *Observer_Deleted_Call) RunAndReturn(run func(orm.Event) error) *Observer_Deleted_Call

type Observer_Expecter

type Observer_Expecter struct {
	// contains filtered or unexported fields
}

func (*Observer_Expecter) Created

func (_e *Observer_Expecter) Created(_a0 interface{}) *Observer_Created_Call

Created is a helper method to define mock.On call

  • _a0 orm.Event

func (*Observer_Expecter) Deleted

func (_e *Observer_Expecter) Deleted(_a0 interface{}) *Observer_Deleted_Call

Deleted is a helper method to define mock.On call

  • _a0 orm.Event

func (*Observer_Expecter) ForceDeleted

func (_e *Observer_Expecter) ForceDeleted(_a0 interface{}) *Observer_ForceDeleted_Call

ForceDeleted is a helper method to define mock.On call

  • _a0 orm.Event

func (*Observer_Expecter) Updated

func (_e *Observer_Expecter) Updated(_a0 interface{}) *Observer_Updated_Call

Updated is a helper method to define mock.On call

  • _a0 orm.Event

type Observer_ForceDeleted_Call

type Observer_ForceDeleted_Call struct {
	*mock.Call
}

Observer_ForceDeleted_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ForceDeleted'

func (*Observer_ForceDeleted_Call) Return

func (*Observer_ForceDeleted_Call) Run

func (*Observer_ForceDeleted_Call) RunAndReturn

type Observer_Updated_Call

type Observer_Updated_Call struct {
	*mock.Call
}

Observer_Updated_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Updated'

func (*Observer_Updated_Call) Return

func (*Observer_Updated_Call) Run

func (_c *Observer_Updated_Call) Run(run func(_a0 orm.Event)) *Observer_Updated_Call

func (*Observer_Updated_Call) RunAndReturn

func (_c *Observer_Updated_Call) RunAndReturn(run func(orm.Event) error) *Observer_Updated_Call

type Orm

type Orm struct {
	mock.Mock
}

Orm is an autogenerated mock type for the Orm type

func NewOrm

func NewOrm(t interface {
	mock.TestingT
	Cleanup(func())
}) *Orm

NewOrm creates a new instance of Orm. 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.

func (*Orm) Connection

func (_m *Orm) Connection(name string) orm.Orm

Connection provides a mock function with given fields: name

func (*Orm) DB

func (_m *Orm) DB() (*sql.DB, error)

DB provides a mock function with no fields

func (*Orm) DatabaseName added in v1.15.0

func (_m *Orm) DatabaseName() string

DatabaseName provides a mock function with no fields

func (*Orm) EXPECT

func (_m *Orm) EXPECT() *Orm_Expecter

func (*Orm) Factory

func (_m *Orm) Factory() orm.Factory

Factory provides a mock function with no fields

func (*Orm) Name added in v1.15.0

func (_m *Orm) Name() string

Name provides a mock function with no fields

func (*Orm) Observe

func (_m *Orm) Observe(model interface{}, observer orm.Observer)

Observe provides a mock function with given fields: model, observer

func (*Orm) Query

func (_m *Orm) Query() orm.Query

Query provides a mock function with no fields

func (*Orm) Refresh added in v1.15.0

func (_m *Orm) Refresh()

Refresh provides a mock function with no fields

func (*Orm) SetQuery added in v1.15.0

func (_m *Orm) SetQuery(query orm.Query)

SetQuery provides a mock function with given fields: query

func (*Orm) Transaction

func (_m *Orm) Transaction(txFunc func(orm.Query) error) error

Transaction provides a mock function with given fields: txFunc

func (*Orm) WithContext

func (_m *Orm) WithContext(ctx context.Context) orm.Orm

WithContext provides a mock function with given fields: ctx

type Orm_Connection_Call

type Orm_Connection_Call struct {
	*mock.Call
}

Orm_Connection_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Connection'

func (*Orm_Connection_Call) Return

func (*Orm_Connection_Call) Run

func (_c *Orm_Connection_Call) Run(run func(name string)) *Orm_Connection_Call

func (*Orm_Connection_Call) RunAndReturn

func (_c *Orm_Connection_Call) RunAndReturn(run func(string) orm.Orm) *Orm_Connection_Call

type Orm_DB_Call

type Orm_DB_Call struct {
	*mock.Call
}

Orm_DB_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DB'

func (*Orm_DB_Call) Return

func (_c *Orm_DB_Call) Return(_a0 *sql.DB, _a1 error) *Orm_DB_Call

func (*Orm_DB_Call) Run

func (_c *Orm_DB_Call) Run(run func()) *Orm_DB_Call

func (*Orm_DB_Call) RunAndReturn

func (_c *Orm_DB_Call) RunAndReturn(run func() (*sql.DB, error)) *Orm_DB_Call

type Orm_DatabaseName_Call added in v1.15.0

type Orm_DatabaseName_Call struct {
	*mock.Call
}

Orm_DatabaseName_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DatabaseName'

func (*Orm_DatabaseName_Call) Return added in v1.15.0

func (*Orm_DatabaseName_Call) Run added in v1.15.0

func (_c *Orm_DatabaseName_Call) Run(run func()) *Orm_DatabaseName_Call

func (*Orm_DatabaseName_Call) RunAndReturn added in v1.15.0

func (_c *Orm_DatabaseName_Call) RunAndReturn(run func() string) *Orm_DatabaseName_Call

type Orm_Expecter

type Orm_Expecter struct {
	// contains filtered or unexported fields
}

func (*Orm_Expecter) Connection

func (_e *Orm_Expecter) Connection(name interface{}) *Orm_Connection_Call

Connection is a helper method to define mock.On call

  • name string

func (*Orm_Expecter) DB

func (_e *Orm_Expecter) DB() *Orm_DB_Call

DB is a helper method to define mock.On call

func (*Orm_Expecter) DatabaseName added in v1.15.0

func (_e *Orm_Expecter) DatabaseName() *Orm_DatabaseName_Call

DatabaseName is a helper method to define mock.On call

func (*Orm_Expecter) Factory

func (_e *Orm_Expecter) Factory() *Orm_Factory_Call

Factory is a helper method to define mock.On call

func (*Orm_Expecter) Name added in v1.15.0

func (_e *Orm_Expecter) Name() *Orm_Name_Call

Name is a helper method to define mock.On call

func (*Orm_Expecter) Observe

func (_e *Orm_Expecter) Observe(model interface{}, observer interface{}) *Orm_Observe_Call

Observe is a helper method to define mock.On call

  • model interface{}
  • observer orm.Observer

func (*Orm_Expecter) Query

func (_e *Orm_Expecter) Query() *Orm_Query_Call

Query is a helper method to define mock.On call

func (*Orm_Expecter) Refresh added in v1.15.0

func (_e *Orm_Expecter) Refresh() *Orm_Refresh_Call

Refresh is a helper method to define mock.On call

func (*Orm_Expecter) SetQuery added in v1.15.0

func (_e *Orm_Expecter) SetQuery(query interface{}) *Orm_SetQuery_Call

SetQuery is a helper method to define mock.On call

  • query orm.Query

func (*Orm_Expecter) Transaction

func (_e *Orm_Expecter) Transaction(txFunc interface{}) *Orm_Transaction_Call

Transaction is a helper method to define mock.On call

  • txFunc func(orm.Query) error

func (*Orm_Expecter) WithContext

func (_e *Orm_Expecter) WithContext(ctx interface{}) *Orm_WithContext_Call

WithContext is a helper method to define mock.On call

  • ctx context.Context

type Orm_Factory_Call

type Orm_Factory_Call struct {
	*mock.Call
}

Orm_Factory_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Factory'

func (*Orm_Factory_Call) Return

func (_c *Orm_Factory_Call) Return(_a0 orm.Factory) *Orm_Factory_Call

func (*Orm_Factory_Call) Run

func (_c *Orm_Factory_Call) Run(run func()) *Orm_Factory_Call

func (*Orm_Factory_Call) RunAndReturn

func (_c *Orm_Factory_Call) RunAndReturn(run func() orm.Factory) *Orm_Factory_Call

type Orm_Name_Call added in v1.15.0

type Orm_Name_Call struct {
	*mock.Call
}

Orm_Name_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Name'

func (*Orm_Name_Call) Return added in v1.15.0

func (_c *Orm_Name_Call) Return(_a0 string) *Orm_Name_Call

func (*Orm_Name_Call) Run added in v1.15.0

func (_c *Orm_Name_Call) Run(run func()) *Orm_Name_Call

func (*Orm_Name_Call) RunAndReturn added in v1.15.0

func (_c *Orm_Name_Call) RunAndReturn(run func() string) *Orm_Name_Call

type Orm_Observe_Call

type Orm_Observe_Call struct {
	*mock.Call
}

Orm_Observe_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Observe'

func (*Orm_Observe_Call) Return

func (_c *Orm_Observe_Call) Return() *Orm_Observe_Call

func (*Orm_Observe_Call) Run

func (_c *Orm_Observe_Call) Run(run func(model interface{}, observer orm.Observer)) *Orm_Observe_Call

func (*Orm_Observe_Call) RunAndReturn

func (_c *Orm_Observe_Call) RunAndReturn(run func(interface{}, orm.Observer)) *Orm_Observe_Call

type Orm_Query_Call

type Orm_Query_Call struct {
	*mock.Call
}

Orm_Query_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Query'

func (*Orm_Query_Call) Return

func (_c *Orm_Query_Call) Return(_a0 orm.Query) *Orm_Query_Call

func (*Orm_Query_Call) Run

func (_c *Orm_Query_Call) Run(run func()) *Orm_Query_Call

func (*Orm_Query_Call) RunAndReturn

func (_c *Orm_Query_Call) RunAndReturn(run func() orm.Query) *Orm_Query_Call

type Orm_Refresh_Call added in v1.15.0

type Orm_Refresh_Call struct {
	*mock.Call
}

Orm_Refresh_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Refresh'

func (*Orm_Refresh_Call) Return added in v1.15.0

func (_c *Orm_Refresh_Call) Return() *Orm_Refresh_Call

func (*Orm_Refresh_Call) Run added in v1.15.0

func (_c *Orm_Refresh_Call) Run(run func()) *Orm_Refresh_Call

func (*Orm_Refresh_Call) RunAndReturn added in v1.15.0

func (_c *Orm_Refresh_Call) RunAndReturn(run func()) *Orm_Refresh_Call

type Orm_SetQuery_Call added in v1.15.0

type Orm_SetQuery_Call struct {
	*mock.Call
}

Orm_SetQuery_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetQuery'

func (*Orm_SetQuery_Call) Return added in v1.15.0

func (_c *Orm_SetQuery_Call) Return() *Orm_SetQuery_Call

func (*Orm_SetQuery_Call) Run added in v1.15.0

func (_c *Orm_SetQuery_Call) Run(run func(query orm.Query)) *Orm_SetQuery_Call

func (*Orm_SetQuery_Call) RunAndReturn added in v1.15.0

func (_c *Orm_SetQuery_Call) RunAndReturn(run func(orm.Query)) *Orm_SetQuery_Call

type Orm_Transaction_Call

type Orm_Transaction_Call struct {
	*mock.Call
}

Orm_Transaction_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Transaction'

func (*Orm_Transaction_Call) Return

func (*Orm_Transaction_Call) Run

func (_c *Orm_Transaction_Call) Run(run func(txFunc func(orm.Query) error)) *Orm_Transaction_Call

func (*Orm_Transaction_Call) RunAndReturn

func (_c *Orm_Transaction_Call) RunAndReturn(run func(func(orm.Query) error) error) *Orm_Transaction_Call

type Orm_WithContext_Call

type Orm_WithContext_Call struct {
	*mock.Call
}

Orm_WithContext_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WithContext'

func (*Orm_WithContext_Call) Return

func (*Orm_WithContext_Call) Run

func (_c *Orm_WithContext_Call) Run(run func(ctx context.Context)) *Orm_WithContext_Call

func (*Orm_WithContext_Call) RunAndReturn

func (_c *Orm_WithContext_Call) RunAndReturn(run func(context.Context) orm.Orm) *Orm_WithContext_Call

type Query

type Query struct {
	mock.Mock
}

Query is an autogenerated mock type for the Query type

func NewQuery

func NewQuery(t interface {
	mock.TestingT
	Cleanup(func())
}) *Query

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.

func (*Query) Association

func (_m *Query) Association(association string) orm.Association

Association provides a mock function with given fields: association

func (*Query) Begin

func (_m *Query) Begin() (orm.Query, error)

Begin provides a mock function with no fields

func (*Query) Commit added in v1.15.0

func (_m *Query) Commit() error

Commit provides a mock function with no fields

func (*Query) Count

func (_m *Query) Count(count *int64) error

Count provides a mock function with given fields: count

func (*Query) Create

func (_m *Query) Create(value interface{}) error

Create provides a mock function with given fields: value

func (*Query) Cursor

func (_m *Query) Cursor() (chan orm.Cursor, error)

Cursor provides a mock function with no fields

func (*Query) DB added in v1.15.0

func (_m *Query) DB() (*sql.DB, error)

DB provides a mock function with no fields

func (*Query) Delete

func (_m *Query) Delete(value ...interface{}) (*orm.Result, error)

Delete provides a mock function with given fields: value

func (*Query) Distinct

func (_m *Query) Distinct(args ...interface{}) orm.Query

Distinct provides a mock function with given fields: args

func (*Query) Driver

func (_m *Query) Driver() database.Driver

Driver provides a mock function with no fields

func (*Query) EXPECT

func (_m *Query) EXPECT() *Query_Expecter

func (*Query) Exec

func (_m *Query) Exec(_a0 string, values ...interface{}) (*orm.Result, error)

Exec provides a mock function with given fields: _a0, values

func (*Query) Exists

func (_m *Query) Exists(exists *bool) error

Exists provides a mock function with given fields: exists

func (*Query) Find

func (_m *Query) Find(dest interface{}, conds ...interface{}) error

Find provides a mock function with given fields: dest, conds

func (*Query) FindOrFail

func (_m *Query) FindOrFail(dest interface{}, conds ...interface{}) error

FindOrFail provides a mock function with given fields: dest, conds

func (*Query) First

func (_m *Query) First(dest interface{}) error

First provides a mock function with given fields: dest

func (*Query) FirstOr

func (_m *Query) FirstOr(dest interface{}, callback func() error) error

FirstOr provides a mock function with given fields: dest, callback

func (*Query) FirstOrCreate

func (_m *Query) FirstOrCreate(dest interface{}, conds ...interface{}) error

FirstOrCreate provides a mock function with given fields: dest, conds

func (*Query) FirstOrFail

func (_m *Query) FirstOrFail(dest interface{}) error

FirstOrFail provides a mock function with given fields: dest

func (*Query) FirstOrNew

func (_m *Query) FirstOrNew(dest interface{}, attributes interface{}, values ...interface{}) error

FirstOrNew provides a mock function with given fields: dest, attributes, values

func (*Query) ForceDelete

func (_m *Query) ForceDelete(value ...interface{}) (*orm.Result, error)

ForceDelete provides a mock function with given fields: value

func (*Query) Get

func (_m *Query) Get(dest interface{}) error

Get provides a mock function with given fields: dest

func (*Query) Group

func (_m *Query) Group(name string) orm.Query

Group provides a mock function with given fields: name

func (*Query) Having

func (_m *Query) Having(query interface{}, args ...interface{}) orm.Query

Having provides a mock function with given fields: query, args

func (*Query) InRandomOrder

func (_m *Query) InRandomOrder() orm.Query

InRandomOrder provides a mock function with no fields

func (*Query) InTransaction added in v1.15.0

func (_m *Query) InTransaction() bool

InTransaction provides a mock function with no fields

func (*Query) Join

func (_m *Query) Join(query string, args ...interface{}) orm.Query

Join provides a mock function with given fields: query, args

func (*Query) Limit

func (_m *Query) Limit(limit int) orm.Query

Limit provides a mock function with given fields: limit

func (*Query) Load

func (_m *Query) Load(dest interface{}, relation string, args ...interface{}) error

Load provides a mock function with given fields: dest, relation, args

func (*Query) LoadMissing

func (_m *Query) LoadMissing(dest interface{}, relation string, args ...interface{}) error

LoadMissing provides a mock function with given fields: dest, relation, args

func (*Query) LockForUpdate

func (_m *Query) LockForUpdate() orm.Query

LockForUpdate provides a mock function with no fields

func (*Query) Model

func (_m *Query) Model(value interface{}) orm.Query

Model provides a mock function with given fields: value

func (*Query) Offset

func (_m *Query) Offset(offset int) orm.Query

Offset provides a mock function with given fields: offset

func (*Query) Omit

func (_m *Query) Omit(columns ...string) orm.Query

Omit provides a mock function with given fields: columns

func (*Query) OrWhere

func (_m *Query) OrWhere(query interface{}, args ...interface{}) orm.Query

OrWhere provides a mock function with given fields: query, args

func (*Query) OrWhereBetween

func (_m *Query) OrWhereBetween(column string, x interface{}, y interface{}) orm.Query

OrWhereBetween provides a mock function with given fields: column, x, y

func (*Query) OrWhereIn

func (_m *Query) OrWhereIn(column string, values []interface{}) orm.Query

OrWhereIn provides a mock function with given fields: column, values

func (*Query) OrWhereNotBetween

func (_m *Query) OrWhereNotBetween(column string, x interface{}, y interface{}) orm.Query

OrWhereNotBetween provides a mock function with given fields: column, x, y

func (*Query) OrWhereNotIn

func (_m *Query) OrWhereNotIn(column string, values []interface{}) orm.Query

OrWhereNotIn provides a mock function with given fields: column, values

func (*Query) OrWhereNull

func (_m *Query) OrWhereNull(column string) orm.Query

OrWhereNull provides a mock function with given fields: column

func (*Query) Order

func (_m *Query) Order(value interface{}) orm.Query

Order provides a mock function with given fields: value

func (*Query) OrderBy

func (_m *Query) OrderBy(column string, direction ...string) orm.Query

OrderBy provides a mock function with given fields: column, direction

func (*Query) OrderByDesc

func (_m *Query) OrderByDesc(column string) orm.Query

OrderByDesc provides a mock function with given fields: column

func (*Query) Paginate

func (_m *Query) Paginate(page int, limit int, dest interface{}, total *int64) error

Paginate provides a mock function with given fields: page, limit, dest, total

func (*Query) Pluck

func (_m *Query) Pluck(column string, dest interface{}) error

Pluck provides a mock function with given fields: column, dest

func (*Query) Raw

func (_m *Query) Raw(_a0 string, values ...interface{}) orm.Query

Raw provides a mock function with given fields: _a0, values

func (*Query) Restore added in v1.15.0

func (_m *Query) Restore(model ...interface{}) (*orm.Result, error)

Restore provides a mock function with given fields: model

func (*Query) Rollback added in v1.15.0

func (_m *Query) Rollback() error

Rollback provides a mock function with no fields

func (*Query) Save

func (_m *Query) Save(value interface{}) error

Save provides a mock function with given fields: value

func (*Query) SaveQuietly

func (_m *Query) SaveQuietly(value interface{}) error

SaveQuietly provides a mock function with given fields: value

func (*Query) Scan

func (_m *Query) Scan(dest interface{}) error

Scan provides a mock function with given fields: dest

func (*Query) Scopes

func (_m *Query) Scopes(funcs ...func(orm.Query) orm.Query) orm.Query

Scopes provides a mock function with given fields: funcs

func (*Query) Select

func (_m *Query) Select(query interface{}, args ...interface{}) orm.Query

Select provides a mock function with given fields: query, args

func (*Query) SharedLock

func (_m *Query) SharedLock() orm.Query

SharedLock provides a mock function with no fields

func (*Query) Sum

func (_m *Query) Sum(column string, dest interface{}) error

Sum provides a mock function with given fields: column, dest

func (*Query) Table

func (_m *Query) Table(name string, args ...interface{}) orm.Query

Table provides a mock function with given fields: name, args

func (*Query) ToRawSql

func (_m *Query) ToRawSql() orm.ToSql

ToRawSql provides a mock function with no fields

func (*Query) ToSql

func (_m *Query) ToSql() orm.ToSql

ToSql provides a mock function with no fields

func (*Query) Update

func (_m *Query) Update(column interface{}, value ...interface{}) (*orm.Result, error)

Update provides a mock function with given fields: column, value

func (*Query) UpdateOrCreate

func (_m *Query) UpdateOrCreate(dest interface{}, attributes interface{}, values interface{}) error

UpdateOrCreate provides a mock function with given fields: dest, attributes, values

func (*Query) Where

func (_m *Query) Where(query interface{}, args ...interface{}) orm.Query

Where provides a mock function with given fields: query, args

func (*Query) WhereBetween

func (_m *Query) WhereBetween(column string, x interface{}, y interface{}) orm.Query

WhereBetween provides a mock function with given fields: column, x, y

func (*Query) WhereIn

func (_m *Query) WhereIn(column string, values []interface{}) orm.Query

WhereIn provides a mock function with given fields: column, values

func (*Query) WhereNotBetween

func (_m *Query) WhereNotBetween(column string, x interface{}, y interface{}) orm.Query

WhereNotBetween provides a mock function with given fields: column, x, y

func (*Query) WhereNotIn

func (_m *Query) WhereNotIn(column string, values []interface{}) orm.Query

WhereNotIn provides a mock function with given fields: column, values

func (*Query) WhereNotNull

func (_m *Query) WhereNotNull(column string) orm.Query

WhereNotNull provides a mock function with given fields: column

func (*Query) WhereNull

func (_m *Query) WhereNull(column string) orm.Query

WhereNull provides a mock function with given fields: column

func (*Query) With

func (_m *Query) With(query string, args ...interface{}) orm.Query

With provides a mock function with given fields: query, args

func (*Query) WithTrashed

func (_m *Query) WithTrashed() orm.Query

WithTrashed provides a mock function with no fields

func (*Query) WithoutEvents

func (_m *Query) WithoutEvents() orm.Query

WithoutEvents provides a mock function with no fields

type QueryWithContext added in v1.15.6

type QueryWithContext struct {
	mock.Mock
}

QueryWithContext is an autogenerated mock type for the QueryWithContext type

func NewQueryWithContext added in v1.15.6

func NewQueryWithContext(t interface {
	mock.TestingT
	Cleanup(func())
}) *QueryWithContext

NewQueryWithContext creates a new instance of QueryWithContext. 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.

func (*QueryWithContext) EXPECT added in v1.15.6

func (*QueryWithContext) WithContext added in v1.15.6

func (_m *QueryWithContext) WithContext(ctx context.Context) orm.Query

WithContext provides a mock function with given fields: ctx

type QueryWithContext_Expecter added in v1.15.6

type QueryWithContext_Expecter struct {
	// contains filtered or unexported fields
}

func (*QueryWithContext_Expecter) WithContext added in v1.15.6

func (_e *QueryWithContext_Expecter) WithContext(ctx interface{}) *QueryWithContext_WithContext_Call

WithContext is a helper method to define mock.On call

  • ctx context.Context

type QueryWithContext_WithContext_Call added in v1.15.6

type QueryWithContext_WithContext_Call struct {
	*mock.Call
}

QueryWithContext_WithContext_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WithContext'

func (*QueryWithContext_WithContext_Call) Return added in v1.15.6

func (*QueryWithContext_WithContext_Call) Run added in v1.15.6

func (*QueryWithContext_WithContext_Call) RunAndReturn added in v1.15.6

type QueryWithObserver added in v1.15.0

type QueryWithObserver struct {
	mock.Mock
}

QueryWithObserver is an autogenerated mock type for the QueryWithObserver type

func NewQueryWithObserver added in v1.15.0

func NewQueryWithObserver(t interface {
	mock.TestingT
	Cleanup(func())
}) *QueryWithObserver

NewQueryWithObserver creates a new instance of QueryWithObserver. 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.

func (*QueryWithObserver) EXPECT added in v1.15.0

func (*QueryWithObserver) Observe added in v1.15.0

func (_m *QueryWithObserver) Observe(model interface{}, observer orm.Observer)

Observe provides a mock function with given fields: model, observer

type QueryWithObserver_Expecter added in v1.15.0

type QueryWithObserver_Expecter struct {
	// contains filtered or unexported fields
}

func (*QueryWithObserver_Expecter) Observe added in v1.15.0

func (_e *QueryWithObserver_Expecter) Observe(model interface{}, observer interface{}) *QueryWithObserver_Observe_Call

Observe is a helper method to define mock.On call

  • model interface{}
  • observer orm.Observer

type QueryWithObserver_Observe_Call added in v1.15.0

type QueryWithObserver_Observe_Call struct {
	*mock.Call
}

QueryWithObserver_Observe_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Observe'

func (*QueryWithObserver_Observe_Call) Return added in v1.15.0

func (*QueryWithObserver_Observe_Call) Run added in v1.15.0

func (_c *QueryWithObserver_Observe_Call) Run(run func(model interface{}, observer orm.Observer)) *QueryWithObserver_Observe_Call

func (*QueryWithObserver_Observe_Call) RunAndReturn added in v1.15.0

func (_c *QueryWithObserver_Observe_Call) RunAndReturn(run func(interface{}, orm.Observer)) *QueryWithObserver_Observe_Call

type Query_Association_Call

type Query_Association_Call struct {
	*mock.Call
}

Query_Association_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Association'

func (*Query_Association_Call) Return

func (*Query_Association_Call) Run

func (_c *Query_Association_Call) Run(run func(association string)) *Query_Association_Call

func (*Query_Association_Call) RunAndReturn

type Query_Begin_Call

type Query_Begin_Call struct {
	*mock.Call
}

Query_Begin_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Begin'

func (*Query_Begin_Call) Return

func (_c *Query_Begin_Call) Return(_a0 orm.Query, _a1 error) *Query_Begin_Call

func (*Query_Begin_Call) Run

func (_c *Query_Begin_Call) Run(run func()) *Query_Begin_Call

func (*Query_Begin_Call) RunAndReturn

func (_c *Query_Begin_Call) RunAndReturn(run func() (orm.Query, error)) *Query_Begin_Call

type Query_Commit_Call added in v1.15.0

type Query_Commit_Call struct {
	*mock.Call
}

Query_Commit_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Commit'

func (*Query_Commit_Call) Return added in v1.15.0

func (_c *Query_Commit_Call) Return(_a0 error) *Query_Commit_Call

func (*Query_Commit_Call) Run added in v1.15.0

func (_c *Query_Commit_Call) Run(run func()) *Query_Commit_Call

func (*Query_Commit_Call) RunAndReturn added in v1.15.0

func (_c *Query_Commit_Call) RunAndReturn(run func() error) *Query_Commit_Call

type Query_Count_Call

type Query_Count_Call struct {
	*mock.Call
}

Query_Count_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Count'

func (*Query_Count_Call) Return

func (_c *Query_Count_Call) Return(_a0 error) *Query_Count_Call

func (*Query_Count_Call) Run

func (_c *Query_Count_Call) Run(run func(count *int64)) *Query_Count_Call

func (*Query_Count_Call) RunAndReturn

func (_c *Query_Count_Call) RunAndReturn(run func(*int64) error) *Query_Count_Call

type Query_Create_Call

type Query_Create_Call struct {
	*mock.Call
}

Query_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'

func (*Query_Create_Call) Return

func (_c *Query_Create_Call) Return(_a0 error) *Query_Create_Call

func (*Query_Create_Call) Run

func (_c *Query_Create_Call) Run(run func(value interface{})) *Query_Create_Call

func (*Query_Create_Call) RunAndReturn

func (_c *Query_Create_Call) RunAndReturn(run func(interface{}) error) *Query_Create_Call

type Query_Cursor_Call

type Query_Cursor_Call struct {
	*mock.Call
}

Query_Cursor_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Cursor'

func (*Query_Cursor_Call) Return

func (_c *Query_Cursor_Call) Return(_a0 chan orm.Cursor, _a1 error) *Query_Cursor_Call

func (*Query_Cursor_Call) Run

func (_c *Query_Cursor_Call) Run(run func()) *Query_Cursor_Call

func (*Query_Cursor_Call) RunAndReturn

func (_c *Query_Cursor_Call) RunAndReturn(run func() (chan orm.Cursor, error)) *Query_Cursor_Call

type Query_DB_Call added in v1.15.0

type Query_DB_Call struct {
	*mock.Call
}

Query_DB_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DB'

func (*Query_DB_Call) Return added in v1.15.0

func (_c *Query_DB_Call) Return(_a0 *sql.DB, _a1 error) *Query_DB_Call

func (*Query_DB_Call) Run added in v1.15.0

func (_c *Query_DB_Call) Run(run func()) *Query_DB_Call

func (*Query_DB_Call) RunAndReturn added in v1.15.0

func (_c *Query_DB_Call) RunAndReturn(run func() (*sql.DB, error)) *Query_DB_Call

type Query_Delete_Call

type Query_Delete_Call struct {
	*mock.Call
}

Query_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'

func (*Query_Delete_Call) Return

func (_c *Query_Delete_Call) Return(_a0 *orm.Result, _a1 error) *Query_Delete_Call

func (*Query_Delete_Call) Run

func (_c *Query_Delete_Call) Run(run func(value ...interface{})) *Query_Delete_Call

func (*Query_Delete_Call) RunAndReturn

func (_c *Query_Delete_Call) RunAndReturn(run func(...interface{}) (*orm.Result, error)) *Query_Delete_Call

type Query_Distinct_Call

type Query_Distinct_Call struct {
	*mock.Call
}

Query_Distinct_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Distinct'

func (*Query_Distinct_Call) Return

func (*Query_Distinct_Call) Run

func (_c *Query_Distinct_Call) Run(run func(args ...interface{})) *Query_Distinct_Call

func (*Query_Distinct_Call) RunAndReturn

func (_c *Query_Distinct_Call) RunAndReturn(run func(...interface{}) orm.Query) *Query_Distinct_Call

type Query_Driver_Call

type Query_Driver_Call struct {
	*mock.Call
}

Query_Driver_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Driver'

func (*Query_Driver_Call) Return

func (*Query_Driver_Call) Run

func (_c *Query_Driver_Call) Run(run func()) *Query_Driver_Call

func (*Query_Driver_Call) RunAndReturn

func (_c *Query_Driver_Call) RunAndReturn(run func() database.Driver) *Query_Driver_Call

type Query_Exec_Call

type Query_Exec_Call struct {
	*mock.Call
}

Query_Exec_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Exec'

func (*Query_Exec_Call) Return

func (_c *Query_Exec_Call) Return(_a0 *orm.Result, _a1 error) *Query_Exec_Call

func (*Query_Exec_Call) Run

func (_c *Query_Exec_Call) Run(run func(_a0 string, values ...interface{})) *Query_Exec_Call

func (*Query_Exec_Call) RunAndReturn

func (_c *Query_Exec_Call) RunAndReturn(run func(string, ...interface{}) (*orm.Result, error)) *Query_Exec_Call

type Query_Exists_Call

type Query_Exists_Call struct {
	*mock.Call
}

Query_Exists_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Exists'

func (*Query_Exists_Call) Return

func (_c *Query_Exists_Call) Return(_a0 error) *Query_Exists_Call

func (*Query_Exists_Call) Run

func (_c *Query_Exists_Call) Run(run func(exists *bool)) *Query_Exists_Call

func (*Query_Exists_Call) RunAndReturn

func (_c *Query_Exists_Call) RunAndReturn(run func(*bool) error) *Query_Exists_Call

type Query_Expecter

type Query_Expecter struct {
	// contains filtered or unexported fields
}

func (*Query_Expecter) Association

func (_e *Query_Expecter) Association(association interface{}) *Query_Association_Call

Association is a helper method to define mock.On call

  • association string

func (*Query_Expecter) Begin

func (_e *Query_Expecter) Begin() *Query_Begin_Call

Begin is a helper method to define mock.On call

func (*Query_Expecter) Commit added in v1.15.0

func (_e *Query_Expecter) Commit() *Query_Commit_Call

Commit is a helper method to define mock.On call

func (*Query_Expecter) Count

func (_e *Query_Expecter) Count(count interface{}) *Query_Count_Call

Count is a helper method to define mock.On call

  • count *int64

func (*Query_Expecter) Create

func (_e *Query_Expecter) Create(value interface{}) *Query_Create_Call

Create is a helper method to define mock.On call

  • value interface{}

func (*Query_Expecter) Cursor

func (_e *Query_Expecter) Cursor() *Query_Cursor_Call

Cursor is a helper method to define mock.On call

func (*Query_Expecter) DB added in v1.15.0

func (_e *Query_Expecter) DB() *Query_DB_Call

DB is a helper method to define mock.On call

func (*Query_Expecter) Delete

func (_e *Query_Expecter) Delete(value ...interface{}) *Query_Delete_Call

Delete is a helper method to define mock.On call

  • value ...interface{}

func (*Query_Expecter) Distinct

func (_e *Query_Expecter) Distinct(args ...interface{}) *Query_Distinct_Call

Distinct is a helper method to define mock.On call

  • args ...interface{}

func (*Query_Expecter) Driver

func (_e *Query_Expecter) Driver() *Query_Driver_Call

Driver is a helper method to define mock.On call

func (*Query_Expecter) Exec

func (_e *Query_Expecter) Exec(_a0 interface{}, values ...interface{}) *Query_Exec_Call

Exec is a helper method to define mock.On call

  • _a0 string
  • values ...interface{}

func (*Query_Expecter) Exists

func (_e *Query_Expecter) Exists(exists interface{}) *Query_Exists_Call

Exists is a helper method to define mock.On call

  • exists *bool

func (*Query_Expecter) Find

func (_e *Query_Expecter) Find(dest interface{}, conds ...interface{}) *Query_Find_Call

Find is a helper method to define mock.On call

  • dest interface{}
  • conds ...interface{}

func (*Query_Expecter) FindOrFail

func (_e *Query_Expecter) FindOrFail(dest interface{}, conds ...interface{}) *Query_FindOrFail_Call

FindOrFail is a helper method to define mock.On call

  • dest interface{}
  • conds ...interface{}

func (*Query_Expecter) First

func (_e *Query_Expecter) First(dest interface{}) *Query_First_Call

First is a helper method to define mock.On call

  • dest interface{}

func (*Query_Expecter) FirstOr

func (_e *Query_Expecter) FirstOr(dest interface{}, callback interface{}) *Query_FirstOr_Call

FirstOr is a helper method to define mock.On call

  • dest interface{}
  • callback func() error

func (*Query_Expecter) FirstOrCreate

func (_e *Query_Expecter) FirstOrCreate(dest interface{}, conds ...interface{}) *Query_FirstOrCreate_Call

FirstOrCreate is a helper method to define mock.On call

  • dest interface{}
  • conds ...interface{}

func (*Query_Expecter) FirstOrFail

func (_e *Query_Expecter) FirstOrFail(dest interface{}) *Query_FirstOrFail_Call

FirstOrFail is a helper method to define mock.On call

  • dest interface{}

func (*Query_Expecter) FirstOrNew

func (_e *Query_Expecter) FirstOrNew(dest interface{}, attributes interface{}, values ...interface{}) *Query_FirstOrNew_Call

FirstOrNew is a helper method to define mock.On call

  • dest interface{}
  • attributes interface{}
  • values ...interface{}

func (*Query_Expecter) ForceDelete

func (_e *Query_Expecter) ForceDelete(value ...interface{}) *Query_ForceDelete_Call

ForceDelete is a helper method to define mock.On call

  • value ...interface{}

func (*Query_Expecter) Get

func (_e *Query_Expecter) Get(dest interface{}) *Query_Get_Call

Get is a helper method to define mock.On call

  • dest interface{}

func (*Query_Expecter) Group

func (_e *Query_Expecter) Group(name interface{}) *Query_Group_Call

Group is a helper method to define mock.On call

  • name string

func (*Query_Expecter) Having

func (_e *Query_Expecter) Having(query interface{}, args ...interface{}) *Query_Having_Call

Having is a helper method to define mock.On call

  • query interface{}
  • args ...interface{}

func (*Query_Expecter) InRandomOrder

func (_e *Query_Expecter) InRandomOrder() *Query_InRandomOrder_Call

InRandomOrder is a helper method to define mock.On call

func (*Query_Expecter) InTransaction added in v1.15.0

func (_e *Query_Expecter) InTransaction() *Query_InTransaction_Call

InTransaction is a helper method to define mock.On call

func (*Query_Expecter) Join

func (_e *Query_Expecter) Join(query interface{}, args ...interface{}) *Query_Join_Call

Join is a helper method to define mock.On call

  • query string
  • args ...interface{}

func (*Query_Expecter) Limit

func (_e *Query_Expecter) Limit(limit interface{}) *Query_Limit_Call

Limit is a helper method to define mock.On call

  • limit int

func (*Query_Expecter) Load

func (_e *Query_Expecter) Load(dest interface{}, relation interface{}, args ...interface{}) *Query_Load_Call

Load is a helper method to define mock.On call

  • dest interface{}
  • relation string
  • args ...interface{}

func (*Query_Expecter) LoadMissing

func (_e *Query_Expecter) LoadMissing(dest interface{}, relation interface{}, args ...interface{}) *Query_LoadMissing_Call

LoadMissing is a helper method to define mock.On call

  • dest interface{}
  • relation string
  • args ...interface{}

func (*Query_Expecter) LockForUpdate

func (_e *Query_Expecter) LockForUpdate() *Query_LockForUpdate_Call

LockForUpdate is a helper method to define mock.On call

func (*Query_Expecter) Model

func (_e *Query_Expecter) Model(value interface{}) *Query_Model_Call

Model is a helper method to define mock.On call

  • value interface{}

func (*Query_Expecter) Offset

func (_e *Query_Expecter) Offset(offset interface{}) *Query_Offset_Call

Offset is a helper method to define mock.On call

  • offset int

func (*Query_Expecter) Omit

func (_e *Query_Expecter) Omit(columns ...interface{}) *Query_Omit_Call

Omit is a helper method to define mock.On call

  • columns ...string

func (*Query_Expecter) OrWhere

func (_e *Query_Expecter) OrWhere(query interface{}, args ...interface{}) *Query_OrWhere_Call

OrWhere is a helper method to define mock.On call

  • query interface{}
  • args ...interface{}

func (*Query_Expecter) OrWhereBetween

func (_e *Query_Expecter) OrWhereBetween(column interface{}, x interface{}, y interface{}) *Query_OrWhereBetween_Call

OrWhereBetween is a helper method to define mock.On call

  • column string
  • x interface{}
  • y interface{}

func (*Query_Expecter) OrWhereIn

func (_e *Query_Expecter) OrWhereIn(column interface{}, values interface{}) *Query_OrWhereIn_Call

OrWhereIn is a helper method to define mock.On call

  • column string
  • values []interface{}

func (*Query_Expecter) OrWhereNotBetween

func (_e *Query_Expecter) OrWhereNotBetween(column interface{}, x interface{}, y interface{}) *Query_OrWhereNotBetween_Call

OrWhereNotBetween is a helper method to define mock.On call

  • column string
  • x interface{}
  • y interface{}

func (*Query_Expecter) OrWhereNotIn

func (_e *Query_Expecter) OrWhereNotIn(column interface{}, values interface{}) *Query_OrWhereNotIn_Call

OrWhereNotIn is a helper method to define mock.On call

  • column string
  • values []interface{}

func (*Query_Expecter) OrWhereNull

func (_e *Query_Expecter) OrWhereNull(column interface{}) *Query_OrWhereNull_Call

OrWhereNull is a helper method to define mock.On call

  • column string

func (*Query_Expecter) Order

func (_e *Query_Expecter) Order(value interface{}) *Query_Order_Call

Order is a helper method to define mock.On call

  • value interface{}

func (*Query_Expecter) OrderBy

func (_e *Query_Expecter) OrderBy(column interface{}, direction ...interface{}) *Query_OrderBy_Call

OrderBy is a helper method to define mock.On call

  • column string
  • direction ...string

func (*Query_Expecter) OrderByDesc

func (_e *Query_Expecter) OrderByDesc(column interface{}) *Query_OrderByDesc_Call

OrderByDesc is a helper method to define mock.On call

  • column string

func (*Query_Expecter) Paginate

func (_e *Query_Expecter) Paginate(page interface{}, limit interface{}, dest interface{}, total interface{}) *Query_Paginate_Call

Paginate is a helper method to define mock.On call

  • page int
  • limit int
  • dest interface{}
  • total *int64

func (*Query_Expecter) Pluck

func (_e *Query_Expecter) Pluck(column interface{}, dest interface{}) *Query_Pluck_Call

Pluck is a helper method to define mock.On call

  • column string
  • dest interface{}

func (*Query_Expecter) Raw

func (_e *Query_Expecter) Raw(_a0 interface{}, values ...interface{}) *Query_Raw_Call

Raw is a helper method to define mock.On call

  • _a0 string
  • values ...interface{}

func (*Query_Expecter) Restore added in v1.15.0

func (_e *Query_Expecter) Restore(model ...interface{}) *Query_Restore_Call

Restore is a helper method to define mock.On call

  • model ...interface{}

func (*Query_Expecter) Rollback added in v1.15.0

func (_e *Query_Expecter) Rollback() *Query_Rollback_Call

Rollback is a helper method to define mock.On call

func (*Query_Expecter) Save

func (_e *Query_Expecter) Save(value interface{}) *Query_Save_Call

Save is a helper method to define mock.On call

  • value interface{}

func (*Query_Expecter) SaveQuietly

func (_e *Query_Expecter) SaveQuietly(value interface{}) *Query_SaveQuietly_Call

SaveQuietly is a helper method to define mock.On call

  • value interface{}

func (*Query_Expecter) Scan

func (_e *Query_Expecter) Scan(dest interface{}) *Query_Scan_Call

Scan is a helper method to define mock.On call

  • dest interface{}

func (*Query_Expecter) Scopes

func (_e *Query_Expecter) Scopes(funcs ...interface{}) *Query_Scopes_Call

Scopes is a helper method to define mock.On call

  • funcs ...func(orm.Query) orm.Query

func (*Query_Expecter) Select

func (_e *Query_Expecter) Select(query interface{}, args ...interface{}) *Query_Select_Call

Select is a helper method to define mock.On call

  • query interface{}
  • args ...interface{}

func (*Query_Expecter) SharedLock

func (_e *Query_Expecter) SharedLock() *Query_SharedLock_Call

SharedLock is a helper method to define mock.On call

func (*Query_Expecter) Sum

func (_e *Query_Expecter) Sum(column interface{}, dest interface{}) *Query_Sum_Call

Sum is a helper method to define mock.On call

  • column string
  • dest interface{}

func (*Query_Expecter) Table

func (_e *Query_Expecter) Table(name interface{}, args ...interface{}) *Query_Table_Call

Table is a helper method to define mock.On call

  • name string
  • args ...interface{}

func (*Query_Expecter) ToRawSql

func (_e *Query_Expecter) ToRawSql() *Query_ToRawSql_Call

ToRawSql is a helper method to define mock.On call

func (*Query_Expecter) ToSql

func (_e *Query_Expecter) ToSql() *Query_ToSql_Call

ToSql is a helper method to define mock.On call

func (*Query_Expecter) Update

func (_e *Query_Expecter) Update(column interface{}, value ...interface{}) *Query_Update_Call

Update is a helper method to define mock.On call

  • column interface{}
  • value ...interface{}

func (*Query_Expecter) UpdateOrCreate

func (_e *Query_Expecter) UpdateOrCreate(dest interface{}, attributes interface{}, values interface{}) *Query_UpdateOrCreate_Call

UpdateOrCreate is a helper method to define mock.On call

  • dest interface{}
  • attributes interface{}
  • values interface{}

func (*Query_Expecter) Where

func (_e *Query_Expecter) Where(query interface{}, args ...interface{}) *Query_Where_Call

Where is a helper method to define mock.On call

  • query interface{}
  • args ...interface{}

func (*Query_Expecter) WhereBetween

func (_e *Query_Expecter) WhereBetween(column interface{}, x interface{}, y interface{}) *Query_WhereBetween_Call

WhereBetween is a helper method to define mock.On call

  • column string
  • x interface{}
  • y interface{}

func (*Query_Expecter) WhereIn

func (_e *Query_Expecter) WhereIn(column interface{}, values interface{}) *Query_WhereIn_Call

WhereIn is a helper method to define mock.On call

  • column string
  • values []interface{}

func (*Query_Expecter) WhereNotBetween

func (_e *Query_Expecter) WhereNotBetween(column interface{}, x interface{}, y interface{}) *Query_WhereNotBetween_Call

WhereNotBetween is a helper method to define mock.On call

  • column string
  • x interface{}
  • y interface{}

func (*Query_Expecter) WhereNotIn

func (_e *Query_Expecter) WhereNotIn(column interface{}, values interface{}) *Query_WhereNotIn_Call

WhereNotIn is a helper method to define mock.On call

  • column string
  • values []interface{}

func (*Query_Expecter) WhereNotNull

func (_e *Query_Expecter) WhereNotNull(column interface{}) *Query_WhereNotNull_Call

WhereNotNull is a helper method to define mock.On call

  • column string

func (*Query_Expecter) WhereNull

func (_e *Query_Expecter) WhereNull(column interface{}) *Query_WhereNull_Call

WhereNull is a helper method to define mock.On call

  • column string

func (*Query_Expecter) With

func (_e *Query_Expecter) With(query interface{}, args ...interface{}) *Query_With_Call

With is a helper method to define mock.On call

  • query string
  • args ...interface{}

func (*Query_Expecter) WithTrashed

func (_e *Query_Expecter) WithTrashed() *Query_WithTrashed_Call

WithTrashed is a helper method to define mock.On call

func (*Query_Expecter) WithoutEvents

func (_e *Query_Expecter) WithoutEvents() *Query_WithoutEvents_Call

WithoutEvents is a helper method to define mock.On call

type Query_FindOrFail_Call

type Query_FindOrFail_Call struct {
	*mock.Call
}

Query_FindOrFail_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindOrFail'

func (*Query_FindOrFail_Call) Return

func (*Query_FindOrFail_Call) Run

func (_c *Query_FindOrFail_Call) Run(run func(dest interface{}, conds ...interface{})) *Query_FindOrFail_Call

func (*Query_FindOrFail_Call) RunAndReturn

func (_c *Query_FindOrFail_Call) RunAndReturn(run func(interface{}, ...interface{}) error) *Query_FindOrFail_Call

type Query_Find_Call

type Query_Find_Call struct {
	*mock.Call
}

Query_Find_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Find'

func (*Query_Find_Call) Return

func (_c *Query_Find_Call) Return(_a0 error) *Query_Find_Call

func (*Query_Find_Call) Run

func (_c *Query_Find_Call) Run(run func(dest interface{}, conds ...interface{})) *Query_Find_Call

func (*Query_Find_Call) RunAndReturn

func (_c *Query_Find_Call) RunAndReturn(run func(interface{}, ...interface{}) error) *Query_Find_Call

type Query_FirstOrCreate_Call

type Query_FirstOrCreate_Call struct {
	*mock.Call
}

Query_FirstOrCreate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FirstOrCreate'

func (*Query_FirstOrCreate_Call) Return

func (*Query_FirstOrCreate_Call) Run

func (_c *Query_FirstOrCreate_Call) Run(run func(dest interface{}, conds ...interface{})) *Query_FirstOrCreate_Call

func (*Query_FirstOrCreate_Call) RunAndReturn

func (_c *Query_FirstOrCreate_Call) RunAndReturn(run func(interface{}, ...interface{}) error) *Query_FirstOrCreate_Call

type Query_FirstOrFail_Call

type Query_FirstOrFail_Call struct {
	*mock.Call
}

Query_FirstOrFail_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FirstOrFail'

func (*Query_FirstOrFail_Call) Return

func (*Query_FirstOrFail_Call) Run

func (_c *Query_FirstOrFail_Call) Run(run func(dest interface{})) *Query_FirstOrFail_Call

func (*Query_FirstOrFail_Call) RunAndReturn

func (_c *Query_FirstOrFail_Call) RunAndReturn(run func(interface{}) error) *Query_FirstOrFail_Call

type Query_FirstOrNew_Call

type Query_FirstOrNew_Call struct {
	*mock.Call
}

Query_FirstOrNew_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FirstOrNew'

func (*Query_FirstOrNew_Call) Return

func (*Query_FirstOrNew_Call) Run

func (_c *Query_FirstOrNew_Call) Run(run func(dest interface{}, attributes interface{}, values ...interface{})) *Query_FirstOrNew_Call

func (*Query_FirstOrNew_Call) RunAndReturn

func (_c *Query_FirstOrNew_Call) RunAndReturn(run func(interface{}, interface{}, ...interface{}) error) *Query_FirstOrNew_Call

type Query_FirstOr_Call

type Query_FirstOr_Call struct {
	*mock.Call
}

Query_FirstOr_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FirstOr'

func (*Query_FirstOr_Call) Return

func (_c *Query_FirstOr_Call) Return(_a0 error) *Query_FirstOr_Call

func (*Query_FirstOr_Call) Run

func (_c *Query_FirstOr_Call) Run(run func(dest interface{}, callback func() error)) *Query_FirstOr_Call

func (*Query_FirstOr_Call) RunAndReturn

func (_c *Query_FirstOr_Call) RunAndReturn(run func(interface{}, func() error) error) *Query_FirstOr_Call

type Query_First_Call

type Query_First_Call struct {
	*mock.Call
}

Query_First_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'First'

func (*Query_First_Call) Return

func (_c *Query_First_Call) Return(_a0 error) *Query_First_Call

func (*Query_First_Call) Run

func (_c *Query_First_Call) Run(run func(dest interface{})) *Query_First_Call

func (*Query_First_Call) RunAndReturn

func (_c *Query_First_Call) RunAndReturn(run func(interface{}) error) *Query_First_Call

type Query_ForceDelete_Call

type Query_ForceDelete_Call struct {
	*mock.Call
}

Query_ForceDelete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ForceDelete'

func (*Query_ForceDelete_Call) Return

func (*Query_ForceDelete_Call) Run

func (_c *Query_ForceDelete_Call) Run(run func(value ...interface{})) *Query_ForceDelete_Call

func (*Query_ForceDelete_Call) RunAndReturn

func (_c *Query_ForceDelete_Call) RunAndReturn(run func(...interface{}) (*orm.Result, error)) *Query_ForceDelete_Call

type Query_Get_Call

type Query_Get_Call struct {
	*mock.Call
}

Query_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'

func (*Query_Get_Call) Return

func (_c *Query_Get_Call) Return(_a0 error) *Query_Get_Call

func (*Query_Get_Call) Run

func (_c *Query_Get_Call) Run(run func(dest interface{})) *Query_Get_Call

func (*Query_Get_Call) RunAndReturn

func (_c *Query_Get_Call) RunAndReturn(run func(interface{}) error) *Query_Get_Call

type Query_Group_Call

type Query_Group_Call struct {
	*mock.Call
}

Query_Group_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Group'

func (*Query_Group_Call) Return

func (_c *Query_Group_Call) Return(_a0 orm.Query) *Query_Group_Call

func (*Query_Group_Call) Run

func (_c *Query_Group_Call) Run(run func(name string)) *Query_Group_Call

func (*Query_Group_Call) RunAndReturn

func (_c *Query_Group_Call) RunAndReturn(run func(string) orm.Query) *Query_Group_Call

type Query_Having_Call

type Query_Having_Call struct {
	*mock.Call
}

Query_Having_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Having'

func (*Query_Having_Call) Return

func (_c *Query_Having_Call) Return(_a0 orm.Query) *Query_Having_Call

func (*Query_Having_Call) Run

func (_c *Query_Having_Call) Run(run func(query interface{}, args ...interface{})) *Query_Having_Call

func (*Query_Having_Call) RunAndReturn

func (_c *Query_Having_Call) RunAndReturn(run func(interface{}, ...interface{}) orm.Query) *Query_Having_Call

type Query_InRandomOrder_Call

type Query_InRandomOrder_Call struct {
	*mock.Call
}

Query_InRandomOrder_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'InRandomOrder'

func (*Query_InRandomOrder_Call) Return

func (*Query_InRandomOrder_Call) Run

func (*Query_InRandomOrder_Call) RunAndReturn

func (_c *Query_InRandomOrder_Call) RunAndReturn(run func() orm.Query) *Query_InRandomOrder_Call

type Query_InTransaction_Call added in v1.15.0

type Query_InTransaction_Call struct {
	*mock.Call
}

Query_InTransaction_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'InTransaction'

func (*Query_InTransaction_Call) Return added in v1.15.0

func (*Query_InTransaction_Call) Run added in v1.15.0

func (*Query_InTransaction_Call) RunAndReturn added in v1.15.0

func (_c *Query_InTransaction_Call) RunAndReturn(run func() bool) *Query_InTransaction_Call

type Query_Join_Call

type Query_Join_Call struct {
	*mock.Call
}

Query_Join_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Join'

func (*Query_Join_Call) Return

func (_c *Query_Join_Call) Return(_a0 orm.Query) *Query_Join_Call

func (*Query_Join_Call) Run

func (_c *Query_Join_Call) Run(run func(query string, args ...interface{})) *Query_Join_Call

func (*Query_Join_Call) RunAndReturn

func (_c *Query_Join_Call) RunAndReturn(run func(string, ...interface{}) orm.Query) *Query_Join_Call

type Query_Limit_Call

type Query_Limit_Call struct {
	*mock.Call
}

Query_Limit_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Limit'

func (*Query_Limit_Call) Return

func (_c *Query_Limit_Call) Return(_a0 orm.Query) *Query_Limit_Call

func (*Query_Limit_Call) Run

func (_c *Query_Limit_Call) Run(run func(limit int)) *Query_Limit_Call

func (*Query_Limit_Call) RunAndReturn

func (_c *Query_Limit_Call) RunAndReturn(run func(int) orm.Query) *Query_Limit_Call

type Query_LoadMissing_Call

type Query_LoadMissing_Call struct {
	*mock.Call
}

Query_LoadMissing_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'LoadMissing'

func (*Query_LoadMissing_Call) Return

func (*Query_LoadMissing_Call) Run

func (_c *Query_LoadMissing_Call) Run(run func(dest interface{}, relation string, args ...interface{})) *Query_LoadMissing_Call

func (*Query_LoadMissing_Call) RunAndReturn

func (_c *Query_LoadMissing_Call) RunAndReturn(run func(interface{}, string, ...interface{}) error) *Query_LoadMissing_Call

type Query_Load_Call

type Query_Load_Call struct {
	*mock.Call
}

Query_Load_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Load'

func (*Query_Load_Call) Return

func (_c *Query_Load_Call) Return(_a0 error) *Query_Load_Call

func (*Query_Load_Call) Run

func (_c *Query_Load_Call) Run(run func(dest interface{}, relation string, args ...interface{})) *Query_Load_Call

func (*Query_Load_Call) RunAndReturn

func (_c *Query_Load_Call) RunAndReturn(run func(interface{}, string, ...interface{}) error) *Query_Load_Call

type Query_LockForUpdate_Call

type Query_LockForUpdate_Call struct {
	*mock.Call
}

Query_LockForUpdate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'LockForUpdate'

func (*Query_LockForUpdate_Call) Return

func (*Query_LockForUpdate_Call) Run

func (*Query_LockForUpdate_Call) RunAndReturn

func (_c *Query_LockForUpdate_Call) RunAndReturn(run func() orm.Query) *Query_LockForUpdate_Call

type Query_Model_Call

type Query_Model_Call struct {
	*mock.Call
}

Query_Model_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Model'

func (*Query_Model_Call) Return

func (_c *Query_Model_Call) Return(_a0 orm.Query) *Query_Model_Call

func (*Query_Model_Call) Run

func (_c *Query_Model_Call) Run(run func(value interface{})) *Query_Model_Call

func (*Query_Model_Call) RunAndReturn

func (_c *Query_Model_Call) RunAndReturn(run func(interface{}) orm.Query) *Query_Model_Call

type Query_Offset_Call

type Query_Offset_Call struct {
	*mock.Call
}

Query_Offset_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Offset'

func (*Query_Offset_Call) Return

func (_c *Query_Offset_Call) Return(_a0 orm.Query) *Query_Offset_Call

func (*Query_Offset_Call) Run

func (_c *Query_Offset_Call) Run(run func(offset int)) *Query_Offset_Call

func (*Query_Offset_Call) RunAndReturn

func (_c *Query_Offset_Call) RunAndReturn(run func(int) orm.Query) *Query_Offset_Call

type Query_Omit_Call

type Query_Omit_Call struct {
	*mock.Call
}

Query_Omit_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Omit'

func (*Query_Omit_Call) Return

func (_c *Query_Omit_Call) Return(_a0 orm.Query) *Query_Omit_Call

func (*Query_Omit_Call) Run

func (_c *Query_Omit_Call) Run(run func(columns ...string)) *Query_Omit_Call

func (*Query_Omit_Call) RunAndReturn

func (_c *Query_Omit_Call) RunAndReturn(run func(...string) orm.Query) *Query_Omit_Call

type Query_OrWhereBetween_Call

type Query_OrWhereBetween_Call struct {
	*mock.Call
}

Query_OrWhereBetween_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OrWhereBetween'

func (*Query_OrWhereBetween_Call) Return

func (*Query_OrWhereBetween_Call) Run

func (_c *Query_OrWhereBetween_Call) Run(run func(column string, x interface{}, y interface{})) *Query_OrWhereBetween_Call

func (*Query_OrWhereBetween_Call) RunAndReturn

func (_c *Query_OrWhereBetween_Call) RunAndReturn(run func(string, interface{}, interface{}) orm.Query) *Query_OrWhereBetween_Call

type Query_OrWhereIn_Call

type Query_OrWhereIn_Call struct {
	*mock.Call
}

Query_OrWhereIn_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OrWhereIn'

func (*Query_OrWhereIn_Call) Return

func (*Query_OrWhereIn_Call) Run

func (_c *Query_OrWhereIn_Call) Run(run func(column string, values []interface{})) *Query_OrWhereIn_Call

func (*Query_OrWhereIn_Call) RunAndReturn

func (_c *Query_OrWhereIn_Call) RunAndReturn(run func(string, []interface{}) orm.Query) *Query_OrWhereIn_Call

type Query_OrWhereNotBetween_Call

type Query_OrWhereNotBetween_Call struct {
	*mock.Call
}

Query_OrWhereNotBetween_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OrWhereNotBetween'

func (*Query_OrWhereNotBetween_Call) Return

func (*Query_OrWhereNotBetween_Call) Run

func (_c *Query_OrWhereNotBetween_Call) Run(run func(column string, x interface{}, y interface{})) *Query_OrWhereNotBetween_Call

func (*Query_OrWhereNotBetween_Call) RunAndReturn

func (_c *Query_OrWhereNotBetween_Call) RunAndReturn(run func(string, interface{}, interface{}) orm.Query) *Query_OrWhereNotBetween_Call

type Query_OrWhereNotIn_Call

type Query_OrWhereNotIn_Call struct {
	*mock.Call
}

Query_OrWhereNotIn_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OrWhereNotIn'

func (*Query_OrWhereNotIn_Call) Return

func (*Query_OrWhereNotIn_Call) Run

func (_c *Query_OrWhereNotIn_Call) Run(run func(column string, values []interface{})) *Query_OrWhereNotIn_Call

func (*Query_OrWhereNotIn_Call) RunAndReturn

func (_c *Query_OrWhereNotIn_Call) RunAndReturn(run func(string, []interface{}) orm.Query) *Query_OrWhereNotIn_Call

type Query_OrWhereNull_Call

type Query_OrWhereNull_Call struct {
	*mock.Call
}

Query_OrWhereNull_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OrWhereNull'

func (*Query_OrWhereNull_Call) Return

func (*Query_OrWhereNull_Call) Run

func (_c *Query_OrWhereNull_Call) Run(run func(column string)) *Query_OrWhereNull_Call

func (*Query_OrWhereNull_Call) RunAndReturn

func (_c *Query_OrWhereNull_Call) RunAndReturn(run func(string) orm.Query) *Query_OrWhereNull_Call

type Query_OrWhere_Call

type Query_OrWhere_Call struct {
	*mock.Call
}

Query_OrWhere_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OrWhere'

func (*Query_OrWhere_Call) Return

func (*Query_OrWhere_Call) Run

func (_c *Query_OrWhere_Call) Run(run func(query interface{}, args ...interface{})) *Query_OrWhere_Call

func (*Query_OrWhere_Call) RunAndReturn

func (_c *Query_OrWhere_Call) RunAndReturn(run func(interface{}, ...interface{}) orm.Query) *Query_OrWhere_Call

type Query_OrderByDesc_Call

type Query_OrderByDesc_Call struct {
	*mock.Call
}

Query_OrderByDesc_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OrderByDesc'

func (*Query_OrderByDesc_Call) Return

func (*Query_OrderByDesc_Call) Run

func (_c *Query_OrderByDesc_Call) Run(run func(column string)) *Query_OrderByDesc_Call

func (*Query_OrderByDesc_Call) RunAndReturn

func (_c *Query_OrderByDesc_Call) RunAndReturn(run func(string) orm.Query) *Query_OrderByDesc_Call

type Query_OrderBy_Call

type Query_OrderBy_Call struct {
	*mock.Call
}

Query_OrderBy_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OrderBy'

func (*Query_OrderBy_Call) Return

func (*Query_OrderBy_Call) Run

func (_c *Query_OrderBy_Call) Run(run func(column string, direction ...string)) *Query_OrderBy_Call

func (*Query_OrderBy_Call) RunAndReturn

func (_c *Query_OrderBy_Call) RunAndReturn(run func(string, ...string) orm.Query) *Query_OrderBy_Call

type Query_Order_Call

type Query_Order_Call struct {
	*mock.Call
}

Query_Order_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Order'

func (*Query_Order_Call) Return

func (_c *Query_Order_Call) Return(_a0 orm.Query) *Query_Order_Call

func (*Query_Order_Call) Run

func (_c *Query_Order_Call) Run(run func(value interface{})) *Query_Order_Call

func (*Query_Order_Call) RunAndReturn

func (_c *Query_Order_Call) RunAndReturn(run func(interface{}) orm.Query) *Query_Order_Call

type Query_Paginate_Call

type Query_Paginate_Call struct {
	*mock.Call
}

Query_Paginate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Paginate'

func (*Query_Paginate_Call) Return

func (*Query_Paginate_Call) Run

func (_c *Query_Paginate_Call) Run(run func(page int, limit int, dest interface{}, total *int64)) *Query_Paginate_Call

func (*Query_Paginate_Call) RunAndReturn

func (_c *Query_Paginate_Call) RunAndReturn(run func(int, int, interface{}, *int64) error) *Query_Paginate_Call

type Query_Pluck_Call

type Query_Pluck_Call struct {
	*mock.Call
}

Query_Pluck_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Pluck'

func (*Query_Pluck_Call) Return

func (_c *Query_Pluck_Call) Return(_a0 error) *Query_Pluck_Call

func (*Query_Pluck_Call) Run

func (_c *Query_Pluck_Call) Run(run func(column string, dest interface{})) *Query_Pluck_Call

func (*Query_Pluck_Call) RunAndReturn

func (_c *Query_Pluck_Call) RunAndReturn(run func(string, interface{}) error) *Query_Pluck_Call

type Query_Raw_Call

type Query_Raw_Call struct {
	*mock.Call
}

Query_Raw_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Raw'

func (*Query_Raw_Call) Return

func (_c *Query_Raw_Call) Return(_a0 orm.Query) *Query_Raw_Call

func (*Query_Raw_Call) Run

func (_c *Query_Raw_Call) Run(run func(_a0 string, values ...interface{})) *Query_Raw_Call

func (*Query_Raw_Call) RunAndReturn

func (_c *Query_Raw_Call) RunAndReturn(run func(string, ...interface{}) orm.Query) *Query_Raw_Call

type Query_Restore_Call added in v1.15.0

type Query_Restore_Call struct {
	*mock.Call
}

Query_Restore_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Restore'

func (*Query_Restore_Call) Return added in v1.15.0

func (_c *Query_Restore_Call) Return(_a0 *orm.Result, _a1 error) *Query_Restore_Call

func (*Query_Restore_Call) Run added in v1.15.0

func (_c *Query_Restore_Call) Run(run func(model ...interface{})) *Query_Restore_Call

func (*Query_Restore_Call) RunAndReturn added in v1.15.0

func (_c *Query_Restore_Call) RunAndReturn(run func(...interface{}) (*orm.Result, error)) *Query_Restore_Call

type Query_Rollback_Call added in v1.15.0

type Query_Rollback_Call struct {
	*mock.Call
}

Query_Rollback_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Rollback'

func (*Query_Rollback_Call) Return added in v1.15.0

func (*Query_Rollback_Call) Run added in v1.15.0

func (_c *Query_Rollback_Call) Run(run func()) *Query_Rollback_Call

func (*Query_Rollback_Call) RunAndReturn added in v1.15.0

func (_c *Query_Rollback_Call) RunAndReturn(run func() error) *Query_Rollback_Call

type Query_SaveQuietly_Call

type Query_SaveQuietly_Call struct {
	*mock.Call
}

Query_SaveQuietly_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SaveQuietly'

func (*Query_SaveQuietly_Call) Return

func (*Query_SaveQuietly_Call) Run

func (_c *Query_SaveQuietly_Call) Run(run func(value interface{})) *Query_SaveQuietly_Call

func (*Query_SaveQuietly_Call) RunAndReturn

func (_c *Query_SaveQuietly_Call) RunAndReturn(run func(interface{}) error) *Query_SaveQuietly_Call

type Query_Save_Call

type Query_Save_Call struct {
	*mock.Call
}

Query_Save_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Save'

func (*Query_Save_Call) Return

func (_c *Query_Save_Call) Return(_a0 error) *Query_Save_Call

func (*Query_Save_Call) Run

func (_c *Query_Save_Call) Run(run func(value interface{})) *Query_Save_Call

func (*Query_Save_Call) RunAndReturn

func (_c *Query_Save_Call) RunAndReturn(run func(interface{}) error) *Query_Save_Call

type Query_Scan_Call

type Query_Scan_Call struct {
	*mock.Call
}

Query_Scan_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Scan'

func (*Query_Scan_Call) Return

func (_c *Query_Scan_Call) Return(_a0 error) *Query_Scan_Call

func (*Query_Scan_Call) Run

func (_c *Query_Scan_Call) Run(run func(dest interface{})) *Query_Scan_Call

func (*Query_Scan_Call) RunAndReturn

func (_c *Query_Scan_Call) RunAndReturn(run func(interface{}) error) *Query_Scan_Call

type Query_Scopes_Call

type Query_Scopes_Call struct {
	*mock.Call
}

Query_Scopes_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Scopes'

func (*Query_Scopes_Call) Return

func (_c *Query_Scopes_Call) Return(_a0 orm.Query) *Query_Scopes_Call

func (*Query_Scopes_Call) Run

func (_c *Query_Scopes_Call) Run(run func(funcs ...func(orm.Query) orm.Query)) *Query_Scopes_Call

func (*Query_Scopes_Call) RunAndReturn

func (_c *Query_Scopes_Call) RunAndReturn(run func(...func(orm.Query) orm.Query) orm.Query) *Query_Scopes_Call

type Query_Select_Call

type Query_Select_Call struct {
	*mock.Call
}

Query_Select_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Select'

func (*Query_Select_Call) Return

func (_c *Query_Select_Call) Return(_a0 orm.Query) *Query_Select_Call

func (*Query_Select_Call) Run

func (_c *Query_Select_Call) Run(run func(query interface{}, args ...interface{})) *Query_Select_Call

func (*Query_Select_Call) RunAndReturn

func (_c *Query_Select_Call) RunAndReturn(run func(interface{}, ...interface{}) orm.Query) *Query_Select_Call

type Query_SharedLock_Call

type Query_SharedLock_Call struct {
	*mock.Call
}

Query_SharedLock_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SharedLock'

func (*Query_SharedLock_Call) Return

func (*Query_SharedLock_Call) Run

func (_c *Query_SharedLock_Call) Run(run func()) *Query_SharedLock_Call

func (*Query_SharedLock_Call) RunAndReturn

func (_c *Query_SharedLock_Call) RunAndReturn(run func() orm.Query) *Query_SharedLock_Call

type Query_Sum_Call

type Query_Sum_Call struct {
	*mock.Call
}

Query_Sum_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Sum'

func (*Query_Sum_Call) Return

func (_c *Query_Sum_Call) Return(_a0 error) *Query_Sum_Call

func (*Query_Sum_Call) Run

func (_c *Query_Sum_Call) Run(run func(column string, dest interface{})) *Query_Sum_Call

func (*Query_Sum_Call) RunAndReturn

func (_c *Query_Sum_Call) RunAndReturn(run func(string, interface{}) error) *Query_Sum_Call

type Query_Table_Call

type Query_Table_Call struct {
	*mock.Call
}

Query_Table_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Table'

func (*Query_Table_Call) Return

func (_c *Query_Table_Call) Return(_a0 orm.Query) *Query_Table_Call

func (*Query_Table_Call) Run

func (_c *Query_Table_Call) Run(run func(name string, args ...interface{})) *Query_Table_Call

func (*Query_Table_Call) RunAndReturn

func (_c *Query_Table_Call) RunAndReturn(run func(string, ...interface{}) orm.Query) *Query_Table_Call

type Query_ToRawSql_Call

type Query_ToRawSql_Call struct {
	*mock.Call
}

Query_ToRawSql_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ToRawSql'

func (*Query_ToRawSql_Call) Return

func (*Query_ToRawSql_Call) Run

func (_c *Query_ToRawSql_Call) Run(run func()) *Query_ToRawSql_Call

func (*Query_ToRawSql_Call) RunAndReturn

func (_c *Query_ToRawSql_Call) RunAndReturn(run func() orm.ToSql) *Query_ToRawSql_Call

type Query_ToSql_Call

type Query_ToSql_Call struct {
	*mock.Call
}

Query_ToSql_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ToSql'

func (*Query_ToSql_Call) Return

func (_c *Query_ToSql_Call) Return(_a0 orm.ToSql) *Query_ToSql_Call

func (*Query_ToSql_Call) Run

func (_c *Query_ToSql_Call) Run(run func()) *Query_ToSql_Call

func (*Query_ToSql_Call) RunAndReturn

func (_c *Query_ToSql_Call) RunAndReturn(run func() orm.ToSql) *Query_ToSql_Call

type Query_UpdateOrCreate_Call

type Query_UpdateOrCreate_Call struct {
	*mock.Call
}

Query_UpdateOrCreate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateOrCreate'

func (*Query_UpdateOrCreate_Call) Return

func (*Query_UpdateOrCreate_Call) Run

func (_c *Query_UpdateOrCreate_Call) Run(run func(dest interface{}, attributes interface{}, values interface{})) *Query_UpdateOrCreate_Call

func (*Query_UpdateOrCreate_Call) RunAndReturn

func (_c *Query_UpdateOrCreate_Call) RunAndReturn(run func(interface{}, interface{}, interface{}) error) *Query_UpdateOrCreate_Call

type Query_Update_Call

type Query_Update_Call struct {
	*mock.Call
}

Query_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'

func (*Query_Update_Call) Return

func (_c *Query_Update_Call) Return(_a0 *orm.Result, _a1 error) *Query_Update_Call

func (*Query_Update_Call) Run

func (_c *Query_Update_Call) Run(run func(column interface{}, value ...interface{})) *Query_Update_Call

func (*Query_Update_Call) RunAndReturn

func (_c *Query_Update_Call) RunAndReturn(run func(interface{}, ...interface{}) (*orm.Result, error)) *Query_Update_Call

type Query_WhereBetween_Call

type Query_WhereBetween_Call struct {
	*mock.Call
}

Query_WhereBetween_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WhereBetween'

func (*Query_WhereBetween_Call) Return

func (*Query_WhereBetween_Call) Run

func (_c *Query_WhereBetween_Call) Run(run func(column string, x interface{}, y interface{})) *Query_WhereBetween_Call

func (*Query_WhereBetween_Call) RunAndReturn

func (_c *Query_WhereBetween_Call) RunAndReturn(run func(string, interface{}, interface{}) orm.Query) *Query_WhereBetween_Call

type Query_WhereIn_Call

type Query_WhereIn_Call struct {
	*mock.Call
}

Query_WhereIn_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WhereIn'

func (*Query_WhereIn_Call) Return

func (*Query_WhereIn_Call) Run

func (_c *Query_WhereIn_Call) Run(run func(column string, values []interface{})) *Query_WhereIn_Call

func (*Query_WhereIn_Call) RunAndReturn

func (_c *Query_WhereIn_Call) RunAndReturn(run func(string, []interface{}) orm.Query) *Query_WhereIn_Call

type Query_WhereNotBetween_Call

type Query_WhereNotBetween_Call struct {
	*mock.Call
}

Query_WhereNotBetween_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WhereNotBetween'

func (*Query_WhereNotBetween_Call) Return

func (*Query_WhereNotBetween_Call) Run

func (_c *Query_WhereNotBetween_Call) Run(run func(column string, x interface{}, y interface{})) *Query_WhereNotBetween_Call

func (*Query_WhereNotBetween_Call) RunAndReturn

func (_c *Query_WhereNotBetween_Call) RunAndReturn(run func(string, interface{}, interface{}) orm.Query) *Query_WhereNotBetween_Call

type Query_WhereNotIn_Call

type Query_WhereNotIn_Call struct {
	*mock.Call
}

Query_WhereNotIn_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WhereNotIn'

func (*Query_WhereNotIn_Call) Return

func (*Query_WhereNotIn_Call) Run

func (_c *Query_WhereNotIn_Call) Run(run func(column string, values []interface{})) *Query_WhereNotIn_Call

func (*Query_WhereNotIn_Call) RunAndReturn

func (_c *Query_WhereNotIn_Call) RunAndReturn(run func(string, []interface{}) orm.Query) *Query_WhereNotIn_Call

type Query_WhereNotNull_Call

type Query_WhereNotNull_Call struct {
	*mock.Call
}

Query_WhereNotNull_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WhereNotNull'

func (*Query_WhereNotNull_Call) Return

func (*Query_WhereNotNull_Call) Run

func (_c *Query_WhereNotNull_Call) Run(run func(column string)) *Query_WhereNotNull_Call

func (*Query_WhereNotNull_Call) RunAndReturn

func (_c *Query_WhereNotNull_Call) RunAndReturn(run func(string) orm.Query) *Query_WhereNotNull_Call

type Query_WhereNull_Call

type Query_WhereNull_Call struct {
	*mock.Call
}

Query_WhereNull_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WhereNull'

func (*Query_WhereNull_Call) Return

func (*Query_WhereNull_Call) Run

func (_c *Query_WhereNull_Call) Run(run func(column string)) *Query_WhereNull_Call

func (*Query_WhereNull_Call) RunAndReturn

func (_c *Query_WhereNull_Call) RunAndReturn(run func(string) orm.Query) *Query_WhereNull_Call

type Query_Where_Call

type Query_Where_Call struct {
	*mock.Call
}

Query_Where_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Where'

func (*Query_Where_Call) Return

func (_c *Query_Where_Call) Return(_a0 orm.Query) *Query_Where_Call

func (*Query_Where_Call) Run

func (_c *Query_Where_Call) Run(run func(query interface{}, args ...interface{})) *Query_Where_Call

func (*Query_Where_Call) RunAndReturn

func (_c *Query_Where_Call) RunAndReturn(run func(interface{}, ...interface{}) orm.Query) *Query_Where_Call

type Query_WithTrashed_Call

type Query_WithTrashed_Call struct {
	*mock.Call
}

Query_WithTrashed_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WithTrashed'

func (*Query_WithTrashed_Call) Return

func (*Query_WithTrashed_Call) Run

func (_c *Query_WithTrashed_Call) Run(run func()) *Query_WithTrashed_Call

func (*Query_WithTrashed_Call) RunAndReturn

func (_c *Query_WithTrashed_Call) RunAndReturn(run func() orm.Query) *Query_WithTrashed_Call

type Query_With_Call

type Query_With_Call struct {
	*mock.Call
}

Query_With_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'With'

func (*Query_With_Call) Return

func (_c *Query_With_Call) Return(_a0 orm.Query) *Query_With_Call

func (*Query_With_Call) Run

func (_c *Query_With_Call) Run(run func(query string, args ...interface{})) *Query_With_Call

func (*Query_With_Call) RunAndReturn

func (_c *Query_With_Call) RunAndReturn(run func(string, ...interface{}) orm.Query) *Query_With_Call

type Query_WithoutEvents_Call

type Query_WithoutEvents_Call struct {
	*mock.Call
}

Query_WithoutEvents_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WithoutEvents'

func (*Query_WithoutEvents_Call) Return

func (*Query_WithoutEvents_Call) Run

func (*Query_WithoutEvents_Call) RunAndReturn

func (_c *Query_WithoutEvents_Call) RunAndReturn(run func() orm.Query) *Query_WithoutEvents_Call

type ToSql

type ToSql struct {
	mock.Mock
}

ToSql is an autogenerated mock type for the ToSql type

func NewToSql

func NewToSql(t interface {
	mock.TestingT
	Cleanup(func())
}) *ToSql

NewToSql creates a new instance of ToSql. 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.

func (*ToSql) Count

func (_m *ToSql) Count() string

Count provides a mock function with no fields

func (*ToSql) Create

func (_m *ToSql) Create(value interface{}) string

Create provides a mock function with given fields: value

func (*ToSql) Delete

func (_m *ToSql) Delete(value ...interface{}) string

Delete provides a mock function with given fields: value

func (*ToSql) EXPECT

func (_m *ToSql) EXPECT() *ToSql_Expecter

func (*ToSql) Find

func (_m *ToSql) Find(dest interface{}, conds ...interface{}) string

Find provides a mock function with given fields: dest, conds

func (*ToSql) First

func (_m *ToSql) First(dest interface{}) string

First provides a mock function with given fields: dest

func (*ToSql) ForceDelete added in v1.15.0

func (_m *ToSql) ForceDelete(value ...interface{}) string

ForceDelete provides a mock function with given fields: value

func (*ToSql) Get

func (_m *ToSql) Get(dest interface{}) string

Get provides a mock function with given fields: dest

func (*ToSql) Pluck

func (_m *ToSql) Pluck(column string, dest interface{}) string

Pluck provides a mock function with given fields: column, dest

func (*ToSql) Save

func (_m *ToSql) Save(value interface{}) string

Save provides a mock function with given fields: value

func (*ToSql) Sum

func (_m *ToSql) Sum(column string, dest interface{}) string

Sum provides a mock function with given fields: column, dest

func (*ToSql) Update

func (_m *ToSql) Update(column interface{}, value ...interface{}) string

Update provides a mock function with given fields: column, value

type ToSql_Count_Call

type ToSql_Count_Call struct {
	*mock.Call
}

ToSql_Count_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Count'

func (*ToSql_Count_Call) Return

func (_c *ToSql_Count_Call) Return(_a0 string) *ToSql_Count_Call

func (*ToSql_Count_Call) Run

func (_c *ToSql_Count_Call) Run(run func()) *ToSql_Count_Call

func (*ToSql_Count_Call) RunAndReturn

func (_c *ToSql_Count_Call) RunAndReturn(run func() string) *ToSql_Count_Call

type ToSql_Create_Call

type ToSql_Create_Call struct {
	*mock.Call
}

ToSql_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'

func (*ToSql_Create_Call) Return

func (_c *ToSql_Create_Call) Return(_a0 string) *ToSql_Create_Call

func (*ToSql_Create_Call) Run

func (_c *ToSql_Create_Call) Run(run func(value interface{})) *ToSql_Create_Call

func (*ToSql_Create_Call) RunAndReturn

func (_c *ToSql_Create_Call) RunAndReturn(run func(interface{}) string) *ToSql_Create_Call

type ToSql_Delete_Call

type ToSql_Delete_Call struct {
	*mock.Call
}

ToSql_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'

func (*ToSql_Delete_Call) Return

func (_c *ToSql_Delete_Call) Return(_a0 string) *ToSql_Delete_Call

func (*ToSql_Delete_Call) Run

func (_c *ToSql_Delete_Call) Run(run func(value ...interface{})) *ToSql_Delete_Call

func (*ToSql_Delete_Call) RunAndReturn

func (_c *ToSql_Delete_Call) RunAndReturn(run func(...interface{}) string) *ToSql_Delete_Call

type ToSql_Expecter

type ToSql_Expecter struct {
	// contains filtered or unexported fields
}

func (*ToSql_Expecter) Count

func (_e *ToSql_Expecter) Count() *ToSql_Count_Call

Count is a helper method to define mock.On call

func (*ToSql_Expecter) Create

func (_e *ToSql_Expecter) Create(value interface{}) *ToSql_Create_Call

Create is a helper method to define mock.On call

  • value interface{}

func (*ToSql_Expecter) Delete

func (_e *ToSql_Expecter) Delete(value ...interface{}) *ToSql_Delete_Call

Delete is a helper method to define mock.On call

  • value ...interface{}

func (*ToSql_Expecter) Find

func (_e *ToSql_Expecter) Find(dest interface{}, conds ...interface{}) *ToSql_Find_Call

Find is a helper method to define mock.On call

  • dest interface{}
  • conds ...interface{}

func (*ToSql_Expecter) First

func (_e *ToSql_Expecter) First(dest interface{}) *ToSql_First_Call

First is a helper method to define mock.On call

  • dest interface{}

func (*ToSql_Expecter) ForceDelete added in v1.15.0

func (_e *ToSql_Expecter) ForceDelete(value ...interface{}) *ToSql_ForceDelete_Call

ForceDelete is a helper method to define mock.On call

  • value ...interface{}

func (*ToSql_Expecter) Get

func (_e *ToSql_Expecter) Get(dest interface{}) *ToSql_Get_Call

Get is a helper method to define mock.On call

  • dest interface{}

func (*ToSql_Expecter) Pluck

func (_e *ToSql_Expecter) Pluck(column interface{}, dest interface{}) *ToSql_Pluck_Call

Pluck is a helper method to define mock.On call

  • column string
  • dest interface{}

func (*ToSql_Expecter) Save

func (_e *ToSql_Expecter) Save(value interface{}) *ToSql_Save_Call

Save is a helper method to define mock.On call

  • value interface{}

func (*ToSql_Expecter) Sum

func (_e *ToSql_Expecter) Sum(column interface{}, dest interface{}) *ToSql_Sum_Call

Sum is a helper method to define mock.On call

  • column string
  • dest interface{}

func (*ToSql_Expecter) Update

func (_e *ToSql_Expecter) Update(column interface{}, value ...interface{}) *ToSql_Update_Call

Update is a helper method to define mock.On call

  • column interface{}
  • value ...interface{}

type ToSql_Find_Call

type ToSql_Find_Call struct {
	*mock.Call
}

ToSql_Find_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Find'

func (*ToSql_Find_Call) Return

func (_c *ToSql_Find_Call) Return(_a0 string) *ToSql_Find_Call

func (*ToSql_Find_Call) Run

func (_c *ToSql_Find_Call) Run(run func(dest interface{}, conds ...interface{})) *ToSql_Find_Call

func (*ToSql_Find_Call) RunAndReturn

func (_c *ToSql_Find_Call) RunAndReturn(run func(interface{}, ...interface{}) string) *ToSql_Find_Call

type ToSql_First_Call

type ToSql_First_Call struct {
	*mock.Call
}

ToSql_First_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'First'

func (*ToSql_First_Call) Return

func (_c *ToSql_First_Call) Return(_a0 string) *ToSql_First_Call

func (*ToSql_First_Call) Run

func (_c *ToSql_First_Call) Run(run func(dest interface{})) *ToSql_First_Call

func (*ToSql_First_Call) RunAndReturn

func (_c *ToSql_First_Call) RunAndReturn(run func(interface{}) string) *ToSql_First_Call

type ToSql_ForceDelete_Call added in v1.15.0

type ToSql_ForceDelete_Call struct {
	*mock.Call
}

ToSql_ForceDelete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ForceDelete'

func (*ToSql_ForceDelete_Call) Return added in v1.15.0

func (*ToSql_ForceDelete_Call) Run added in v1.15.0

func (_c *ToSql_ForceDelete_Call) Run(run func(value ...interface{})) *ToSql_ForceDelete_Call

func (*ToSql_ForceDelete_Call) RunAndReturn added in v1.15.0

func (_c *ToSql_ForceDelete_Call) RunAndReturn(run func(...interface{}) string) *ToSql_ForceDelete_Call

type ToSql_Get_Call

type ToSql_Get_Call struct {
	*mock.Call
}

ToSql_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'

func (*ToSql_Get_Call) Return

func (_c *ToSql_Get_Call) Return(_a0 string) *ToSql_Get_Call

func (*ToSql_Get_Call) Run

func (_c *ToSql_Get_Call) Run(run func(dest interface{})) *ToSql_Get_Call

func (*ToSql_Get_Call) RunAndReturn

func (_c *ToSql_Get_Call) RunAndReturn(run func(interface{}) string) *ToSql_Get_Call

type ToSql_Pluck_Call

type ToSql_Pluck_Call struct {
	*mock.Call
}

ToSql_Pluck_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Pluck'

func (*ToSql_Pluck_Call) Return

func (_c *ToSql_Pluck_Call) Return(_a0 string) *ToSql_Pluck_Call

func (*ToSql_Pluck_Call) Run

func (_c *ToSql_Pluck_Call) Run(run func(column string, dest interface{})) *ToSql_Pluck_Call

func (*ToSql_Pluck_Call) RunAndReturn

func (_c *ToSql_Pluck_Call) RunAndReturn(run func(string, interface{}) string) *ToSql_Pluck_Call

type ToSql_Save_Call

type ToSql_Save_Call struct {
	*mock.Call
}

ToSql_Save_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Save'

func (*ToSql_Save_Call) Return

func (_c *ToSql_Save_Call) Return(_a0 string) *ToSql_Save_Call

func (*ToSql_Save_Call) Run

func (_c *ToSql_Save_Call) Run(run func(value interface{})) *ToSql_Save_Call

func (*ToSql_Save_Call) RunAndReturn

func (_c *ToSql_Save_Call) RunAndReturn(run func(interface{}) string) *ToSql_Save_Call

type ToSql_Sum_Call

type ToSql_Sum_Call struct {
	*mock.Call
}

ToSql_Sum_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Sum'

func (*ToSql_Sum_Call) Return

func (_c *ToSql_Sum_Call) Return(_a0 string) *ToSql_Sum_Call

func (*ToSql_Sum_Call) Run

func (_c *ToSql_Sum_Call) Run(run func(column string, dest interface{})) *ToSql_Sum_Call

func (*ToSql_Sum_Call) RunAndReturn

func (_c *ToSql_Sum_Call) RunAndReturn(run func(string, interface{}) string) *ToSql_Sum_Call

type ToSql_Update_Call

type ToSql_Update_Call struct {
	*mock.Call
}

ToSql_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'

func (*ToSql_Update_Call) Return

func (_c *ToSql_Update_Call) Return(_a0 string) *ToSql_Update_Call

func (*ToSql_Update_Call) Run

func (_c *ToSql_Update_Call) Run(run func(column interface{}, value ...interface{})) *ToSql_Update_Call

func (*ToSql_Update_Call) RunAndReturn

func (_c *ToSql_Update_Call) RunAndReturn(run func(interface{}, ...interface{}) string) *ToSql_Update_Call

Jump to

Keyboard shortcuts

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