Provides minisql sql parser facilities for this project.
Package: minisql.sql.parser
Reachable from entry: yes
minisql/sql/ast.mlasast→ src/minisql/sql/ast.mlminisql/sql/dialect.mlasdialect→ src/minisql/sql/dialect.mlminisql/sql/lexer.mlaslexer→ src/minisql/sql/lexer.mlminisql/sql/token.mlastoken→ src/minisql/sql/token.ml
function advance(state)Advances advance using the supplied inputs. Returns the computed value or operation status. May mutate supplied state as documented by the operation name.
| Parameter | Type | Default | Description |
|---|---|---|---|
state |
dynamic |
— | Mutable state inspected or updated by the operation. |
function atEnd(state)Implements at end for this module. Returns the computed value or operation status. Any side effects are limited to the explicitly invoked dependencies.
| Parameter | Type | Default | Description |
|---|---|---|---|
state |
dynamic |
— | Mutable state inspected or updated by the operation. |
function checkKeyword(state, keyword)Checks keyword using the supplied inputs. Returns the computed value or operation status. Any side effects are limited to the explicitly invoked dependencies.
| Parameter | Type | Default | Description |
|---|---|---|---|
state |
dynamic |
— | Mutable state inspected or updated by the operation. |
keyword |
dynamic |
— | keyword value consumed by this operation. |
function checkKind(state, kind)Checks kind using the supplied inputs. Returns the computed value or operation status. Any side effects are limited to the explicitly invoked dependencies.
| Parameter | Type | Default | Description |
|---|---|---|---|
state |
dynamic |
— | Mutable state inspected or updated by the operation. |
kind |
dynamic |
— | kind value consumed by this operation. |
function componentName()Performs the componentName operation for the minisql sql parser module. Returns the computed value or operation status. Any side effects are limited to the explicitly invoked dependencies.
function current(state)Implements current for this module. Returns the computed value or operation status. Any side effects are limited to the explicitly invoked dependencies.
| Parameter | Type | Default | Description |
|---|---|---|---|
state |
dynamic |
— | Mutable state inspected or updated by the operation. |
function expectKeyword(state, keyword)Implements expect keyword for this module. Returns the computed value or operation status. Any side effects are limited to the explicitly invoked dependencies.
| Parameter | Type | Default | Description |
|---|---|---|---|
state |
dynamic |
— | Mutable state inspected or updated by the operation. |
keyword |
dynamic |
— | keyword value consumed by this operation. |
function expectKind(state, kind, description)Implements expect kind for this module. Returns the computed value or operation status. Any side effects are limited to the explicitly invoked dependencies.
| Parameter | Type | Default | Description |
|---|---|---|---|
state |
dynamic |
— | Mutable state inspected or updated by the operation. |
kind |
dynamic |
— | kind value consumed by this operation. |
description |
dynamic |
— | description value consumed by this operation. |
function fail(state, message)Performs the fail operation for the minisql sql parser module. Returns its result or propagates a structured error from validation or a dependency. Any side effects are limited to the explicitly invoked dependencies.
| Parameter | Type | Default | Description |
|---|---|---|---|
state |
dynamic |
— | Mutable state inspected or updated by the operation. |
message |
dynamic |
— | Human-readable message associated with the operation. |
const INVALID_ARGUMENT = 9001Defines the invalid argument constant used by the minisql sql parser module.
function isConditionInformationItem(name)Lists condition information names accepted by SIGNAL and GET DIAGNOSTICS.
| Parameter | Type | Default | Description |
|---|---|---|---|
name |
dynamic |
— |
function isFunctionNameToken(value)Returns whether the supplied value satisfies the function name token condition. Returns the computed value or operation status. Does not modify its inputs.
| Parameter | Type | Default | Description |
|---|---|---|---|
value |
dynamic |
— | Value consumed or transformed by the operation. |
function isIdentifierToken(value)Returns whether the supplied value satisfies the identifier token condition. Returns the computed value or operation status. Does not modify its inputs.
| Parameter | Type | Default | Description |
|---|---|---|---|
value |
dynamic |
— | Value consumed or transformed by the operation. |
function isImplemented()Returns whether implemented satisfies the condition required by the minisql sql parser module. Returns the computed value or operation status. Does not modify its inputs.
function isTriggerRowQualifierToken(value)OLD and NEW are reserved pseudo-row qualifiers, not general identifiers. The parser accepts them only in the qualified form OLD.column / NEW.column. Trigger execution replaces those qualified column expressions with typed row literals before the body is bound and executed. Returns whether the supplied value satisfies the trigger row qualifier token condition. Returns the computed value or operation status. Does not modify its inputs.
| Parameter | Type | Default | Description |
|---|---|---|---|
value |
dynamic |
— | Value consumed or transformed by the operation. |
function matchKeyword(state, keyword)Implements match keyword for this module. Returns the computed value or operation status. Any side effects are limited to the explicitly invoked dependencies.
| Parameter | Type | Default | Description |
|---|---|---|---|
state |
dynamic |
— | Mutable state inspected or updated by the operation. |
keyword |
dynamic |
— | keyword value consumed by this operation. |
function matchKind(state, kind)Implements match kind for this module. Returns the computed value or operation status. Any side effects are limited to the explicitly invoked dependencies.
| Parameter | Type | Default | Description |
|---|---|---|---|
state |
dynamic |
— | Mutable state inspected or updated by the operation. |
kind |
dynamic |
— | kind value consumed by this operation. |
function nextIsKeyword(state, keyword)Implements next is keyword for this module. Returns the computed value or operation status. Any side effects are limited to the explicitly invoked dependencies.
| Parameter | Type | Default | Description |
|---|---|---|---|
state |
dynamic |
— | Mutable state inspected or updated by the operation. |
keyword |
dynamic |
— | keyword value consumed by this operation. |
function nextIsKind(state, kind)Implements next is kind for this module. Returns the computed value or operation status. Any side effects are limited to the explicitly invoked dependencies.
| Parameter | Type | Default | Description |
|---|---|---|---|
state |
dynamic |
— | Mutable state inspected or updated by the operation. |
kind |
dynamic |
— | kind value consumed by this operation. |
function operatorPrecedence(value)Maps binary operators to increasing binding strength; zero means non-operator. The table makes OR weakest and multiplicative operators strongest.
| Parameter | Type | Default | Description |
|---|---|---|---|
value |
dynamic |
— | Value consumed or transformed by the operation. |
function operatorText(value)Implements operator text for this module. Returns the computed value or operation status. Any side effects are limited to the explicitly invoked dependencies.
| Parameter | Type | Default | Description |
|---|---|---|---|
value |
dynamic |
— | Value consumed or transformed by the operation. |
function parseAlter(state)Parses alter using the supplied inputs. Returns the computed value or operation status. Any side effects are limited to the explicitly invoked dependencies.
| Parameter | Type | Default | Description |
|---|---|---|---|
state |
dynamic |
— | Mutable state inspected or updated by the operation. |
function parseAlterTable(state)Parses alter table using the supplied inputs. Returns the computed value or operation status. Any side effects are limited to the explicitly invoked dependencies.
| Parameter | Type | Default | Description |
|---|---|---|---|
state |
dynamic |
— | Mutable state inspected or updated by the operation. |
function parseAssignments(state)Parses assignments using the supplied inputs. Returns the computed value or operation status. Any side effects are limited to the explicitly invoked dependencies.
| Parameter | Type | Default | Description |
|---|---|---|---|
state |
dynamic |
— | Mutable state inspected or updated by the operation. |
function parseBegin(state)Parses begin using the supplied inputs. Returns the computed value or operation status. Any side effects are limited to the explicitly invoked dependencies.
| Parameter | Type | Default | Description |
|---|---|---|---|
state |
dynamic |
— | Mutable state inspected or updated by the operation. |
function parseCall(state)Parses CALL with positional arguments, allowing omitted parentheses for zero arguments.
| Parameter | Type | Default | Description |
|---|---|---|---|
state |
dynamic |
— | Mutable state inspected or updated by the operation. |
function parseCaseExpression(state)Parses case expression using the supplied inputs. Requires arguments that satisfy the validation performed below. Returns the computed value or operation status. Any side effects are limited to the explicitly invoked dependencies.
| Parameter | Type | Default | Description |
|---|---|---|---|
state |
dynamic |
— | Mutable state inspected or updated by the operation. |
function parseCastExpression(state)Parses cast expression using the supplied inputs. Returns the computed value or operation status. Any side effects are limited to the explicitly invoked dependencies.
| Parameter | Type | Default | Description |
|---|---|---|---|
state |
dynamic |
— | Mutable state inspected or updated by the operation. |
function parseColumnDefinition(state)Parses column definition using the supplied inputs. Returns the computed value or operation status. Any side effects are limited to the explicitly invoked dependencies.
| Parameter | Type | Default | Description |
|---|---|---|---|
state |
dynamic |
— | Mutable state inspected or updated by the operation. |
function parseCreate(state)Parses create using the supplied inputs. Returns the computed value or operation status. Any side effects are limited to the explicitly invoked dependencies.
| Parameter | Type | Default | Description |
|---|---|---|---|
state |
dynamic |
— | Mutable state inspected or updated by the operation. |
function parseCreateIndex(state, unique)Parses create index using the supplied inputs. Returns the computed value or operation status. Any side effects are limited to the explicitly invoked dependencies.
| Parameter | Type | Default | Description |
|---|---|---|---|
state |
dynamic |
— | Mutable state inspected or updated by the operation. |
unique |
dynamic |
— | unique value consumed by this operation. |
function parseCreatePrincipal(state, principalKind)Parses create principal using the supplied inputs. Returns the computed value or operation status. Any side effects are limited to the explicitly invoked dependencies.
| Parameter | Type | Default | Description |
|---|---|---|---|
state |
dynamic |
— | Mutable state inspected or updated by the operation. |
principalKind |
dynamic |
— | principalKind value consumed by this operation. |
function parseCreateProcedure(state, replace)Parses MySQL parameter directions and a compound or single SQL routine body.
| Parameter | Type | Default | Description |
|---|---|---|---|
state |
dynamic |
— | |
replace |
dynamic |
— |
function parseCreateSchema(state)Parses CREATE SCHEMA with optional idempotent creation semantics.
| Parameter | Type | Default | Description |
|---|---|---|---|
state |
dynamic |
— | Mutable state inspected or updated by the operation. |
function parseCreateSequence(state)Parses create sequence using the supplied inputs. Returns the computed value or operation status. Any side effects are limited to the explicitly invoked dependencies.
| Parameter | Type | Default | Description |
|---|---|---|---|
state |
dynamic |
— | Mutable state inspected or updated by the operation. |
function parseCreateTable(state)Parses create table using the supplied inputs. Returns the computed value or operation status. Any side effects are limited to the explicitly invoked dependencies.
| Parameter | Type | Default | Description |
|---|---|---|---|
state |
dynamic |
— | Mutable state inspected or updated by the operation. |
function parseCreateTrigger(state)Parses create trigger using the supplied inputs. Returns the computed value or operation status. Any side effects are limited to the explicitly invoked dependencies.
| Parameter | Type | Default | Description |
|---|---|---|---|
state |
dynamic |
— | Mutable state inspected or updated by the operation. |
function parseCreateView(state, replace)Parses create view using the supplied inputs. Returns the computed value or operation status. Any side effects are limited to the explicitly invoked dependencies.
| Parameter | Type | Default | Description |
|---|---|---|---|
state |
dynamic |
— | Mutable state inspected or updated by the operation. |
replace |
dynamic |
— | replace value consumed by this operation. |
function parseDeallocate(state)Parses deallocate using the supplied inputs. Returns the computed value or operation status. Any side effects are limited to the explicitly invoked dependencies.
| Parameter | Type | Default | Description |
|---|---|---|---|
state |
dynamic |
— | Mutable state inspected or updated by the operation. |
function parseDelete(state)Parses delete using the supplied inputs. Returns the computed value or operation status. Any side effects are limited to the explicitly invoked dependencies.
| Parameter | Type | Default | Description |
|---|---|---|---|
state |
dynamic |
— | Mutable state inspected or updated by the operation. |
function parseDescribe(state)Parses describe using the supplied inputs. Returns the computed value or operation status. Any side effects are limited to the explicitly invoked dependencies.
| Parameter | Type | Default | Description |
|---|---|---|---|
state |
dynamic |
— | Mutable state inspected or updated by the operation. |
function parseDiagnosticItem(state)Returns an unquoted diagnostic identifier in canonical uppercase form.
| Parameter | Type | Default | Description |
|---|---|---|---|
state |
dynamic |
— |
function parseDrop(state)Parses drop using the supplied inputs. Returns the computed value or operation status. Any side effects are limited to the explicitly invoked dependencies.
| Parameter | Type | Default | Description |
|---|---|---|---|
state |
dynamic |
— | Mutable state inspected or updated by the operation. |
function parseExecutePrepared(state)Parses execute prepared using the supplied inputs. Returns the computed value or operation status. Any side effects are limited to the explicitly invoked dependencies.
| Parameter | Type | Default | Description |
|---|---|---|---|
state |
dynamic |
— | Mutable state inspected or updated by the operation. |
function parseExpression(state, minimumPrecedence)Parses a binary expression with precedence climbing and left associativity. Unary/predicate parsing supplies the left operand; recursive calls consume only operators stronger than minimumPrecedence. Advances state or returns syntax errors.
| Parameter | Type | Default | Description |
|---|---|---|---|
state |
dynamic |
— | Mutable state inspected or updated by the operation. |
minimumPrecedence |
dynamic |
— | minimumPrecedence value consumed by this operation. |
function parseExpressionText(source)Parses expression text using the supplied inputs. Returns the computed value or operation status. Any side effects are limited to the explicitly invoked dependencies.
| Parameter | Type | Default | Description |
|---|---|---|---|
source |
dynamic |
— | source value consumed by this operation. |
function parseGrant(state)Parses grant using the supplied inputs. Returns the computed value or operation status. Any side effects are limited to the explicitly invoked dependencies.
| Parameter | Type | Default | Description |
|---|---|---|---|
state |
dynamic |
— | Mutable state inspected or updated by the operation. |
function parseIdentifier(state, description)Parses identifier using the supplied inputs. Returns the computed value or operation status. Any side effects are limited to the explicitly invoked dependencies.
| Parameter | Type | Default | Description |
|---|---|---|---|
state |
dynamic |
— | Mutable state inspected or updated by the operation. |
description |
dynamic |
— | description value consumed by this operation. |
function parseIdentifierList(state)Parses identifier list using the supplied inputs. Returns the computed value or operation status. Any side effects are limited to the explicitly invoked dependencies.
| Parameter | Type | Default | Description |
|---|---|---|---|
state |
dynamic |
— | Mutable state inspected or updated by the operation. |
function parseIdentifierName(state, description)Parses identifier name using the supplied inputs. Returns the computed value or operation status. Any side effects are limited to the explicitly invoked dependencies.
| Parameter | Type | Default | Description |
|---|---|---|---|
state |
dynamic |
— | Mutable state inspected or updated by the operation. |
description |
dynamic |
— | description value consumed by this operation. |
function parseIndexKeyList(state)Parses the parenthesized expression list used by CREATE INDEX keys.
| Parameter | Type | Default | Description |
|---|---|---|---|
state |
dynamic |
— | Mutable state inspected or updated by the operation. |
function parseInsert(state)Parses insert using the supplied inputs. Returns the computed value or operation status. Any side effects are limited to the explicitly invoked dependencies.
| Parameter | Type | Default | Description |
|---|---|---|---|
state |
dynamic |
— | Mutable state inspected or updated by the operation. |
function parseIntegerValue(state, description)Parses integer value using the supplied inputs. Requires arguments that satisfy the validation performed below. Returns the computed value or operation status. Any side effects are limited to the explicitly invoked dependencies.
| Parameter | Type | Default | Description |
|---|---|---|---|
state |
dynamic |
— | Mutable state inspected or updated by the operation. |
description |
dynamic |
— | description value consumed by this operation. |
function parseJoinClause(state)Parses join clause using the supplied inputs. Returns the computed value or operation status. Any side effects are limited to the explicitly invoked dependencies.
| Parameter | Type | Default | Description |
|---|---|---|---|
state |
dynamic |
— | Mutable state inspected or updated by the operation. |
function parseMerge(state)Parses the core SQL MERGE form with table source, matched update/delete, and insert.
| Parameter | Type | Default | Description |
|---|---|---|---|
state |
dynamic |
— | Mutable state inspected or updated by the operation. |
function parseObjectName(state, description)Parses an optionally schema-qualified SQL object name into its canonical dotted form.
| Parameter | Type | Default | Description |
|---|---|---|---|
state |
dynamic |
— | Mutable state inspected or updated by the operation. |
description |
dynamic |
— | description value consumed by this operation. |
function parseOrderItem(state)Parses order item using the supplied inputs. Returns the computed value or operation status. Any side effects are limited to the explicitly invoked dependencies.
| Parameter | Type | Default | Description |
|---|---|---|---|
state |
dynamic |
— | Mutable state inspected or updated by the operation. |
function parsePasswordLiteral(state)Parses password literal using the supplied inputs. Returns the computed value or operation status. Any side effects are limited to the explicitly invoked dependencies.
| Parameter | Type | Default | Description |
|---|---|---|---|
state |
dynamic |
— | Mutable state inspected or updated by the operation. |
function parsePredicateTail(state, expression)Parses predicate tail using the supplied inputs. Returns the computed value or operation status. Any side effects are limited to the explicitly invoked dependencies.
| Parameter | Type | Default | Description |
|---|---|---|---|
state |
dynamic |
— | Mutable state inspected or updated by the operation. |
expression |
dynamic |
— | expression value consumed by this operation. |
function parsePrepare(state)Parses prepare using the supplied inputs. Returns the computed value or operation status. May mutate supplied state as documented by the operation name.
| Parameter | Type | Default | Description |
|---|---|---|---|
state |
dynamic |
— | Mutable state inspected or updated by the operation. |
function parsePrimary(state)Parses primary using the supplied inputs. Returns the computed value or operation status. May mutate supplied state as documented by the operation name.
| Parameter | Type | Default | Description |
|---|---|---|---|
state |
dynamic |
— | Mutable state inspected or updated by the operation. |
function parsePrincipalName(state, description)Parses principal name using the supplied inputs. Returns the computed value or operation status. Any side effects are limited to the explicitly invoked dependencies.
| Parameter | Type | Default | Description |
|---|---|---|---|
state |
dynamic |
— | Mutable state inspected or updated by the operation. |
description |
dynamic |
— | description value consumed by this operation. |
function parsePrivilegeList(state)Parses privilege list using the supplied inputs. Returns the computed value or operation status. Any side effects are limited to the explicitly invoked dependencies.
| Parameter | Type | Default | Description |
|---|---|---|---|
state |
dynamic |
— | Mutable state inspected or updated by the operation. |
function parseReferentialAction(state)Parses referential action using the supplied inputs. Returns the computed value or operation status. Any side effects are limited to the explicitly invoked dependencies.
| Parameter | Type | Default | Description |
|---|---|---|---|
state |
dynamic |
— | Mutable state inspected or updated by the operation. |
function parseReturning(state)Parses returning using the supplied inputs. Returns the computed value or operation status. Any side effects are limited to the explicitly invoked dependencies.
| Parameter | Type | Default | Description |
|---|---|---|---|
state |
dynamic |
— | Mutable state inspected or updated by the operation. |
function parseRevoke(state)Parses revoke using the supplied inputs. Returns the computed value or operation status. Any side effects are limited to the explicitly invoked dependencies.
| Parameter | Type | Default | Description |
|---|---|---|---|
state |
dynamic |
— | Mutable state inspected or updated by the operation. |
function parseRevokeBehavior(state)Parses revoke behavior using the supplied inputs. Returns the computed value or operation status. Any side effects are limited to the explicitly invoked dependencies.
| Parameter | Type | Default | Description |
|---|---|---|---|
state |
dynamic |
— | Mutable state inspected or updated by the operation. |
function parseRoutineBlock(state, label)Parses a block with SQL declaration ordering and an optional label.
| Parameter | Type | Default | Description |
|---|---|---|---|
state |
dynamic |
— | |
label |
dynamic |
— |
function parseRoutineCase(state)Preserves a simple CASE selector separately so the runtime evaluates it once.
| Parameter | Type | Default | Description |
|---|---|---|---|
state |
dynamic |
— |
function parseRoutineCharacteristics(state)Parses characteristic pairs without conflating unspecified values with defaults.
| Parameter | Type | Default | Description |
|---|---|---|---|
state |
dynamic |
— |
function parseRoutineClosingLabel(state, label)Validates an optional closing label against the opening label.
| Parameter | Type | Default | Description |
|---|---|---|---|
state |
dynamic |
— | |
label |
dynamic |
— |
function parseRoutineCondition(state, handler)Parses a handler condition or a named/SQLSTATE signal condition.
| Parameter | Type | Default | Description |
|---|---|---|---|
state |
dynamic |
— | |
handler |
dynamic |
— |
function parseRoutineDeclare(state)Parses a declaration; ordering is checked by its enclosing BEGIN block.
| Parameter | Type | Default | Description |
|---|---|---|---|
state |
dynamic |
— |
function parseRoutineDefiner(state)Parses an account name, preserving host qualification without inventing users.
| Parameter | Type | Default | Description |
|---|---|---|---|
state |
dynamic |
— |
function parseRoutineDiagnostics(state)Parses statement or condition diagnostics into ordered target/item pairs.
| Parameter | Type | Default | Description |
|---|---|---|---|
state |
dynamic |
— |
function parseRoutineIf(state)Parses IF and all ELSEIF/ELSE branches into parallel branch arrays.
| Parameter | Type | Default | Description |
|---|---|---|---|
state |
dynamic |
— |
function parseRoutineLoop(state, kind, label)Parses a labeled WHILE, REPEAT, or LOOP and matching end marker.
| Parameter | Type | Default | Description |
|---|---|---|---|
state |
dynamic |
— | |
kind |
dynamic |
— | |
label |
dynamic |
— |
function parseRoutineSet(state)Parses SET's left-to-right assignments, preserving local/session destinations.
| Parameter | Type | Default | Description |
|---|---|---|---|
state |
dynamic |
— |
function parseRoutineSignal(state, kind)Parses SIGNAL/RESIGNAL with optional condition-information assignments.
| Parameter | Type | Default | Description |
|---|---|---|---|
state |
dynamic |
— | |
kind |
dynamic |
— |
function parseRoutineStatement(state)Parses one stored-program statement, leaving its terminator to its container.
| Parameter | Type | Default | Description |
|---|---|---|---|
state |
dynamic |
— |
function parseRoutineStatements(state)Parses statements up to a branch/loop terminator, consuming inner semicolons.
| Parameter | Type | Default | Description |
|---|---|---|---|
state |
dynamic |
— |
function parseRoutineTarget(state)Returns a canonical variable target, keeping session-variable @ prefixes.
| Parameter | Type | Default | Description |
|---|---|---|---|
state |
dynamic |
— |
function parseRoutineTargets(state)Parses a nonempty comma-separated list of writable variable names.
| Parameter | Type | Default | Description |
|---|---|---|---|
state |
dynamic |
— |
function parseRoutineTypeName(state)Retains explicit character attributes on routine declarations for validation against the stored routine context; ordinary column/CAST grammar stays intact.
| Parameter | Type | Default | Description |
|---|---|---|---|
state |
dynamic |
— |
- minisql.sql.parser.ParserState — struct
function parseSelect(state)Parses select using the supplied inputs. Returns the computed value or operation status. May mutate supplied state as documented by the operation name.
| Parameter | Type | Default | Description |
|---|---|---|---|
state |
dynamic |
— | Mutable state inspected or updated by the operation. |
function parseSelectCore(state)Parses select core using the supplied inputs. Returns the computed value or operation status. Any side effects are limited to the explicitly invoked dependencies.
| Parameter | Type | Default | Description |
|---|---|---|---|
state |
dynamic |
— | Mutable state inspected or updated by the operation. |
function parseSelectCoreTargets(state, allowInto)Parses the SELECT core and optional procedure INTO destinations.
| Parameter | Type | Default | Description |
|---|---|---|---|
state |
dynamic |
— | |
allowInto |
dynamic |
— |
function parseSelectItem(state)Parses select item using the supplied inputs. Returns the computed value or operation status. Any side effects are limited to the explicitly invoked dependencies.
| Parameter | Type | Default | Description |
|---|---|---|---|
state |
dynamic |
— | Mutable state inspected or updated by the operation. |
function parseSelectLimit(state, description)Retains variable/parameter LIMIT operands for session-aware execution binding.
| Parameter | Type | Default | Description |
|---|---|---|---|
state |
dynamic |
— | |
description |
dynamic |
— |
function parseSelectTargets(state, allowInto)Parses a complete SELECT, retaining early or final INTO destinations.
| Parameter | Type | Default | Description |
|---|---|---|---|
state |
dynamic |
— | |
allowInto |
dynamic |
— |
function parseSelectTargetStatement(state, withClause)Wraps only SELECTs with INTO, leaving ordinary SELECT AST contracts intact.
| Parameter | Type | Default | Description |
|---|---|---|---|
state |
dynamic |
— | |
withClause |
dynamic |
— |
function parseShow(state)Parses show using the supplied inputs. Returns the computed value or operation status. Any side effects are limited to the explicitly invoked dependencies.
| Parameter | Type | Default | Description |
|---|---|---|---|
state |
dynamic |
— | Mutable state inspected or updated by the operation. |
function parseSql(source)Parses SQL using the supplied inputs. Returns the computed value or operation status. Any side effects are limited to the explicitly invoked dependencies.
| Parameter | Type | Default | Description |
|---|---|---|---|
source |
dynamic |
— | source value consumed by this operation. |
function parseSqlstate(state)Validates a SQLSTATE and retains its canonical five-character value.
| Parameter | Type | Default | Description |
|---|---|---|---|
state |
dynamic |
— |
function parseStatement(state)Parses statement using the supplied inputs. Returns the computed value or operation status. Any side effects are limited to the explicitly invoked dependencies.
| Parameter | Type | Default | Description |
|---|---|---|---|
state |
dynamic |
— | Mutable state inspected or updated by the operation. |
function parseTableAlias(state)Parses table alias using the supplied inputs. Returns the computed value or operation status. Any side effects are limited to the explicitly invoked dependencies.
| Parameter | Type | Default | Description |
|---|---|---|---|
state |
dynamic |
— | Mutable state inspected or updated by the operation. |
function parseTableConstraint(state)Parses table constraint using the supplied inputs. Returns the computed value or operation status. Any side effects are limited to the explicitly invoked dependencies.
| Parameter | Type | Default | Description |
|---|---|---|---|
state |
dynamic |
— | Mutable state inspected or updated by the operation. |
function parseTableSource(state, description)Parses either a catalog/CTE name or a parenthesized SELECT source. Derived tables are represented as private CTEs so the existing named-query binder and executor retain one source abstraction; only the user alias is visible.
| Parameter | Type | Default | Description |
|---|---|---|---|
state |
dynamic |
— | Mutable state inspected or updated by the operation. |
description |
dynamic |
— | description value consumed by this operation. |
function parseTokens(tokens)Parses a complete token stream into ordered statement AST nodes. Empty statements between semicolons are ignored; any other trailing token is a syntax error. The input must be a non-empty array ending in EndOfInput.
| Parameter | Type | Default | Description |
|---|---|---|---|
tokens |
dynamic |
— | tokens value consumed by this operation. |
function parseTruncate(state)Parses truncate using the supplied inputs. Returns the computed value or operation status. Any side effects are limited to the explicitly invoked dependencies.
| Parameter | Type | Default | Description |
|---|---|---|---|
state |
dynamic |
— | Mutable state inspected or updated by the operation. |
function parseTypeName(state)Parses type name using the supplied inputs. Returns the computed value or operation status. Any side effects are limited to the explicitly invoked dependencies.
| Parameter | Type | Default | Description |
|---|---|---|---|
state |
dynamic |
— | Mutable state inspected or updated by the operation. |
function parseUnary(state)Parses unary using the supplied inputs. Returns the computed value or operation status. Any side effects are limited to the explicitly invoked dependencies.
| Parameter | Type | Default | Description |
|---|---|---|---|
state |
dynamic |
— | Mutable state inspected or updated by the operation. |
function parseUpdate(state)Parses update using the supplied inputs. Returns the computed value or operation status. Any side effects are limited to the explicitly invoked dependencies.
| Parameter | Type | Default | Description |
|---|---|---|---|
state |
dynamic |
— | Mutable state inspected or updated by the operation. |
function parseWithSelect(state)Parses with select using the supplied inputs. Returns the computed value or operation status. May mutate supplied state as documented by the operation name.
| Parameter | Type | Default | Description |
|---|---|---|---|
state |
dynamic |
— | Mutable state inspected or updated by the operation. |
function parseWithSelectTargets(state, allowInto)Retains INTO targets on the outer SELECT while CTE bodies remain queries.
| Parameter | Type | Default | Description |
|---|---|---|---|
state |
dynamic |
— | |
allowInto |
dynamic |
— |
function preparableStatement(statement)Implements preparable statement for this module. Returns the computed value or operation status. Any side effects are limited to the explicitly invoked dependencies.
| Parameter | Type | Default | Description |
|---|---|---|---|
statement |
dynamic |
— | statement value consumed by this operation. |
function previous(state)Implements previous for this module. Returns the computed value or operation status. Any side effects are limited to the explicitly invoked dependencies.
| Parameter | Type | Default | Description |
|---|---|---|---|
state |
dynamic |
— | Mutable state inspected or updated by the operation. |
function privilegeName(state)Implements privilege name for this module. Returns the computed value or operation status. Any side effects are limited to the explicitly invoked dependencies.
| Parameter | Type | Default | Description |
|---|---|---|---|
state |
dynamic |
— | Mutable state inspected or updated by the operation. |
function routineNode(kind, name)Builds a procedural AST node with empty optional collections.
| Parameter | Type | Default | Description |
|---|---|---|---|
kind |
dynamic |
— | |
name |
dynamic |
— |
const SQL_SYNTAX = 9019Defines the sql syntax constant used by the minisql sql parser module.
function startsJoin(state)Implements starts join for this module. Returns the computed value or operation status. Any side effects are limited to the explicitly invoked dependencies.
| Parameter | Type | Default | Description |
|---|---|---|---|
state |
dynamic |
— | Mutable state inspected or updated by the operation. |
function startsTableConstraint(state)Implements starts table constraint for this module. Returns the computed value or operation status. Any side effects are limited to the explicitly invoked dependencies.
| Parameter | Type | Default | Description |
|---|---|---|---|
state |
dynamic |
— | Mutable state inspected or updated by the operation. |
function targetMilestone()Performs the targetMilestone operation for the minisql sql parser module. Returns the computed value or operation status. Any side effects are limited to the explicitly invoked dependencies.