Skip site navigation (1) Skip section navigation (2)

Copy with Streams only for 8.3dev

From: "Kalle Hallivuori" <kato(at)iki(dot)fi>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: Copy with Streams only for 8.3dev
Date: 2007-06-20 21:48:56
Message-ID: c637d8bb0706201448p4ef5e4b0r7dc1f9b80599a577@mail.gmail.com (view raw or flat)
Thread:
Lists: pgsql-jdbc
Hi.

This is a minimal version of Copy support with only Streams for
passing data and just one method in QueryExecutor. Patch applies
cleanly. Tests pass. No documentation except verbose Javadoc. Please
let me know if you want something done some other way.

Usage:

((PGConnection)con).getCopyAPI().copyIntoDB("COPY tablename FROM
STDIN", System.in);
((PGConnection)con).getCopyAPI().copyFromDB("COPY tablename TO
STDOUT", System.out);

The only difference between patches for 8.3 and 8.2 is
s/ReceiveInteger4\(\)/ReceiveIntegerR(4)/.

-- 
Kalle Hallivuori +358-41-5053073 http://korpiq.iki.fi/

Attachment: pgjdbc83dev-copy-20070621.diff.gz
Description: application/x-gzip (5.1 KB)

pgsql-jdbc by date

Next:From: Nathan.KeynesDate: 2007-06-21 01:14:51
Subject: Re: Error reporting issue in SimpleParameterList
Previous:From: Scott MarloweDate: 2007-06-20 20:16:07
Subject: Re: standard LOB support

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group