Skip to main content

destructive_sql

Function destructive_sql 

Source
pub fn destructive_sql(text: &str) -> bool
Expand description

A SQL text with a statement that drops or empties data: DROP TABLE, DROP DATABASE, TRUNCATE, DELETE FROM with no WHERE, or ALTER TABLE ... DROP. A statement is read from its start, so SELECT 'DROP TABLE x' is a select.