Documentation ¶
Index ¶
- Variables
- type LazyMysql
- func (a *LazyMysql) Add(tb interface{}, operateType LazyOperateType, cols []string, condition string) error
- func (a *LazyMysql) AddSQL(sql string, params ...interface{}) error
- func (a *LazyMysql) AddWithLimit(tb interface{}, sql string, operateType LazyOperateType, cols []string, ...) error
- func (a *LazyMysql) Exec()
- func (a *LazyMysql) Flush() error
- func (a *LazyMysql) IsRunning() bool
- func (a *LazyMysql) Quit()
- type LazyMysqlOperate
- type LazyOperateType
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ERR_AlreadyStop = errors.New("lazy_mysql already stop") ERR_NotImpletementOperateType = errors.New("lazy_mysql not implatement type") )
Functions ¶
This section is empty.
Types ¶
type LazyMysql ¶
type LazyMysql struct {
// contains filtered or unexported fields
}
func (*LazyMysql) Add ¶
func (a *LazyMysql) Add(tb interface{}, operateType LazyOperateType, cols []string, condition string) error
if it added fail, need handle directly
func (*LazyMysql) AddWithLimit ¶
type LazyMysqlOperate ¶
type LazyMysqlOperate struct {
// contains filtered or unexported fields
}
type LazyOperateType ¶
type LazyOperateType int
const ( LazyOperateType_Insert LazyOperateType = 1 LazyOperateType_Update LazyOperateType = 2 LazyOperateType_Delete LazyOperateType = 3 LazyOperateType_SQL LazyOperateType = 4 )
Click to show internal directories.
Click to hide internal directories.