Documentation
¶
Index ¶
Constants ¶
View Source
const (
TableContexts = "contexts"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DefaultExpression ¶
type Json ¶
Json clause for string match at a json path.
func (Json) NegationBuild ¶
NegationBuild builds negative statement.
type JsonEq ¶
func (JsonEq) NegationBuild ¶
type JsonLike ¶
JsonLike like for where clause.
func (JsonLike) NegationBuild ¶
NegationBuild renders the Json not-like expression.
type JsonNotLike ¶
type JsonNotLike JsonLike
JsonNotLike not like for where.
func (JsonNotLike) Build ¶
func (jnl JsonNotLike) Build(builder clause.Builder)
Build renders the Json not-like expression.
func (JsonNotLike) NegationBuild ¶
func (jnl JsonNotLike) NegationBuild(builder clause.Builder)
NegationBuild renders the Json like expression.
type QueryParser ¶
type QueryParser struct {
Default DefaultExpression
Tables map[string]string
TzOffset int
Dialector string
}
func (*QueryParser) Parse ¶
func (qp *QueryParser) Parse(q string) (ParsedQuery, error)
type Regexp ¶
Regexp whether string matches regular expression
func (Regexp) NegationBuild ¶
NegationBuild builds negative statement.
type SyntaxError ¶
type SyntaxError struct {
Statement string `json:"statement"`
Line int `json:"line"`
Offset int `json:"offset"`
EndOffset int `json:"end_offset"`
Err string `json:"error,omitempty"`
}
func (SyntaxError) Code ¶
func (s SyntaxError) Code() int
func (SyntaxError) Detail ¶
func (s SyntaxError) Detail() any
func (SyntaxError) Error ¶
func (s SyntaxError) Error() string
func (SyntaxError) Is ¶
func (s SyntaxError) Is(target error) bool
func (SyntaxError) Message ¶
func (s SyntaxError) Message() string
Click to show internal directories.
Click to hide internal directories.