Skip to main content

Module sql

Module sql 

Source
Expand description

SQL validation for Code Mode.

Parses SQL statements with sqlparser, classifies the statement type (SELECT/INSERT/UPDATE/DELETE/DDL), and extracts the tables, columns, and structural metadata that the Cedar policy evaluator needs.

Gated behind the sql-code-mode feature.

Structs§

SqlStatementInfo
Structural information extracted from a parsed SQL statement.
SqlValidator
SQL validator that parses and analyzes SQL statements.

Enums§

SqlStatementType
High-level category of a SQL statement.