internal

package
v0.2.9 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	mock.Mock
}

Client is an autogenerated mock type for the Client type

func (*Client) Close

func (_m *Client) Close()

Close provides a mock function with given fields:

func (*Client) CreateTable

func (_m *Client) CreateTable(tableName string, info base.TableInfo) error

CreateTable provides a mock function with given fields: tableName, info

func (*Client) DeleteByID

func (_m *Client) DeleteByID(tableName string, id interface{}) error

DeleteByID provides a mock function with given fields: tableName, id

func (*Client) EnsureIndex

func (_m *Client) EnsureIndex(tableName string, index base.Index) error

EnsureIndex provides a mock function with given fields: tableName, index

func (*Client) FindByID

func (_m *Client) FindByID(tableName string, id interface{}) (base.RecordData, error)

FindByID provides a mock function with given fields: tableName, id

func (*Client) Insert

func (_m *Client) Insert(tableName string, data *base.RecordData) error

Insert provides a mock function with given fields: tableName, data

func (*Client) Query

func (_m *Client) Query(tableName string, conditions ...base.Condition) base.QueryBuilder

Query provides a mock function with given fields: tableName, conditions

func (*Client) UpdateByID

func (_m *Client) UpdateByID(tableName string, id interface{}, data base.RecordData) error

UpdateByID provides a mock function with given fields: tableName, id, data

type QueryBuilder

type QueryBuilder struct {
	mock.Mock
}

QueryBuilder is an autogenerated mock type for the QueryBuilder type

func (*QueryBuilder) All

func (_m *QueryBuilder) All() (base.RecordDataSet, error)

All provides a mock function with given fields:

func (*QueryBuilder) Count

func (_m *QueryBuilder) Count() (int, error)

Count provides a mock function with given fields:

func (*QueryBuilder) Delete

func (_m *QueryBuilder) Delete() (int, error)

Delete provides a mock function with given fields:

func (*QueryBuilder) First

func (_m *QueryBuilder) First() (base.RecordData, error)

First provides a mock function with given fields:

func (*QueryBuilder) Limit

func (_m *QueryBuilder) Limit(n int) base.QueryBuilder

Limit provides a mock function with given fields: n

func (*QueryBuilder) OrderBy

func (_m *QueryBuilder) OrderBy(sorts ...base.Sort) base.QueryBuilder

OrderBy provides a mock function with given fields: sorts

func (*QueryBuilder) Skip

func (_m *QueryBuilder) Skip(n int) base.QueryBuilder

Skip provides a mock function with given fields: n

func (*QueryBuilder) Update

func (_m *QueryBuilder) Update(data base.RecordData) (int, error)

Update provides a mock function with given fields: data

Jump to

Keyboard shortcuts

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