Documentation
¶
Index ¶
- func AsAliasColumn(alias, colName string) string
- func GetDB(args ...boil.Executor) boil.Executor
- func GetLimitQueryMods(list *protobuf.ListParam) []qm.QueryMod
- func InnerJoin(joinTable string, args ...string) *joinClause
- func JsonValue(jsonColumn string, jsonKey string, defaultValue any) qm.QueryMod
- func JsonValueCompare(jsonColumn string, jsonKey string, operator string, compareValue any) qm.QueryMod
- func LeftJoin(joinTable string, args ...string) *joinClause
- func NewQmBuilder(mods ...qm.QueryMod) *qmBuilder
- func OrderBy() *orderByBuilder
- func WithUpdateTime(cols map[string]any, args ...string) map[string]any
- type MysqlImpl
- func (*MysqlImpl) IfNull(column string, defaultValue any, args ...string) string
- func (*MysqlImpl) IfNullWithColumn(column string, anotherColumn string, args ...string) string
- func (*MysqlImpl) JsonValue(jsonColumn string, jsonKey string, defaultValue any) qm.QueryMod
- func (*MysqlImpl) JsonValueCompare(jsonColumn string, jsonKey string, operator string, compareValue any) qm.QueryMod
- func (impl *MysqlImpl) SUM(col string, args ...string) string
- type PsqlImpl
- func (*PsqlImpl) IfNull(column string, defaultValue any, args ...string) string
- func (*PsqlImpl) IfNullWithColumn(column string, anotherColumn string, args ...string) string
- func (*PsqlImpl) JsonValue(jsonColumn string, jsonKey string, defaultValue any) qm.QueryMod
- func (*PsqlImpl) JsonValueCompare(jsonColumn string, jsonKey string, operator string, compareValue any) qm.QueryMod
- func (impl *PsqlImpl) SUM(col string, args ...string) string
- type Transaction
- type Transactor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AsAliasColumn ¶
func GetLimitQueryMods ¶
GetLimitQueryMods 获取Limit相关QueryMods
func JsonValueCompare ¶
func NewQmBuilder ¶
Types ¶
type MysqlImpl ¶ added in v0.0.3
type MysqlImpl struct { }
func (*MysqlImpl) IfNullWithColumn ¶ added in v0.0.3
func (*MysqlImpl) JsonValueCompare ¶ added in v0.0.3
type PsqlImpl ¶ added in v0.0.3
type PsqlImpl struct { }
func (*PsqlImpl) IfNullWithColumn ¶ added in v0.0.3
func (*PsqlImpl) JsonValueCompare ¶ added in v0.0.3
type Transaction ¶
type Transaction struct { Tx boil.Transactor // contains filtered or unexported fields }
func NewTransaction ¶
func NewTransaction(logger intf.LoggerProvider, args ...boil.Transactor) (*Transaction, error)
func (Transaction) CommitOrRollback ¶
func (t Transaction) CommitOrRollback(err error)
type Transactor ¶
func NewTransactor ¶
func NewTransactor(logger intf.LoggerProvider) (Transactor, error)
Click to show internal directories.
Click to hide internal directories.