Skip to main content

check_guards

Function check_guards 

Source
fn check_guards(asts: &[Statement], confirm_dangerous: bool) -> GuardResult
Expand description

护栏 1+2:sqlparser 解析后遍历 AST,检查高危语句与无 WHERE 的 UPDATE/DELETE。