Skip to main content

validate_sql_identifier

Function validate_sql_identifier 

Source
pub fn validate_sql_identifier(name: &str) -> BackupResult<()>
Expand description

Validate that a SQL identifier (table or column name) contains only safe characters: [a-zA-Z0-9_]. Prevents SQL injection when identifiers must be interpolated into queries (SQLite does not support parameterised identifiers).