Skip to main content

split_sql_statements

Function split_sql_statements 

Source
pub fn split_sql_statements(input: &str) -> Vec<String>
Expand description

Split SQL text into individual statements, respecting single-quoted strings, double-quoted identifiers, dollar-quoted strings, -- line comments, and /* */ block comments so semicolons inside those constructs are not treated as statement terminators.