pub fn detect_source_table(sql: &str) -> Option<String>Expand description
Detect whether a SQL query targets a single table and return that table name.
Returns Some(table_name) if the query is a simple single-table SELECT,
or None if the query is too complex to edit safely.