On Oct 30, 2006, at 7:25 AM, Sandro Dentella wrote:

>
> PostgreSQL inet type seems not to be a supported type at the  
> moment. Are
> there plans to add it in SA?
>

I dont think INET is a SQL type, so the PGInet type would be its own  
object in postgres.py, subclassing TypeEngine directly.  it would  
also need to define what kind of python object should be sent/ 
received in the convert_bind_param/convert_result_value methods  
(unless psycopg2 is doing that for us).

> I'm unsure what sould be returned by get_dbapi_type
>

None, since there is no DBAPI type for this.

> A laste question. How (if at all) can I use get_dbapi_type to know  
> the type
> of a returned data after autoloading a Table but *before* issueing  
> a query?
> (to know wich widget should handle it).

if  you are looking for the python type (which is distinct from a  
DBAPI type), we dont have that mapping set up right now (though there  
is an old ticket in trac for this).  id propose adding a  
"get_python_type" method to TypeEngine.  although if you are already  
mapping widgets to types, you could map to the TypeEngine classes  
directly as well for now....


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to sqlalchemy@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sqlalchemy
-~----------~----~----~----~------~----~------~--~---

Reply via email to