Documentation ¶
Index ¶
- func Execute(conn sqlbuilder.Database, sql string, params map[string]interface{}) (int64, error)
- func GetMySQLConn(username, password, url, dbname string) (sqlbuilder.Database, error)
- func GetPreparedStatement(sql string, params map[string]interface{}) (string, []interface{}, error)
- func IsDuplicatedError(err error) bool
- func QueryList(conn sqlbuilder.Database, sql string, params map[string]interface{}, ...) error
- func QueryOne(conn sqlbuilder.Database, sqlStr string, params map[string]interface{}, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetMySQLConn ¶
func GetMySQLConn(username, password, url, dbname string) (sqlbuilder.Database, error)
GetMySQLConn 获取 mysql 连接
func GetPreparedStatement ¶
GetPreparedStatement 将传入的sql与params参数 整理成 prepare statement
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.