Wish list - Mailing list pgsql-jdbc

From Kevin Murphy
Subject Wish list
Date
Msg-id 42C295F5.7080902@genome.chop.edu
Whole thread Raw
In response to Re: OT: easiest way to create a custom PreparedStatement class  (Craig Servin <cservin@cromagnon.com>)
Responses Re: Wish list  (Oliver Jowett <oliver@opencloud.com>)
List pgsql-jdbc
In the context of my current project of writing code that can 1) access
a database directly, 2) write sql statements to a file instead of
executing them, and also, 3) write raw data for insert to flat files:

it would be nice if the JDBC driver could somehow expose the
functionality to do the quoting and escaping required in steps 2 and 3
without ever requiring a database connection.

I know it's not the driver's main line of business, but since it is able
to do these things anyway (in PreparedStatement.toString), and they are
useful but non-trivial to do properly, why not expose the functionality?

I know very little about java and JDBC, so maybe this doesn't make sense.

BTW, thanks to Craig Servin and Mark Lewis for turning me on to
java.lang.reflect.Proxy.

Kevin Murphy


pgsql-jdbc by date:

Previous
From: Dave Cramer
Date:
Subject: jdbc cts final diff for review
Next
From: Oliver Jowett
Date:
Subject: Re: jdbc cts final diff for review