Documentation
¶
Index ¶
- Constants
- func GetDataForCreate(obj any) ([]Column, []Argument)
- func GetDataForSelect(obj any) ([]Column, JoinCond)
- func GetDataForUpdate(obj any) map[Column]Argument
- func GetTableNameWithAlias(obj any) string
- func InitMetaTagInfoCache(objs ...any)
- 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
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 ...any)
Types ¶
type Alias ¶
type Alias = string
func GetTableAlias ¶ added in v1.2.1
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
type Table ¶ added in v1.2.0
type Table = string
func GetTableName ¶ added in v1.2.0
GetTableName - return table name
Click to show internal directories.
Click to hide internal directories.