Documentation
¶
Index ¶
- func AsAliasColumn(alias, colName string) string
- func ByDesc(field string) string
- func CommitOrRollback(tx boil.Transactor, err error)
- func GetLimitQueryMods(list *protobuf.ListParam) []qm.QueryMod
- func GetUpdateCols(cols map[string]any, args ...string) map[string]any
- func IfNullZeroNumber(oldValue string, args ...string) string
- func IfNullZeroString(oldValue string, args ...string) string
- func Join(thisTable, thisTableColumn, thatTableColumn string, args ...string) string
- func JoinAlias(thisTable, alias, thisColumn, thatTableColumn string, args ...string) string
- func JoinQueryMods(mods ...any) []qm.QueryMod
- func JoinTableColumn(thisTable, thisColumn, thatTable, thatColumn string, args ...string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AsAliasColumn ¶ added in v1.0.74
func CommitOrRollback ¶
func CommitOrRollback(tx boil.Transactor, err error)
func GetLimitQueryMods ¶
GetLimitQueryMods 获取Limit相关QueryMods
func GetUpdateCols ¶ added in v1.0.74
func IfNullZeroNumber ¶ added in v1.0.74
IfNullZeroNumber 如果传了args则用args[0]做为alias, 否则就用oldValue做为alias
func IfNullZeroString ¶ added in v1.0.74
IfNullZeroString 如果传了args则用args[0]做为alias, 否则就用oldValue做为alias
func JoinTableColumn ¶ added in v1.0.74
JoinTableColumn 需要指定Table和column
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.