Received: from localhost (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 5261C63326E for ; Sat, 28 Feb 2009 16:19:16 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 49609-03 for ; Sat, 28 Feb 2009 16:19:12 -0400 (AST) Received: from news.hub.org (news.hub.org [200.46.204.72]) by mail.postgresql.org (Postfix) with ESMTP id 5AE1F632BDC for ; Sat, 28 Feb 2009 16:19:12 -0400 (AST) Received: from news.hub.org (news.hub.org [200.46.204.72]) by news.hub.org (8.14.3/8.14.3) with ESMTP id n1SKJ93U082974 for ; Sat, 28 Feb 2009 16:19:09 -0400 (AST) (envelope-from news@news.hub.org) Received: (from news@localhost) by news.hub.org (8.14.3/8.14.3/Submit) id n1SKBMqE070651 for pgsql-jdbc@postgresql.org; Sat, 28 Feb 2009 16:11:22 -0400 (AST) (envelope-from news) From: "DGPickett" X-Newsgroups: pgsql.interfaces.jdbc Subject: Re: SQL scipts parser Date: Sat, 28 Feb 2009 15:11:20 -0500 Organization: NASDAQ OMX PHLX Lines: 108 Message-ID: References: <49A80173.5080104@gmail.com> <491f66a50902270722m16bcd0e4ha236878c7691b1f5@mail.gmail.com> Reply-To: "DGPickett" Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0016_01C999B6.D1F2D5E0" X-Complaints-To: usenet@news.hub.org In-Reply-To: <491f66a50902270722m16bcd0e4ha236878c7691b1f5@mail.gmail.com> X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Windows Mail 6.0.6001.18000 X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6001.18049 To: pgsql-jdbc@postgresql.org X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.001 tagged_above=0 required=5 tests=HTML_MESSAGE=0.001 X-Spam-Level: X-Archive-Number: 200902/55 X-Sequence-Number: 19330 This is a multi-part message in MIME format. ------=_NextPart_000_0016_01C999B6.D1F2D5E0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable 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.). =20 "Dave Cramer" 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 = 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 --=20 Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-jdbc ------=_NextPart_000_0016_01C999B6.D1F2D5E0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Maybe if you find an SQL style=20 normalizer/beautifier, the comments will be very easy to find.  I = should=20 look for myself, as I have a favorite style of line breaks and = indentation that=20 I manually employ, over and over (one predicate per line, one column per = line,=20 one table name per line, etc.). 
"Dave Cramer" <pg@fastcrypt.com> wrote in = message news:491f66a50902270722m16bcd0e4ha236878c7691b1f5@mail.gmail.com...<= /DIV>The=20 driver doesn't have anything like that in it. However check out antlr = for SQL=20 parsing.

Dave

On Fri, Feb 27, 2009 at 10:06 AM, Maciej = Gawinecki=20 <mgawinecki@gmail.com> = wrote:
I'm=20 looking for Java open-source SQL script reader/parser.

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

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

Best,
Maciej

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

------=_NextPart_000_0016_01C999B6.D1F2D5E0--