Skip to main content

extract_dml_write_targets

Function extract_dml_write_targets 

Source
pub fn extract_dml_write_targets(sql: &str) -> Vec<String>
Expand description

Table names targeted by UPDATE / INSERT INTO / MERGE INTO.

This is a cheap prefilter. It does not parse SQL. UPDATE SET (no table) can yield a dummy SET token, which later parse matching ignores.