Skip to main content

check_ast_identifier

Function check_ast_identifier 

Source
pub fn check_ast_identifier(ident: &Ident) -> Result<String, SqlError>
Expand description

Validate an identifier already decoded by sqlparser.

sqlparser::ast::Ident::value has SQL quote escaping decoded, so no raw token reconstruction is needed. Quoted identifiers preserve case; bare identifiers are canonicalized and checked against reserved words.