mock

package
v3.1.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2018 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockDB

type MockDB struct{}

func (*MockDB) AddColumn

func (m *MockDB) AddColumn(cName string, column *storage.Column) error

func (*MockDB) Close

func (m *MockDB) Close()

func (*MockDB) CreateTable

func (m *MockDB) CreateTable(sql string) error

func (*MockDB) DelByCondition

func (m *MockDB) DelByCondition(cName string, condition interface{}) error

func (*MockDB) DropColumn

func (m *MockDB) DropColumn(cName, field string) error

func (*MockDB) DropTable

func (m *MockDB) DropTable(cName string) error

func (*MockDB) ExecSql

func (m *MockDB) ExecSql(cmd interface{}) error

func (*MockDB) GetCntByCondition

func (m *MockDB) GetCntByCondition(cName string, condition interface{}) (int, error)

func (*MockDB) GetDBName

func (m *MockDB) GetDBName() string

func (*MockDB) GetIncID

func (m *MockDB) GetIncID(cName string) (int64, error)

func (*MockDB) GetMutilByCondition

func (m *MockDB) GetMutilByCondition(cName string, fields []string, condition interface{}, result interface{}, sort string, start, limit int) error

func (*MockDB) GetOneByCondition

func (m *MockDB) GetOneByCondition(cName string, fields []string, condition interface{}, result interface{}) error

func (*MockDB) GetSession

func (m *MockDB) GetSession() interface{}

func (*MockDB) GetType

func (m *MockDB) GetType() string

func (*MockDB) HasFields

func (m *MockDB) HasFields(cName, field string) (bool, error)

func (*MockDB) HasTable

func (m *MockDB) HasTable(cName string) (bool, error)

func (*MockDB) Index

func (m *MockDB) Index(cName string, index *storage.Index) error

func (*MockDB) Insert

func (m *MockDB) Insert(cName string, data interface{}) (int, error)

func (*MockDB) InsertMuti

func (m *MockDB) InsertMuti(cName string, data ...interface{}) error

func (*MockDB) IsDuplicateErr

func (m *MockDB) IsDuplicateErr(err error) bool

func (*MockDB) IsNotFoundErr

func (m *MockDB) IsNotFoundErr(err error) bool

func (*MockDB) ModifyColumn

func (m *MockDB) ModifyColumn(cName, oldName, newColumn string) error

func (*MockDB) Open

func (m *MockDB) Open() error

func (*MockDB) Ping

func (m *MockDB) Ping() error

func (*MockDB) UpdateByCondition

func (m *MockDB) UpdateByCondition(cName string, data, condition interface{}) error

Jump to

Keyboard shortcuts

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