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

Custom array types converter

From: Ronan Dunklau <ronan(dot)dunklau(at)kozea(dot)fr>
To: psycopg(at)postgresql(dot)org
Subject: Custom array types converter
Date: 2011-07-01 13:05:44
Message-ID: (view raw, whole thread or download thread mbox)
Lists: psycopg

I'd like to register a type converter for _record (array of records).

What is the "recommended" way to implement such a type ? 

I've seen that a "GENERIC_ARRAY" type caster is available in the c library, 
but I don't know how to access it from python.

(disclaimer : I am a newbie in both psycopg2, and using native (C) code in 


Ronan Dunklau


psycopg by date

Next:From: Daniele VarrazzoDate: 2011-07-01 15:17:58
Subject: Re: Custom array types converter
Previous:From: Federico Di GregorioDate: 2011-06-28 15:32:00
Subject: Re: lazy import for uuid module

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