Skip to main content

extract_where_body

Function extract_where_body 

Source
pub fn extract_where_body(sql: &str) -> Option<String>
Expand description

Extract the WHERE clause body (everything after the first case- insensitive WHERE token) from an UPDATE / DELETE / SELECT. Returns None if there is no WHERE clause.