risingwave_sqlparser

Module tokenizer

source
Expand description

SQL Tokenizer

The tokenizer (a.k.a. lexer) converts a string into a sequence of tokens.

The tokens then form the input for the parser, which outputs an Abstract Syntax Tree (AST).

Structs§

Enums§

Functions§

  • Determine if a character starts a quoted identifier. The default implementation, accepting “double quoted” ids is both ANSI-compliant and appropriate for most dialects (with the notable exception of MySQL, MS SQL, and sqlite). You can accept one of characters listed in Word::matching_end_quote here
  • Determine if a character is a valid unquoted identifier character
  • Determine if a character is a valid start character for an unquoted identifier