Skip to main content

Module query

Module query 

Source
Expand description

Query analysis and bounded dialect preparation.

Dactyl uses a total lexical scanner rather than pretending to be a full SQL parser. It rejects constructs that cannot be translated safely and applies only explicit, semantics-bounded rewrites when the caller enables them.

Structs§

Analyzed
Outcome of analyzing a query without selecting an adapter.
QueryAnalyzer
The analyzer. Cheap to construct; carries no state.

Enums§

Construct
A single dialect-specific construct the analyzer found in a query.
Dialect
SQL dialect an adapter speaks natively.
Rewrite
A no-op or directive-stripping rewrite plan.

Functions§

dialect_of
Map a datastore name to its native dialect.
first_unsupported
Decide whether the construct list is portable enough for the active dialect.