Documentation ¶
Index ¶
- Variables
- func GetKeySQL(key string, model interface{}, alias string) (sqlKey string, argsKey []interface{})
- func GetMoreKeySQL(key string, model interface{}, tables ...string) (sqlKey string, argsKey []interface{})
- func GetSQLError(error string) (err error)
- func StructWhereSQL(st interface{}) (sql string, args []interface{})
- func Table(table string) string
- func TableOnly(table string) string
- func UniqueTagTable(tag string, tables ...string) (table string)
- type Key
Constants ¶
This section is empty.
Variables ¶
View Source
var TableCols = cmap.NewCMap()
table columns map
Functions ¶
func GetMoreKeySQL ¶
func GetMoreKeySQL(key string, model interface{}, tables ...string) (sqlKey string, argsKey []interface{})
more tables key search sql tables [table1:table1_alias] searModel : Model
func StructWhereSQL ¶ added in v1.8.6
func StructWhereSQL(st interface{}) (sql string, args []interface{})
struct to where sql return key1 = value1 and key2 = value2...
func UniqueTagTable ¶ added in v1.20.11
return unique table tag
Types ¶
Click to show internal directories.
Click to hide internal directories.