pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kalle Hallivuori <kato@iki.fi>
To: pgsql-jdbc@postgresql.org
Subject: Copy with Streams only for 8.3dev
Date: Thu, 21 Jun 2007 00:48:56 +0300
Message-ID: <c637d8bb0706201448p4ef5e4b0r7dc1f9b80599a577@mail.gmail.com> (raw)

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/

Attachments:

  pgjdbc83dev-copy-20070621.diff.gz (application/x-gzip, 5.1K) download

Message-ID: <c637d8bb0706201448p4ef5e4b0r7dc1f9b80599a577@mail.gmail.com>
Permalink:  ../c637d8bb0706201448p4ef5e4b0r7dc1f9b80599a577@mail.gmail.com/
Also on:    postgresql.org/message-id/c637d8bb0706201448p4ef5e4b0r7dc1f9b80599a577@mail.gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: kato@iki.fi
  Subject: Re: Copy with Streams only for 8.3dev
  In-Reply-To: <c637d8bb0706201448p4ef5e4b0r7dc1f9b80599a577@mail.gmail.com>
  References: <c637d8bb0706201448p4ef5e4b0r7dc1f9b80599a577@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox