Hi,
I'm just starting to use SQLAlchemy and hit a roadblock.
I have a class Result which contains a tuple called _limits.
_limits = (Upper value, lower value, nominal)
I would like to map a the table's columns directly into this tuple.
>From the documentation, all I can see is columns mapping directly to
python attributes (I.e. Result.upper_value, Result.lower_value,..).
Is there a way to map the three columns directly into the tuple?
I do not want to modify the Result class and therefore cannot
create it as composite column type.
I'm hoping there is a syntax that states "map these 3 columns" into
this tuple via the mapper.
Thanks,
Raj
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"sqlalchemy" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---