Re: Patch: Add support for hstore extension - and map it to/from java.util.Map

From: Shijun Kong <skong(at)investoranalytics(dot)com>
To: Craig Ringer <ringerc(at)ringerc(dot)id(dot)au>, Mikko Tiihonen <mikko(dot)tiihonen(at)nitorcreations(dot)com>
Cc: "pgsql-jdbc(at)postgresql(dot)org" <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: Patch: Add support for hstore extension - and map it to/from java.util.Map
Date: 2012-06-01 20:55:01
Message-ID: CBEEA3D1.AA4D%skong@investoranalytics.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Is it path for 9.1 or 9.2?

-Shijun

On 5/21/12 4:18 AM, "Craig Ringer" <ringerc(at)ringerc(dot)id(dot)au> wrote:

>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
>
>--
>Sent via pgsql-jdbc mailing list (pgsql-jdbc(at)postgresql(dot)org)
>To make changes to your subscription:
>http://www.postgresql.org/mailpref/pgsql-jdbc

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Dave Cramer 2012-06-01 21:12:36 Re: JDBC website help !
Previous Message Dave Cramer 2012-06-01 20:36:40 Re: JDBC website help !