Re: Range Type Support - Mailing list psycopg

From Daniele Varrazzo
Subject Re: Range Type Support
Date
Msg-id CA+mi_8ZLjfRUicVSc_yV6GiSstpzk9ZxM-o_ne+0DnC6cFeCkA@mail.gmail.com
Whole thread Raw
In response to Range Type Support  ("Jonathan S. Katz" <jonathan.katz@excoventures.com>)
Responses Re: Range Type Support
Re: Range Type Support
List psycopg
On Tue, Sep 18, 2012 at 5:57 PM, Jonathan S. Katz
<jonathan.katz@excoventures.com> wrote:
> Hi,
>
> I am using range types in an application I am writing and am planning on writing some mapping to have support with
built-inPython ranges, and some simple extensions for dealing with date ranges.  I am going to write this on my own
regardless,but is anyone working on this for psycopg2?  If not, I would be willing to contribute the code I am working
on.

What is a "built-in Python range"? You mean some Python object to be
written with the same semantics of a postgres range? (subtype,
handling of boundaries, empty singleton).


> I was planning on writing the adapter in Python as I am unfamiliar with writing C code for Python.  Are there any
thoughtswhere such an adapter would be placed, e.g. in lib.extras 

lib.extras is the current kitchen sink and contains all the extra data
types. I'm toying with the idea of reorganizing the package submodules
but this will come later.


-- Daniele


psycopg by date:

Previous
From: "Jonathan S. Katz"
Date:
Subject: Range Type Support
Next
From: "Jonathan S. Katz"
Date:
Subject: Re: Range Type Support