Documentation ¶
Index ¶
- func GetDb() string
- func Init(cfg *config.MysqlConfig) bool
- func MAdd(dest interface{}) int64
- func MExec(sql string, values ...interface{}) int64
- func MFindList(dest interface{}, destList interface{}) int64
- func MFindListByIn(sql string, destList interface{}) int64
- func MFindOne(dest interface{}) int64
- func MRemove(dest interface{}) int64
- func MSave(dest interface{}) int64
- type DbDaoMysqlSupport
- func (db DbDaoMysqlSupport) CountList(query interface{}) uint64
- func (db DbDaoMysqlSupport) DelData(query interface{}) int64
- func (db DbDaoMysqlSupport) InsertOne(dest interface{}) int64
- func (db DbDaoMysqlSupport) SelectOne(query interface{}) interface{}
- func (db DbDaoMysqlSupport) SelectSortPageList(query interface{}, skip, limit int, sort ...string) interface{}
- func (db DbDaoMysqlSupport) UpdateOne(dest interface{}, query interface{}, update interface{}) int64
- type MConfig
- type MServerConfig
- type Query
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Init ¶
func Init(cfg *config.MysqlConfig) bool
func MFindListByIn ¶
MFindListByIn 根据in查询查找数据列表
Types ¶
type DbDaoMysqlSupport ¶
type DbDaoMysqlSupport struct { }
func (DbDaoMysqlSupport) CountList ¶
func (db DbDaoMysqlSupport) CountList(query interface{}) uint64
func (DbDaoMysqlSupport) DelData ¶
func (db DbDaoMysqlSupport) DelData(query interface{}) int64
func (DbDaoMysqlSupport) InsertOne ¶
func (db DbDaoMysqlSupport) InsertOne(dest interface{}) int64
func (DbDaoMysqlSupport) SelectOne ¶
func (db DbDaoMysqlSupport) SelectOne(query interface{}) interface{}
func (DbDaoMysqlSupport) SelectSortPageList ¶
func (db DbDaoMysqlSupport) SelectSortPageList(query interface{}, skip, limit int, sort ...string) interface{}
func (DbDaoMysqlSupport) UpdateOne ¶
func (db DbDaoMysqlSupport) UpdateOne(dest interface{}, query interface{}, update interface{}) int64
type MConfig ¶
type MConfig struct { MaxIdle int MaxActive int Configs []MServerConfig }
type MServerConfig ¶
Click to show internal directories.
Click to hide internal directories.