glimr/db/gen/parser/normalize

SQL Normalization

Functions for normalizing SQL queries by stripping comments and collapsing whitespace ensuring valid SQL is parsed.

Values

pub fn normalize(sql: String) -> String

Normalize a SQL query by stripping comments, converting whitespace to single spaces, and trimming unneeded whitespace from the SQL code.

Search Document