Expand description
SQL lexer.
This module lexes SQL according to the rules described in the βLexical Structureβ section of the PostgreSQL documentation. The description is intentionally not replicated here. Please refer to that chapter as you read the code in this module.
Where the PostgreSQL documentation is unclear, refer to their flex source instead, located in the backend/parser/scan.l file in the PostgreSQL Git repository.
Macros§
- bail π
Structs§
Enums§
Constants§
- Maximum allowed identifier length in bytes.
Functions§
- Lexes a SQL query.
- lex_
dollar_ πstring - lex_
extended_ πstring - lex_
ident π - lex_
line_ πcomment - lex_
number π - lex_op π
- lex_
parameter π - lex_
quoted_ πident - lex_
string π
Type Aliases§
- Newtype that limits the length of identifiers.