Re: Regarding DDL in pgadmin

From: Dave Page <dpage(at)pgadmin(dot)org>
To: Travis <himesh8chopra(at)gmail(dot)com>, pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org>
Subject: Re: Regarding DDL in pgadmin
Date: 2019-03-21 10:34:59
Message-ID: CA+OCxowDGkRumAKUPGvokQi-=zrAd=DOFgnECXYE_-8XJEyTjA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers

[please keep messages on-list]

On Thu, Mar 21, 2019 at 10:16 AM Travis <himesh8chopra(at)gmail(dot)com> wrote:

> Thanks a lot!
>
> yeah rev eng sucks.
>
> I'm currently going through the source code, can you kindly point me to
> the module where the rev engineering is already being done.?
>

Most of the heavy lifting will be done in __init__.py in
https://git.postgresql.org/gitweb/?p=pgadmin4.git;a=tree;f=web/pgadmin/browser/server_groups/servers/databases/schemas/tables.
The re-construction of the SQL is done using templates in the templates
sub-directory. Start at the sql(self, gid, sid, did, scid, tid) function
and work back from there.

--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

In response to

Browse pgadmin-hackers by date

  From Date Subject
Next Message Usman Muzaffar 2019-03-21 11:14:07 [pgAdmin] - RM-3936 -Feature tests patch
Previous Message Dave Page 2019-03-21 10:27:03 Re: [pgAdmin4][Patch] - RM 4030 - IDENTITY column not recognised