Documentation ¶
Index ¶
- type MockDB
- func (m *MockDB) AddColumn(cName string, column *storage.Column) error
- func (m *MockDB) Close()
- func (m *MockDB) CreateTable(sql string) error
- func (m *MockDB) DelByCondition(cName string, condition interface{}) error
- func (m *MockDB) DropColumn(cName, field string) error
- func (m *MockDB) DropTable(cName string) error
- func (m *MockDB) ExecSql(cmd interface{}) error
- func (m *MockDB) GetCntByCondition(cName string, condition interface{}) (int, error)
- func (m *MockDB) GetDBName() string
- func (m *MockDB) GetIncID(cName string) (int64, error)
- func (m *MockDB) GetMutilByCondition(cName string, fields []string, condition interface{}, result interface{}, ...) error
- func (m *MockDB) GetOneByCondition(cName string, fields []string, condition interface{}, result interface{}) error
- func (m *MockDB) GetSession() interface{}
- func (m *MockDB) GetType() string
- func (m *MockDB) HasFields(cName, field string) (bool, error)
- func (m *MockDB) HasTable(cName string) (bool, error)
- func (m *MockDB) Index(cName string, index *storage.Index) error
- func (m *MockDB) Insert(cName string, data interface{}) (int, error)
- func (m *MockDB) InsertMuti(cName string, data ...interface{}) error
- func (m *MockDB) IsDuplicateErr(err error) bool
- func (m *MockDB) IsNotFoundErr(err error) bool
- func (m *MockDB) ModifyColumn(cName, oldName, newColumn string) error
- func (m *MockDB) Open() error
- func (m *MockDB) Ping() error
- func (m *MockDB) UpdateByCondition(cName string, data, condition interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockDB ¶
type MockDB struct{}
func (*MockDB) CreateTable ¶
func (*MockDB) DelByCondition ¶
func (*MockDB) DropColumn ¶
func (*MockDB) GetCntByCondition ¶
func (*MockDB) GetMutilByCondition ¶
func (*MockDB) GetOneByCondition ¶
func (*MockDB) GetSession ¶
func (m *MockDB) GetSession() interface{}
func (*MockDB) InsertMuti ¶
func (*MockDB) IsDuplicateErr ¶
func (*MockDB) IsNotFoundErr ¶
func (*MockDB) ModifyColumn ¶
func (*MockDB) UpdateByCondition ¶
Click to show internal directories.
Click to hide internal directories.