Hi,
If I want to map a struct to 2 tables who have mostly the same info but
different format, is that feasible?
e.g
struct T {
1. id
2. name}
a_mapper = mapper(T, m1, properties={...})
b_mapper = mapper(T, m2, properties={...})
I tried to specify the b_mapper to non-primary one, but when I run the
b_mapper model, it's still contain the a_mapper mapping information.
Is there any way to do this? Or I should create 2 structs to map to 2
models.
--
SQLAlchemy -
The Python SQL Toolkit and Object Relational Mapper
http://www.sqlalchemy.org/
To post example code, please provide an MCVE: Minimal, Complete, and Verifiable
Example. See http://stackoverflow.com/help/mcve for a full description.
---
You received this message because you are subscribed to the Google Groups
"sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/d/optout.