pgAdmin 4 commit: Added support for qtIdent, qtTypeIdent, qtLiteral for - Mailing list pgadmin-hackers

From Ashesh Vashi
Subject pgAdmin 4 commit: Added support for qtIdent, qtTypeIdent, qtLiteral for
Date
Msg-id E1aFIQA-0007dv-Mn@gothos.postgresql.org
Whole thread Raw
List pgadmin-hackers
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(-)


pgadmin-hackers by date:

Previous
From: Dmitriy Olshevskiy
Date:
Subject: Re: patch: fix to use ``pg_get_functiondef()``
Next
From: Ashesh Vashi
Date:
Subject: pgAdmin 4 commit: Introduced an ajax response 'not_implemented' with HT