Обсуждение: pgAdmin 4 commit: Added support for qtIdent, qtTypeIdent, qtLiteral for

Поиск
Список
Период
Сортировка

pgAdmin 4 commit: Added support for qtIdent, qtTypeIdent, qtLiteral for

От
Ashesh Vashi
Дата:
Added support for qtIdent, qtTypeIdent, qtLiteral for quoting the
inputs.

In order to do the proper quoting around the identifier, different type,
and literal, we introduced respective functions qtIdent, qtTypeIdent,
qtLiteral in psycopg2 driver. Also, introduced them as the Jinja's
custom filter for using it directly inside the templates.

Also, created an utility - generate_keywords.py in order to generate
keyword lists from the latest PostgreSQL installation.

Branch
------
master

Details
-------
http://git.postgresql.org/gitweb?p=pgadmin4.git;a=commitdiff;h=2aeae0688298da8a555887a3383d41e9f51170fc

Modified Files
--------------
.../browser/server_groups/servers/__init__.py      |  13 +++
web/pgadmin/utils/driver/__init__.py               |  12 ++-
web/pgadmin/utils/driver/psycopg2/__init__.py      | 118 +++++++++++++++++++++
.../utils/driver/psycopg2/generate_keywords.py     |  61 +++++++++++
web/pgadmin/utils/driver/psycopg2/keywords.py      |  15 +++
5 files changed, 216 insertions(+), 3 deletions(-)