pygments.lexers.sql ~~~~~~~~~~~~~~~~~~~ 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: - keywords and data types list parsed from the PG docs (run the `_postgres_builtins` module to update them); - Content of $-strings parsed using a specific lexer, e.g. the content of a PL/Python function is parsed using the Python lexer; - parse PG specific constructs: E-strings, $-strings, U&-strings, different operators and punctuation. `PlPgsqlLexer` A lexer for the PL/pgSQL language. Adds a few specific construct on top of the PG SQL lexer (such as <<label>>). `PostgresConsoleLexer` A lexer to highlight an interactive psql session: - identifies the prompt and does its best to detect the end of command in multiline statement where not all the lines are prefixed by a prompt, telling them apart from the output; - highlights errors in the output and notification levels; - handles psql backslash commands. The ``tests/examplefiles`` contains a few test files with data to be parsed by these lexers. :copyright: Copyright 2006-2022 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details.
Class | lookahead |
Wrap an iterator and allow pushing back an item. |
Class |
|
The Oracle MySQL lexer. |
Class |
|
Handle the extra syntax in Pl/pgSQL language. |
Class |
|
Base class for Postgres-related lexers. |
Class |
|
Lexer for psql sessions. |
Class |
|
Lexer for the PostgreSQL dialect of SQL. |
Class |
|
Extend the PostgresLexer adding support specific for psql commands. |
Class |
|
Lexer for Relation Query Language. |
Class |
|
Lexer for example sessions using sqlite3. |
Class |
|
Lexer for Structured Query Language. Currently, this lexer does not recognize any special syntax except ANSI SQL. |
Class |
|
Transact-SQL (T-SQL) is Microsoft's and Sybase's proprietary extension to SQL. |
Function | language |
Parse the content of a $-string using a lexer |
Variable | do |
Undocumented |
Variable | language |
Undocumented |
Variable | line |
Undocumented |
Variable | name |
Undocumented |
Variable | name |
Undocumented |
Variable | re |
Undocumented |
Variable | re |
Undocumented |
Variable | re |
Undocumented |
Variable | re |
Undocumented |
Variable | re |
Undocumented |
Variable | sqlite |
Undocumented |
Variable | tsql |
Undocumented |
Variable | tsql |
Undocumented |
Variable | tsql |
Undocumented |