hdboil

package
v1.0.80 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2023 License: MPL-2.0 Imports: 9 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 GetDB added in v1.0.79

func GetDB(args ...boil.Executor) boil.Executor

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 InnerJoin added in v1.0.80

func InnerJoin(thisTable, thisTableColumn, thatTableColumn string, args ...any) qm.QueryMod

func InnerJoinAlias added in v1.0.80

func InnerJoinAlias(thisTable, asTable, thisColumn, thatTableColumn string, args ...any) qm.QueryMod

func InnerJoinAnd added in v1.0.80

func InnerJoinAnd(thisTable, thisTableColumn, thatTableColumn, andClauses []string, args ...any) qm.QueryMod

InnerJoinAnd inner join a on a.x=b.x AND a.y=b.y

func JoinQueryMods

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

JoinQueryMods 连接QueryMods

func LeftJoin added in v1.0.80

func LeftJoin(thisTable, thisTableColumn, thatTableColumn string, args ...any) qm.QueryMod

func LeftJoinAlias added in v1.0.80

func LeftJoinAlias(thisTable, asTable, thisColumn, thatTableColumn string, args ...any) qm.QueryMod

func LeftJoinAnd added in v1.0.80

func LeftJoinAnd(thisTable, thisTableColumn, thatTableColumn, andClauses []string, args ...any) qm.QueryMod

func SUM added in v1.0.80

func SUM(col string, args ...string) string

Types

type Transaction added in v1.0.77

type Transaction struct {
	Tx boil.Transactor
	// contains filtered or unexported fields
}

func NewTransaction added in v1.0.77

func NewTransaction(args ...boil.Transactor) (*Transaction, error)

func (Transaction) CommitOrRollback added in v1.0.77

func (t Transaction) CommitOrRollback(err error)

Jump to

Keyboard shortcuts

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