Rindle docs and package mapSkip to main content

split_sql_script_allow_empty

Function split_sql_script_allow_empty 

pub fn split_sql_script_allow_empty(
    sql: &str,
) -> Result<Vec<String>, StatementRunError>
Expand description

The migration-file variant of split_sql_script. It uses the same quote/comment/trigger aware scanner but permits a comment-only carrier slot so a whole file can be flattened without inventing a second SQL lexer.