Skip to main content

Module analysis

Module analysis 

Source
Expand description

SQL statement analysis utilities: table extraction, column extraction, parameter counting, and SQL normalization.

Functions§

count_params
Count the number of positional parameter placeholders in a SQL string.
extract_columns
Extract column names referenced in a statement.
extract_tables
Extract table names referenced in a statement using the SQL text.
is_read_only
Returns true if the statement is read-only (does not modify data or schema).
normalize
Normalize a SQL string for use as a cache key.