Skip to main content

split_sqlx_sections

Function split_sqlx_sections 

Source
pub fn split_sqlx_sections(text: &str) -> Result<Vec<SqlxSection>>
Expand description

Split SQLX into SQL sections and blocks, in order. The result always ends with a SQL section (possibly empty), and joining the texts gives back the input.