sqlboiler

package
v2.0.9 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2024 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AsAliasColumn

func AsAliasColumn(alias, colName string) string

func GetDB

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

func GetLimitQueryMods

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

GetLimitQueryMods 获取Limit相关QueryMods

func GetUpdateCols

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

func IfNullZeroNumber

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

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

func IfNullZeroString

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

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

func InnerJoin

func InnerJoin(joinTable string, args ...string) *joinClause

func LeftJoin

func LeftJoin(joinTable string, args ...string) *joinClause

func NewQmBuilder

func NewQmBuilder(mods ...qm.QueryMod) *qmBuilder

func OrderBy

func OrderBy() *orderByBuilder

OrderBy OrderBy字段加入desc

func SUM

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

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)

Jump to

Keyboard shortcuts

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