hdboil

package
v1.0.76 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 21, 2023 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AsAliasColumn added in v1.0.74

func AsAliasColumn(alias, colName string) string

func ByDesc

func ByDesc(field string) string

ByDesc OrderBy字段加入desc

func CommitOrRollback

func CommitOrRollback(tx boil.Transactor, err error)

func GetLimitQueryMods

func GetLimitQueryMods(list *protobuf.ListParam) []qm.QueryMod

GetLimitQueryMods 获取Limit相关QueryMods

func GetUpdateCols added in v1.0.74

func GetUpdateCols(cols map[string]any, args ...string) map[string]any

func IfNullZeroNumber added in v1.0.74

func IfNullZeroNumber(oldValue string, args ...string) string

IfNullZeroNumber 如果传了args则用args[0]做为alias, 否则就用oldValue做为alias

func IfNullZeroString added in v1.0.74

func IfNullZeroString(oldValue string, args ...string) string

IfNullZeroString 如果传了args则用args[0]做为alias, 否则就用oldValue做为alias

func Join added in v1.0.74

func Join(thisTable, thisTableColumn, thatTableColumn string, args ...string) string

func JoinAlias added in v1.0.74

func JoinAlias(thisTable, alias, thisColumn, thatTableColumn string, args ...string) string

func JoinQueryMods

func JoinQueryMods(mods ...any) []qm.QueryMod

JoinQueryMods 连接QueryMods

func JoinTableColumn added in v1.0.74

func JoinTableColumn(thisTable, thisColumn, thatTable, thatColumn string, args ...string) string

JoinTableColumn 需要指定Table和column

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL