Documentation ¶
Index ¶
- Constants
- func AddBindings()
- type MysqlDB
- func (self *MysqlDB) Cleanup() error
- func (self *MysqlDB) Delete(table string, key string) yabf.StatusType
- func (self *MysqlDB) Init() error
- func (self *MysqlDB) Insert(table string, key string, values yabf.KVMap) yabf.StatusType
- func (self *MysqlDB) Read(table string, key string, fields []string) (yabf.KVMap, yabf.StatusType)
- func (self *MysqlDB) Scan(table string, startKey string, recordCount int64, fields []string) ([]yabf.KVMap, yabf.StatusType)
- func (self *MysqlDB) Update(table string, key string, values yabf.KVMap) yabf.StatusType
Constants ¶
View Source
const ( PropertyMysqlHost = "mysql.host" PropertyMysqlHostDefault = "127.0.0.1" PropertyMysqlPort = "mysql.port" PropertyMysqlPortDefault = "3306" PropertyMysqlDatabase = "mysql.db" PropertyMysqlDatabaseDefault = "db" PropertyMysqlUser = "mysql.user" PropertyMysqlUserDefault = "user" PropertyMysqlPassword = "mysql.password" PropertyMysqlPasswordDefault = "password" PropertyMysqlOptions = "mysql.options" PropertyMysqlOptionsDefault = "charset=utf8" PropertyMysqlPrimaryKey = "mysql.primarykey" PropertyMysqlPrimaryKeyDefault = "yabf_key" )
Variables ¶
This section is empty.
Functions ¶
func AddBindings ¶
func AddBindings()
Types ¶
Click to show internal directories.
Click to hide internal directories.