Documentation ¶
Index ¶
- func AsAliasColumn(alias, colName string) string
- func GetDB(args ...boil.Executor) boil.Executor
- 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 InnerJoin(joinTable string, args ...string) *joinClause
- func LeftJoin(joinTable string, args ...string) *joinClause
- func NewQmBuilder(mods ...qm.QueryMod) *qmBuilder
- func OrderBy() *orderByBuilder
- func SUM(col string, args ...string) string
- type Transaction
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AsAliasColumn ¶
func GetLimitQueryMods ¶
GetLimitQueryMods 获取Limit相关QueryMods
func IfNullZeroNumber ¶
IfNullZeroNumber 如果传了args则用args[0]做为alias, 否则就用oldValue做为alias
func IfNullZeroString ¶
IfNullZeroString 如果传了args则用args[0]做为alias, 否则就用oldValue做为alias
func NewQmBuilder ¶
Types ¶
type Transaction ¶
type Transaction struct { Tx boil.Transactor // contains filtered or unexported fields }
func NewTransaction ¶
func NewTransaction(args ...boil.Transactor) (*Transaction, error)
func (Transaction) CommitOrRollback ¶
func (t Transaction) CommitOrRollback(err error)
Click to show internal directories.
Click to hide internal directories.