Documentation
¶
Index ¶
- Constants
- func GetDataForCreate(obj interface{}) ([]Column, []Argument)
- func GetDataForSelect(obj interface{}) ([]Column, JoinCond)
- func GetDataForUpdate(obj interface{}) map[Column]Argument
- func GetTableNameWithAlias(obj interface{}) string
- func InitMetaTagInfoCache(objs ...interface{})
- type Alias
- type Argument
- type Column
- type JoinCond
- type MetaDTO
- type Table
- type Typ
Constants ¶
View Source
const (
Undefined = ""
)
Variables ¶
This section is empty.
Functions ¶
func GetDataForCreate ¶ added in v1.2.0
func GetDataForSelect ¶ added in v1.2.0
func GetDataForUpdate ¶ added in v1.2.0
func GetTableNameWithAlias ¶ added in v1.2.1
func GetTableNameWithAlias(obj interface{}) string
GetTableNameWithAlias - return string: `table_name` as `alias_name` (if alias_name not set, return `table_name` as `table_name`)
func InitMetaTagInfoCache ¶ added in v1.2.0
func InitMetaTagInfoCache(objs ...interface{})
Types ¶
type Alias ¶
type Alias = string
func GetTableAlias ¶ added in v1.2.1
func GetTableAlias(obj interface{}) Alias
GetTableAlias - return alias of table, if not set, return table name
type MetaDTO ¶ added in v1.2.0
type MetaDTO = struct { ColsMap map[ormUseInTagValue][]Column JoinCond JoinCond TableName Table TableAlias Alias StructName Typ }
func GetMetaDTO ¶ added in v1.2.0
func GetMetaDTO(obj interface{}) *MetaDTO
Click to show internal directories.
Click to hide internal directories.