modulepackage
0.0.0-20240312185922-ffac88a740bd
Repository: https://github.com/rqlite/sql.git
Documentation: pkg.go.dev
# README
sql
This repository holds a pure Go SQL parser based on the SQLite
SQL definition. It implements nearly all features of the language except ATTACH
,
DETACH
, and some other minor features.
Credits
This parser was originally created by Ben Johnson. Many thanks to him for making it available for use by rqlite.
# Functions
CloneConstraint returns a deep copy cons.
CloneExpr returns a deep copy expr.
CloneJoinConstraint returns a deep copy cons.
CloneSource returns a deep copy src.
CloneStatement returns a deep copy stmt.
ExprString returns the string representation of expr.
ForEachSource calls fn for every source within the current scope.
IdentName returns the name of ident.
IsInteger returns true if s only contains digits.
No description provided by the author
MustParseExprString parses s into an expression.
NewParser returns a new instance of Parser that reads from r.
No description provided by the author
ParseExprString parses s into an expression.
ResolveSource returns a source with the given name.
SourceList returns a list of scopes in the current scope.
SourceName returns the name of the source.
SplitExprTree splits apart expr so it is a list of all AND joined expressions.
StatementSource returns the root statement for a statement.
Walk traverses an AST in depth-first order: It starts by calling v.Visit(node); node must not be nil.
# Constants
The list of tokens.
The list of tokens.
The list of tokens.
The list of tokens.
The list of tokens.
The list of tokens.
The list of tokens.
The list of tokens.
The list of tokens.
The list of tokens.
The list of tokens.
???.
The list of tokens.
The list of tokens.
The list of tokens.
The list of tokens.
The list of tokens.
The list of tokens.
The list of tokens.
The list of tokens.
? or ?NNN or :VVV or @VVV or $VVV.
&.
!.
|.
???.
The list of tokens.
The list of tokens.
The list of tokens.
The list of tokens.
The list of tokens.
The list of tokens.
The list of tokens.
The list of tokens.
,.
The list of tokens.
The list of tokens.
||.
The list of tokens.
The list of tokens.
The list of tokens.
The list of tokens.
The list of tokens.
The list of tokens.
The list of tokens.
The list of tokens.
The list of tokens.
The list of tokens.
The list of tokens.
The list of tokens.
The list of tokens.
The list of tokens.
The list of tokens.
The list of tokens.
The list of tokens.
The list of tokens.
.
The list of tokens.
The list of tokens.
The list of tokens.
The list of tokens.
The list of tokens.
=.
The list of tokens.
The list of tokens.
The list of tokens.
The list of tokens.
The list of tokens.
The list of tokens.
The list of tokens.
false.
The list of tokens.
The list of tokens.
123.45.
The list of tokens.
The list of tokens.
The list of tokens.
The list of tokens.
The list of tokens.
>=.
The list of tokens.
The list of tokens.
The list of tokens.
The list of tokens.
>.
The list of tokens.
No description provided by the author
IDENT.
The list of tokens.
The list of tokens.
The list of tokens.
Special tokens.
The list of tokens.
The list of tokens.
The list of tokens.
The list of tokens.
The list of tokens.
The list of tokens.
The list of tokens.
The list of tokens.
123.
The list of tokens.
The list of tokens.
The list of tokens.
The list of tokens.
TODO: REMOVE?.
The list of tokens.
->.
->>.
The list of tokens.
The list of tokens.
<=.
The list of tokens.
The list of tokens.
The list of tokens.
non-operators.
(.
<<.
<.
The list of tokens.
-.
The list of tokens.
!=.
The list of tokens.
The list of tokens.
The list of tokens.
The list of tokens.
The list of tokens.
The list of tokens.
The list of tokens.
The list of tokens.
The list of tokens.
The list of tokens.
The list of tokens.
NULL.
The list of tokens.
The list of tokens.
The list of tokens.
The list of tokens.
The list of tokens.
The list of tokens.
The list of tokens.
The list of tokens.
The list of tokens.
The list of tokens.
The list of tokens.
+.
The list of tokens.
The list of tokens.
The list of tokens.
"IDENT".
The list of tokens.
The list of tokens.
The list of tokens.
The list of tokens.
The list of tokens.
The list of tokens.
The list of tokens.
The list of tokens.
The list of tokens.
%.
The list of tokens.
The list of tokens.
The list of tokens.
The list of tokens.
The list of tokens.
The list of tokens.
The list of tokens.
The list of tokens.
).
>>.
The list of tokens.
The list of tokens.
The list of tokens.
;.
The list of tokens.
/.
The list of tokens.
The list of tokens.
*.
The list of tokens.
The list of tokens.
'string'.
The list of tokens.
The list of tokens.
The list of tokens.
The list of tokens.
The list of tokens.
The list of tokens.
The list of tokens.
true.
The list of tokens.
No description provided by the author
The list of tokens.
The list of tokens.
The list of tokens.
The list of tokens.
The list of tokens.
The list of tokens.
The list of tokens.
The list of tokens.
The list of tokens.
The list of tokens.
The list of tokens.
The list of tokens.
The list of tokens.
The list of tokens.
The list of tokens.
The list of tokens.
# Structs
No description provided by the author
No description provided by the author
Assignment is used within the UPDATE statement & upsert clause.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
CTE represents an AST node for a common table expression.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Error represents a parse error.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Parser represents a SQL parser.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Scope represents a context for name resolution.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Interfaces
No description provided by the author
No description provided by the author
No description provided by the author
JoinConstraint represents either an ON or USING join constraint.
No description provided by the author
Source represents a table or subquery.
No description provided by the author
A Visitor's Visit method is invoked for each node encountered by Walk.
# Type aliases
Token is the set of lexical tokens of the Go programming language.
VisitEndFunc represents a function type that implements Visitor.
VisitFunc represents a function type that implements Visitor.