Skip to main content

validate_readonly_query

Function validate_readonly_query 

Source
pub fn validate_readonly_query(sql: &str) -> Result<()>
Expand description

Require exactly one read-only SELECT statement (CTEs, subqueries, set operations and pipe syntax allowed) of at most MAX_READONLY_QUERY_CHARS characters. Comments, and semicolons after the statement, are fine.