sqlboiler

package
v2.0.33 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2024 License: MPL-2.0 Imports: 14 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 IfNull added in v2.0.16

func IfNull(column string, defaultValue any, args ...string) string

func IfNullWithColumn added in v2.0.18

func IfNullWithColumn(column string, anotherColumn string, args ...string) string

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

func WithUpdateTime added in v2.0.13

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

WithUpdateTime 除了cols中的会更新以外还会更新更新时间字段

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