Documentation ¶
Index ¶
- func GetKeySQL(key string, model interface{}, alias string) (sqlKey string, argsKey []interface{})
- func GetMoreKeySQL(key string, searModel interface{}, tables ...string) (sqlKey string, argsKey []interface{})
- func GetReflectTags(ref reflect.Type) (tags []string)
- func GetSQLError(error string) (err error)
- func GetTags(model interface{}) []string
- func GtTag(structTag reflect.StructTag, curTag string) (oTag, tag, tagTable string, b bool)
- func StructWhereSQL(st interface{}) (sql string, args []interface{})
- func Table(table string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetMoreKeySQL ¶
func GetMoreKeySQL(key string, searModel interface{}, tables ...string) (sqlKey string, argsKey []interface{})
多张表, 第一个表为主表 key search sql tables [table1:table1_alias] searModel : 搜索字段模型
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...
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.