[sqlalchemy] minor documentation issue dialects/oracle.html#synonym-dblink-reflection

2012-04-05 Thread dgardner
Currently the docs for Synonym/DBLINK Reflection read: When using reflection with Table objects, the dialect can optionally search for tables indicated by synonyms that reference DBLINK-ed tables by passing the flag oracle_resolve_synonyms=True as a keyword argument to the Table construct. If

[sqlalchemy] money type for Postgresql

2011-12-27 Thread dgardner
Quick hack, figured I would share since there seemed to be other people asking about it. I couldn't get it to work with autoload=True for table reflection. --- from sqlalchemy import types from decimal import Decimal class Money(types.UserDefinedType): def get_col_spec(self):

[sqlalchemy] Re: money type for Postgresql

2011-12-27 Thread dgardner
While there may be legitimate reasons to choose the numeric type instead of the money type. This might not always be an option for people, especially when working with existing database. If a type is supported by a database back end there is no reason why it couldn't and shouldn't be supported by