Documentation
¶
Index ¶
- type MysqlDbExec
- func (exec *MysqlDbExec) Copy() ifs.IAutoApiDataExec
- func (exec *MysqlDbExec) DoCreate(params map[string]interface{}) (int64, error)
- func (exec *MysqlDbExec) DoDelete(id int64) (int64, error)
- func (exec *MysqlDbExec) DoQuery(conditions map[string]interface{}, fields []string) (map[string]interface{}, error)
- func (exec *MysqlDbExec) DoSearch(conditions map[string]interface{}, fields []string, page, size int) ([]map[string]interface{}, int64, error)
- func (exec *MysqlDbExec) DoUpdate(id int64, params map[string]interface{}) (int64, error)
- func (exec *MysqlDbExec) InitDB(name string, c config.AutoApiDataDefined) error
- func (exec *MysqlDbExec) TableName() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MysqlDbExec ¶
type MysqlDbExec struct {
// contains filtered or unexported fields
}
func NewMysqlDbExec ¶
func NewMysqlDbExec(c configstc.DBConfig) (*MysqlDbExec, error)
func (*MysqlDbExec) Copy ¶
func (exec *MysqlDbExec) Copy() ifs.IAutoApiDataExec
func (*MysqlDbExec) DoCreate ¶
func (exec *MysqlDbExec) DoCreate(params map[string]interface{}) (int64, error)
func (*MysqlDbExec) DoQuery ¶
func (exec *MysqlDbExec) DoQuery(conditions map[string]interface{}, fields []string) (map[string]interface{}, error)
func (*MysqlDbExec) DoUpdate ¶
func (exec *MysqlDbExec) DoUpdate(id int64, params map[string]interface{}) (int64, error)
func (*MysqlDbExec) InitDB ¶
func (exec *MysqlDbExec) InitDB(name string, c config.AutoApiDataDefined) error
func (*MysqlDbExec) TableName ¶
func (exec *MysqlDbExec) TableName() string
Click to show internal directories.
Click to hide internal directories.