Skip to main content

check_identifier

Function check_identifier 

Source
pub fn check_identifier(raw_name: &str) -> Result<String, SqlError>
Expand description

Validate a raw identifier token extracted from SQL.

Quoted tokens must use SQL doubled-quote escaping. Their decoded content preserves case and bypasses the reserved-word restriction, but all control characters and embedded quotes are rejected. Bare tokens must use NodeDB’s canonical ASCII identifier grammar.