From: Craig Ringer <ringerc@ringerc.id.au>
To: Mikko Tiihonen <mikko.tiihonen@nitorcreations.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Patch: Add support for hstore extension - and map it to/from java.util.Map
Date: Mon, 21 May 2012 16:18:17 +0800
Message-ID: <4FB9FA49.4070409@ringerc.id.au> (raw)
In-Reply-To: <4FAB8796.40904@nitorcreations.com>
References: <4FAB8796.40904@nitorcreations.com>
On 05/10/2012 05:17 PM, Mikko Tiihonen wrote:
> Hi,
>
> Here is a patch to enable initial support for hstore in the jdbc driver.
>
> With the patch using ResultSet.getObject() on a hstore column and it
> returns a HashMap<String, String>
> Similarly a Statement.setObject(Map<Object,Object> will send the data
> to backend using hstore format.
That's absolutely brilliant, thankyou!
Of course, now there's a `json' type that folks will probably use much
of the time instead, not least because it should be easier to work with
from JDBC. I doubt it'll be as efficient and fast as hstore for
single-level key/value info though.
--
Craig Ringer
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: ringerc@ringerc.id.au, mikko.tiihonen@nitorcreations.com
Subject: Re: Patch: Add support for hstore extension - and map it to/from java.util.Map
In-Reply-To: <4FB9FA49.4070409@ringerc.id.au>
References: <4FAB8796.40904@nitorcreations.com> <4FB9FA49.4070409@ringerc.id.au>
* 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