pub fn is_utility_stmt(query: &str) -> Result<Vec<bool>>Expand description
Determine whether each statement in a query is a utility statement.
Utility statements are statements that are not SELECT/INSERT/UPDATE/DELETE
(e.g. SHOW, SET, CREATE TABLE, …). For a multi-statement query a
boolean is returned per statement, in order.
§Example
let result = pg_query::is_utility_stmt("SELECT 1; SHOW fsync;").unwrap();
assert_eq!(result, vec![false, true]);