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

From: Ashesh Vashi <ashesh(dot)vashi(at)enterprisedb(dot)com>
To: pgadmin-hackers(at)postgresql(dot)org
Subject: pgAdmin 4 commit: Added support for qtIdent, qtTypeIdent, qtLiteral for
Date: 2016-01-02 09:24:22
Message-ID: E1aFIQA-0007dv-Mn@gothos.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(-)

Browse pgadmin-hackers by date

  From Date Subject
Next Message Ashesh Vashi 2016-01-02 09:25:29 pgAdmin 4 commit: Introduced an ajax response 'not_implemented' with HT
Previous Message Dmitriy Olshevskiy 2015-12-30 18:46:00 Re: patch: fix to use ``pg_get_functiondef()``