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