Skip to main content

detect_statements

Function detect_statements 

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

Split a SQL string into individual statements, respecting quoted strings and comments.

Semicolons inside single-quoted strings, double-quoted identifiers, line comments (--), and block comments (/* */) are not treated as statement separators.