Documentation ¶
Index ¶
- Variables
- type Message
- type MySql
- func (MySql *MySql) Close() error
- func (MySql MySql) Delete(tableName string) int64
- func (MySql MySql) ExecSql(queryStr string) []map[string]string
- func (MySql MySql) GetConn() *MySql
- func (MySql MySql) Insert(tableName string, data map[string]string) int64
- func (MySql *MySql) Limit(number int) *MySql
- func (MySql *MySql) OrderByString(orderString ...string) *MySql
- func (MySql MySql) Pagination(Page int, Limit int) map[string]interface{}
- func (MySql MySql) QueryAll() []map[string]string
- func (MySql MySql) QueryRow() map[string]string
- func (MySql *MySql) Select(tableName string, field []string) *MySql
- func (MySql MySql) Update(tableName string, str map[string]string) int64
- func (MySql *MySql) Where(cond map[string]string) *MySql
- type MysqlCfg
Constants ¶
This section is empty.
Variables ¶
View Source
var DbPool *sync.Pool
View Source
var GlobalDb *sql.DB
Functions ¶
This section is empty.
Types ¶
type Message ¶
type MySql ¶
type MySql struct {
// contains filtered or unexported fields
}
func (*MySql) OrderByString ¶
func (MySql) Pagination ¶
* 分页查询
Click to show internal directories.
Click to hide internal directories.