Skip to main content

parse_postgres_sql_lenient

Function parse_postgres_sql_lenient 

Source
pub fn parse_postgres_sql_lenient(sql: &str) -> Vec<Statement>
Expand description

Parse sql, skipping unparseable statements instead of failing the file. Peels DO $tag$ bodies, rewrites PostgreSQL 18 GENERATED ... VIRTUAL to STORED, and strips ON DELETE SET NULL/DEFAULT column lists before parse.