Skip to main content

validate_sql_ident

Function validate_sql_ident 

Source
pub fn validate_sql_ident(ident: &str) -> Result<(), CatalogError>
Expand description

Returns whether ident is safe for double-quoted SQL identifiers.

§Errors

Returns CatalogError::InvalidSqlIdent when the identifier is empty, starts with an unsafe character, or contains non-identifier characters.

§Performance

This function is O(i) where i is identifier length.