Received: from localhost (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id B090A63311E for ; Fri, 27 Feb 2009 11:23:02 -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 08732-08 for ; Fri, 27 Feb 2009 11:22:57 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from qw-out-2122.google.com (qw-out-2122.google.com [74.125.92.27]) by mail.postgresql.org (Postfix) with ESMTP id D689F63303E for ; Fri, 27 Feb 2009 11:22:56 -0400 (AST) Received: by qw-out-2122.google.com with SMTP id 5so1032944qwd.61 for ; Fri, 27 Feb 2009 07:22:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to:cc :content-type; bh=UwIDlfhWNz4jtB36EdvDJtMj8rIVzCnjVYJt+WTMD14=; b=aD6f7q9lxNVyHpVAQtFzUrhsafbBqO8xHh2BWY/15toYLipBCo1L2se/5AqDYjMuC2 piKS+Z6QsEc2E60AQRf3oDJwVFXVmz4zD14+4nbdxDqIR3TW/HujTmRFLNlnLigGuIMN USqcHk8fezyioSmOjSQsxp9cIAAUj21qdzRyA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; b=hTHxGB0UBP2GQXEhW668UYzVX8lAdJ3dWwHNWYwjHrAR2xfEqPexeFcNzia9g6hCx4 ZnTDZCWPV9VYuETlFg2sXOKnETPK2FcqAhNmEJONMz4sxWnJZJHzJZlLc4Ptb7Gq+gmI n6NeHS5F/iZg53BYI6XN8j3VoTge5JjGhT7qw= MIME-Version: 1.0 Received: by 10.229.85.4 with SMTP id m4mr1976299qcl.55.1235748169980; Fri, 27 Feb 2009 07:22:49 -0800 (PST) In-Reply-To: <49A80173.5080104@gmail.com> References: <49A80173.5080104@gmail.com> Date: Fri, 27 Feb 2009 10:22:49 -0500 X-Google-Sender-Auth: 69a2f640db9b9b41 Message-ID: <491f66a50902270722m16bcd0e4ha236878c7691b1f5@mail.gmail.com> Subject: Re: SQL scipts parser From: Dave Cramer To: Maciej Gawinecki Cc: pgsql-jdbc@postgresql.org Content-Type: multipart/alternative; boundary=001636aa2c4cb420b70463e80a8f 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/53 X-Sequence-Number: 19328 --001636aa2c4cb420b70463e80a8f Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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 > > -- > Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org) > To make changes to your subscription: > http://www.postgresql.org/mailpref/pgsql-jdbc > --001636aa2c4cb420b70463e80a8f Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable The driver doesn't have anything like that in it. However check out ant= lr for SQL parsing.

Dave

On Fri, F= eb 27, 2009 at 10:06 AM, Maciej Gawinecki <mgawinecki@gmail.com> wrote:
I'm looking f= or 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 p= oint 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

--001636aa2c4cb420b70463e80a8f--