Documentation ¶
Overview ¶
MySql引擎层
Index ¶
- Variables
- func CreateLike(column string) string
- func CreatePage(page, limit int) uint64
- func Model2Map(m Model2MapParmas) (res map[string]interface{})
- func NewSQLX(driverName, dbSource string, maxOpenConns, maxIdleConns int) (db *sqlx.DB, err error)
- type And
- type Eq
- type Gt
- type GtOrEq
- type Gte
- type InsertBuilder
- type Like
- type Lt
- type LtOrEq
- type Lte
- type Model2MapParmas
- type NotEq
- type Or
- type SelectBuilder
- type UpdateBuilder
Constants ¶
This section is empty.
Variables ¶
View Source
var SqlBuilder = squirrel.StatementBuilder
用squirrel生成sql语句
View Source
var Sqlx *sqlx.DB
sqlx 全局变量
Functions ¶
func Model2Map ¶
func Model2Map(m Model2MapParmas) (res map[string]interface{})
Types ¶
type InsertBuilder ¶
type InsertBuilder = squirrel.InsertBuilder
type Model2MapParmas ¶
type SelectBuilder ¶
type SelectBuilder = squirrel.SelectBuilder
type UpdateBuilder ¶
type UpdateBuilder = squirrel.UpdateBuilder
Click to show internal directories.
Click to hide internal directories.