Re: flexi adaption/casting scheme - Mailing list psycopg

From Tobias Oberstein
Subject Re: flexi adaption/casting scheme
Date
Msg-id 505DCA52.1050705@gmail.com
Whole thread Raw
In response to Re: flexi adaption/casting scheme  (Daniele Varrazzo <daniele.varrazzo@gmail.com>)
List psycopg
Am 22.09.2012 16:15, schrieb Daniele Varrazzo:
> On Sat, Sep 22, 2012 at 2:57 PM, Tobias Oberstein
> <tobias.oberstein@gmail.com> wrote:
>>>> My use case: have a CompositeDictCaster that spits out:
>>>>
>>>> {'record': 'public.t_station', 'x': 10, 'y': 8}
>>>>
>>>> that is injects a 'record' field containing the composite type name.
>>>> Hence I need the schema, not only the typename.
>>>
>>>
>>> Makes sense. I'll see to add a schema attribute to the CompositeCaster.
>
> Added to composite-custom branch.
>
> Would this do? https://github.com/dvarrazzo/psycopg/commit/9949e04c70386e09a4dde2371b82895b0163d9ef

Just merged: yep, that works for me!

Here is what I now have:

https://github.com/oberstet/scratchbox/blob/master/python/psycopg2/test8.py

Thanks!

Tobias



psycopg by date:

Previous
From: Daniele Varrazzo
Date:
Subject: Re: flexi adaption/casting scheme
Next
From: Tobias Oberstein
Date:
Subject: Re: flexi adaption/casting scheme