Lexers for various SQL dialects and related interactive sessions.
Postgres specific lexers:
PostgresLexer
A SQL lexer for the PostgreSQL dialect. Differences w.r.t. the SQL lexer are:
_postgres_builtins
module to update them);PlPgsqlLexer
PostgresConsoleLexer
A lexer to highlight an interactive psql session:
The tests/examplefiles contains a few test files with data to be parsed by these lexers.
Unknown Field: copyright | |
Copyright 2006-2021 by the Pygments team, see AUTHORS. | |
Unknown Field: license | |
BSD, see LICENSE for details. |
Class | MySqlLexer |
The Oracle MySQL lexer. |
Class | PlPgsqlLexer |
Handle the extra syntax in Pl/pgSQL language. |
Class | PostgresConsoleLexer |
Lexer for psql sessions. |
Class | PostgresLexer |
Lexer for the PostgreSQL dialect of SQL. |
Class | RqlLexer |
Lexer for Relation Query Language. |
Class | SqliteConsoleLexer |
Lexer for example sessions using sqlite3. |
Class | SqlLexer |
Lexer for Structured Query Language. Currently, this lexer does not recognize any special syntax except ANSI SQL. |
Class | TransactSqlLexer |
Transact-SQL (T-SQL) is Microsoft's and Sybase's proprietary extension to SQL. |
Variable | do_re |
Undocumented |
Variable | language_re |
Undocumented |
Variable | line_re |
Undocumented |
Variable | name_between_backtick_re |
Undocumented |
Variable | name_between_bracket_re |
Undocumented |
Variable | re_end_command |
Undocumented |
Variable | re_error |
Undocumented |
Variable | re_message |
Undocumented |
Variable | re_prompt |
Undocumented |
Variable | re_psql_command |
Undocumented |
Variable | sqlite_prompt_re |
Undocumented |
Variable | tsql_declare_re |
Undocumented |
Variable | tsql_go_re |
Undocumented |
Variable | tsql_variable_re |
Undocumented |
Class | lookahead |
Wrap an iterator and allow pushing back an item. |
Class | PostgresBase |
Base class for Postgres-related lexers. |
Class | PsqlRegexLexer |
Extend the PostgresLexer adding support specific for psql commands. |
Function | language_callback |
Parse the content of a $-string using a lexer |