class PgSqlLexer::Token
- PgSqlLexer::Token
- Reference
- Object
Overview
Defines a token encountered while parsing an SQL string. A token has the following properties:
type
- ASymbol
describing the type of the tokenvalue
- AString
containing the value of the token from the source string. Not every token type has a value.
The following token types are defined:
value
property populated
:keyword
:identifier
:operator
:string_constant
:numeric_constant
:quoted_identifier
:positional_parameter
:binary_bit_string
:hex_bit_string
:comment
(Minified whitespace and multi-line comments are collapsed)
value
property nil
:"("
:")"
:"["
:"]"
:","
:";"
:".."
:"."
:"::"
:":"