Skip to main content

Crate hawdb_sql_syntax

Crate hawdb_sql_syntax 

Source
Expand description

In-progress HawDB-owned PostgreSQL SQL/PGQ syntax frontend.

This crate owns tokens, byte spans, structured syntax errors, and syntax ASTs. Semantic binding and logical-plan lowering belong to hawdb-sql.

This frontend is not yet selected by Database::query_sql*; the existing relational execution path still uses upstream sqlparser. Syntax acceptance alone does not qualify a statement family for production execution.

The SQL/PGQ specification defines the compatibility contract. The implementation and routing checklist tracks the remaining parser/binder differential coverage, catalog durability, and shared query-pipeline qualification required before enabling production routing. Parser selection must be explicit by statement family, never a retry after another parser fails.

Structs§

CreatePropertyGraph
EdgeEndpoint
EdgeTableDefinition
ElementExposure
ElementLabelExposure
ExpressionSyntax
GraphEdgePatternSyntax
GraphElementPatternSyntax
GraphPathFactorSyntax
GraphPathSyntax
GraphPatternQuantifier
GraphPatternSyntax
GraphTable
GraphTableColumn
Identifier
LabeledExpressionSyntax
LexerConfig
LockingClauseSyntax
OrderBySyntax
PostgresFromSyntax
PostgresJoinSyntax
PostgresSelectSyntax
QualifiedName
RelationTableSyntax
Span
SyntaxError
TableAlias
Token
VertexTableDefinition

Enums§

BinaryOperatorSyntax
ElementLabel
ExpressionKindSyntax
GraphEdgeDirection
GraphPathPrimarySyntax
LiteralSyntax
LockStrengthSyntax
NullOrderSyntax
OrderDirectionSyntax
PgqStatement
PostgresFromItemSyntax
PostgresJoinKind
PostgresStatementSyntax
PropertyExposure
SyntaxErrorCode
TokenKind
UnaryOperatorSyntax

Functions§

parse_graph_table
parse_pgq_statement
parse_postgres_select
parse_postgres_statement
tokenize
tokenize_with_config