Skip to main content

Module sql

Module sql 

Source
Expand description

SQL frontend for PowDB.

This module intentionally keeps SQL as a frontend: it parses a supported SQL subset, lowers it to PowDB’s existing statement AST, and records the equivalent canonical PowQL text so plan-cache entries are shared with the native PowQL spelling.

Structs§

ParsedSql

Functions§

parse_sql
parse_sql_with_canonical
split_statements_sql
Split SQL input into statements on ;, using SQL’s own lexical rules.
sql_is_effectively_blank
True when input carries no SQL statement for the engine to run: it is empty, whitespace, or nothing but comments.