expression

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultExpressionMatchers []xdb.ExpressionMatcher
View Source
var DefaultSymbols xdb.SymbolMap

根据表达式获取

Functions

func NewCompareExpressionMatcher

func NewCompareExpressionMatcher(symbolMap xdb.SymbolMap, opts ...xdb.MatcherOption) xdb.ExpressionMatcher

func NewDefaultOperator

func NewDefaultOperator(name string, callback xdb.OperatorCallback) xdb.Operator

func NewDefaultSqlState

func NewDefaultSqlState(ph xdb.Placeholder) xdb.SqlState

func NewInExpressionMatcher

func NewInExpressionMatcher(symbolMap xdb.SymbolMap, opts ...xdb.MatcherOption) xdb.ExpressionMatcher

func NewLikeExpressionMatcher

func NewLikeExpressionMatcher(symbolMap xdb.SymbolMap, opts ...xdb.MatcherOption) xdb.ExpressionMatcher

func NewNormalExpressionMatcher

func NewNormalExpressionMatcher(symbolMap xdb.SymbolMap, opts ...xdb.MatcherOption) xdb.ExpressionMatcher

Types

type DefaultOperator

type DefaultOperator struct {
	// contains filtered or unexported fields
}

func (*DefaultOperator) Callback

func (d *DefaultOperator) Callback(valuer xdb.ExpressionValuer, param xdb.DBParam, phName string, value any) string

func (*DefaultOperator) Name

func (d *DefaultOperator) Name() string

type DefaultSqlState

type DefaultSqlState struct {
	// contains filtered or unexported fields
}

func (*DefaultSqlState) AppendExpr

func (s *DefaultSqlState) AppendExpr(propName string, value any) (phName string)

func (*DefaultSqlState) BuildCache

func (s *DefaultSqlState) BuildCache(sql string) xdb.ExpressionCache

func (*DefaultSqlState) CanCache

func (s *DefaultSqlState) CanCache() bool

func (*DefaultSqlState) GetNames

func (s *DefaultSqlState) GetNames() []string

func (*DefaultSqlState) GetValues

func (s *DefaultSqlState) GetValues() []any

func (*DefaultSqlState) HasDynamic

func (s *DefaultSqlState) HasDynamic(val xdb.DynamicType) bool

func (*DefaultSqlState) Reset

func (s *DefaultSqlState) Reset()

func (*DefaultSqlState) SetDynamic

func (s *DefaultSqlState) SetDynamic(val xdb.DynamicType)

func (*DefaultSqlState) UseExprCache

func (s *DefaultSqlState) UseExprCache() bool

func (*DefaultSqlState) WithArgs

func (s *DefaultSqlState) WithArgs(placeholder xdb.Placeholder, tplOpts *xdb.TemplateOptions)

func (*DefaultSqlState) WithPlaceholder

func (s *DefaultSqlState) WithPlaceholder(placeholder xdb.Placeholder)

func (*DefaultSqlState) WithTemplateOptions

func (s *DefaultSqlState) WithTemplateOptions(tplOpts *xdb.TemplateOptions)

Jump to

Keyboard shortcuts

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