Documentation ¶
Index ¶
- Variables
- func NewCompareExpressionMatcher(symbolMap xdb.SymbolMap, opts ...xdb.MatcherOption) xdb.ExpressionMatcher
- func NewDefaultOperator(name string, callback xdb.OperatorCallback) xdb.Operator
- func NewDefaultSqlState(ph xdb.Placeholder) xdb.SqlState
- func NewInExpressionMatcher(symbolMap xdb.SymbolMap, opts ...xdb.MatcherOption) xdb.ExpressionMatcher
- func NewLikeExpressionMatcher(symbolMap xdb.SymbolMap, opts ...xdb.MatcherOption) xdb.ExpressionMatcher
- func NewNormalExpressionMatcher(symbolMap xdb.SymbolMap, opts ...xdb.MatcherOption) xdb.ExpressionMatcher
- type DefaultOperator
- type DefaultSqlState
- func (s *DefaultSqlState) AppendExpr(propName string, value any) (phName string)
- func (s *DefaultSqlState) BuildCache(sql string) xdb.ExpressionCache
- func (s *DefaultSqlState) CanCache() bool
- func (s *DefaultSqlState) GetNames() []string
- func (s *DefaultSqlState) GetValues() []any
- func (s *DefaultSqlState) HasDynamic(val xdb.DynamicType) bool
- func (s *DefaultSqlState) Reset()
- func (s *DefaultSqlState) SetDynamic(val xdb.DynamicType)
- func (s *DefaultSqlState) UseExprCache() bool
- func (s *DefaultSqlState) WithArgs(placeholder xdb.Placeholder, tplOpts *xdb.TemplateOptions)
- func (s *DefaultSqlState) WithPlaceholder(placeholder xdb.Placeholder)
- func (s *DefaultSqlState) WithTemplateOptions(tplOpts *xdb.TemplateOptions)
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)
Click to show internal directories.
Click to hide internal directories.