pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
SQL scipts parser
3+ messages / 3 participants
[nested] [flat]

* SQL scipts parser
@ 2009-02-27 15:06 Maciej Gawinecki <mgawinecki@gmail.com>
  2009-02-27 15:22 ` Re: SQL scipts parser Dave Cramer <pg@fastcrypt.com>
  0 siblings, 1 reply; 3+ messages in thread

From: Maciej Gawinecki @ 2009-02-27 15:06 UTC (permalink / raw)
  To: pgsql-jdbc

I'm looking for Java open-source SQL script reader/parser.

That would allow me to find SQL comments about tables and columns, 
usually given in the neighbourhood of CREATE TABLE, ALTER TABLE commands.

I suppose there's something like this in JDBC for PostgreSQL. Can you 
point me the sources/classes containing such a parser?

Best,
Maciej



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: SQL scipts parser
  2009-02-27 15:06 SQL scipts parser Maciej Gawinecki <mgawinecki@gmail.com>
@ 2009-02-27 15:22 ` Dave Cramer <pg@fastcrypt.com>
  2009-02-28 20:11   ` Re: SQL scipts parser DGPickett <DGPickett@aol.com>
  0 siblings, 1 reply; 3+ messages in thread

From: Dave Cramer @ 2009-02-27 15:22 UTC (permalink / raw)
  To: Maciej Gawinecki <mgawinecki@gmail.com>; +Cc: pgsql-jdbc

The driver doesn't have anything like that in it. However check out antlr
for SQL parsing.

Dave

On Fri, Feb 27, 2009 at 10:06 AM, Maciej Gawinecki <mgawinecki@gmail.com>wrote:

> I'm looking for Java open-source SQL script reader/parser.
>
> That would allow me to find SQL comments about tables and columns, usually
> given in the neighbourhood of CREATE TABLE, ALTER TABLE commands.
>
> I suppose there's something like this in JDBC for PostgreSQL. Can you point
> me the sources/classes containing such a parser?
>
> Best,
> Maciej
>
> --
> Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-jdbc
>

^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: SQL scipts parser
  2009-02-27 15:06 SQL scipts parser Maciej Gawinecki <mgawinecki@gmail.com>
  2009-02-27 15:22 ` Re: SQL scipts parser Dave Cramer <pg@fastcrypt.com>
@ 2009-02-28 20:11   ` DGPickett <DGPickett@aol.com>
  0 siblings, 0 replies; 3+ messages in thread

From: DGPickett @ 2009-02-28 20:11 UTC (permalink / raw)
  To: pgsql-jdbc

Maybe if you find an SQL style normalizer/beautifier, the comments will be very easy to find.  I should look for myself, as I have a favorite style of line breaks and indentation that I manually employ, over and over (one predicate per line, one column per line, one table name per line, etc.).  
  "Dave Cramer" <pg@fastcrypt.com> wrote in message news:491f66a50902270722m16bcd0e4ha236878c7691b1f5@mail.gmail.com...
  The driver doesn't have anything like that in it. However check out antlr for SQL parsing.

  Dave


  On Fri, Feb 27, 2009 at 10:06 AM, Maciej Gawinecki <mgawinecki@gmail.com> wrote:

    I'm looking for Java open-source SQL script reader/parser.

    That would allow me to find SQL comments about tables and columns, usually given in the neighbourhood of CREATE TABLE, ALTER TABLE commands.

    I suppose there's something like this in JDBC for PostgreSQL. Can you point me the sources/classes containing such a parser?

    Best,
    Maciej

    -- 
    Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
    To make changes to your subscription:
    http://www.postgresql.org/mailpref/pgsql-jdbc

^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2009-02-28 20:11 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2009-02-27 15:06 SQL scipts parser Maciej Gawinecki <mgawinecki@gmail.com>
2009-02-27 15:22 ` Dave Cramer <pg@fastcrypt.com>
2009-02-28 20:11   ` DGPickett <DGPickett@aol.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox