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 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 ( // table columns map TableCols = cmap.NewCMap() )
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 ¶
func StructWhereSQL(st interface{}) (sql string, args []interface{})
struct to where sql return key1 = value1 and key2 = value2...
func UniqueTagTable ¶
return unique table tag
Types ¶
Click to show internal directories.
Click to hide internal directories.