Categorygithub.com/kwilteam/kwil-db/parse
modulepackage
0.3.0
Repository: https://github.com/kwilteam/kwil-db.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
Package postgres provides a CheckSyntax function wraps the parser for the PostgreSQL dialect of SQL, which will return an error if the query is not syntactically valid.

# Functions

Coalesce coalesces sets of attributes.
Flatten flattens many relations into one unnamed relation.
MergeNodes merges two Positions into a single Position.
Parse parses a Kuneiform schema.
ParseAction parses a Kuneiform action.
ParseAndValidate parses and validates an entire schema.
ParseNotice parses a log raised from a notice() function.
ParseProcedure parses a procedure.
ParseSchemaWithoutValidation parses a Kuneiform schema.
ParseSQL parses an SQL statement.
ParseSQLWithoutValidation parses a SQL AST, but does not perform any validation or analysis.
RecursivelyVisitPositions traverses a structure recursively, visiting all position struct types.
ShapesMatch checks if the shapes of two relations match.
WrapErrors wraps a collection of ParseErrors.

# Constants

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
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
Not can be either NOT or !.
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

authenticator provides information on the authenticator used to sign the transaction.
block_timestamp is the unix timestamp of the block, set by the block proposer.
caller is the session variable for the caller.
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
ErrFunctionSignature is returned when a function/procedure is called with the wrong number of arguments, or returns an unexpected number of values / table.
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
ErrResultShape is used if the result of a query is not in a shape we expect.
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
foreign_caller is the dbid of the schema that made a foreign call.
No description provided by the author
height is the session variable for the block height.
SessionVars are the session variables that are available in the engine.
signer is the session variable for the signer.
txid is the session variable for the transaction id.

# Structs

ActionParseResult is the result of parsing an action.
No description provided by the author
No description provided by the author
No description provided by the author
Attribute represents an attribute in a relation.
No description provided by the author
CommonTableExpression is a common table expression.
No description provided by the author
ExpressionArithmetic is an arithmetic expression.
ExpressionArrayAccess accesses an array value.
ExpressionBetween is a BETWEEN expression.
ExpressionCase is a CASE expression.
ExpressionCollate is an expression with a collation.
ExpressionColumn is a column in a table.
ExpressionComparison is a comparison expression.
ExpressionFieldAccess accesses a field in a record.
ExpressionForeignCall is a call to an external procedure.
ExpressionFunctionCall is a function call expression.
No description provided by the author
ExpressionIs is an IS expression.
ExpressionLiteral is a literal expression.
ExpressionLogical is a logical expression.
ExpressionMakeArray makes a new array.
ExpressionParenthesized is a parenthesized expression.
ExpressionStringComparison is a string comparison expression.
ExpressionSubquery is a subquery expression.
No description provided by the author
ExpressionVariable is a variable.
FunctionDefinition defines a function that can be used in the database.
No description provided by the author
No description provided by the author
Join is a join in a SELECT statement.
No description provided by the author
No description provided by the author
No description provided by the author
OrderingTerm is a term in an order by clause.
ParseError is an error that occurred during parsing.
Position is a Position in the parse tree.
ProcedureParseResult is the result of parsing a procedure.
ProcedureStmtAssign is a variable assignment in a procedure.
No description provided by the author
ProcedureStmtCall is a call to another procedure or built-in function.
ProcedureStmtDeclaration is a variable declaration in a procedure.
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
Relation represents a relation in a sql statement.
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
SchemaInfo contains information about a parsed schema.
SchemaParseResult is the result of parsing a schema.
No description provided by the author
SelectStatement is a SELECT statement.
SQLParseResult is the result of parsing an SQL statement.
SQLStatement is a SQL statement.
No description provided by the author
UnimplementedProcedureVisitor is meant to be used when an implementing visitor only intends to implement the ProcedureVisitor interface.
UnimplementedSqlVisitor is meant to be used when an implementing visitor only intends to implement the SQLVisitor interface.
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
Expression is an interface for all expressions.
No description provided by the author
No description provided by the author
LoopTerm what the loop is looping through.
Node is a node in the AST.
ParseErrs is a collection of parse errors.
ProcedureStmt is a statement in a procedure.
ProcedureVisitor includes visit methods only needed to analyze procedures.
No description provided by the author
SQLCore is a top-level statement.
SQLVisitor is a visitor that only has methods for SQL nodes.
No description provided by the author
Visitor is an interface for visiting nodes in the parse tree.

# Type aliases

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
FormatFunc is a function that formats a string of inputs for a SQL function.
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