Skip to main content

extract_ident_text

Function extract_ident_text 

Source
fn extract_ident_text(token: &PosToken) -> Option<String>
Expand description

Extract identifier text from a token.

Returns the identifier string for Token::Ident, and the keyword string for Token::Keyword (since SQL keywords can be used as identifiers in dot-qualified names like mydb.schema.t). Returns None for all other token types.