On 04/04/2011 12:05 AM, Lawrence D'Oliveiro wrote:
Which reminds me, I???m still waiting for someone to show how they can
do this
<http://groups.google.co.nz/groups?selm=ik1en0$gng$1@lust.ihug.co.nz>
better
in Java.
public void dumpToCSV(Writer out, Connection conn) throws IOException {
Statement stmt = conn.createStatement();
ResultSet res = stmt.executeQuery(query);
FormattedResulter.printCSV(res, out);
}
I'm sure somebody essentially wrote the class that does the last line
for me, which, quite frankly, is correct enough given the information
you've provided. If you cry foul, I'd like to point out that you gave
only a very vague description of what goes on in the python code, plus
you've clearly used other libraries in your own code.
Sigh. It would be perfectly fair for Lawrence to ask what the body of