On Feb 16, 2006, at 12:41 PM, Dimi Shahbaz wrote:
I could find nothing in the documentation regarding this. My guess is that I could support this by subclassing types.TypeDecorator, and adding pre- and post-processing of query parameters (http:// www.sqlalchemy.org/docs/types.myt#types_custom) to convert a python list to and from a string, for example. (I would probably have to use 'eval()' on the way out of the db, though.)
right, theres no DB-specific types built in as of yet, but this array type would be a good candidate for the postgres module. You might have to make a complete subclass of TypeEngine to support this though, as its really a "composite" type and requires different text in a CREATE statement, etc.
might be worthwhile to add a mixin to all PostGres types that allows an "array dimension" parameter to be added. but see how a simple subclassing goes for now.
- mike ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 _______________________________________________ Sqlalchemy-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sqlalchemy-users

