Hi there!

I don't know if my english is good enaugh to tell you what I want.

I have 3 Tables, lets tell them A, B and C.  The relations:

An A kann have some B's and a B can have some C's.  But the main Select
will be:

and_(A.c.a_id==B.c.a_id, B.c.b_id==C.c.b_id, C.c.c_id=some_integer)

So now there are two joins.
As you see, we have two joins.  We would have only one by doing

A B C and a R table, where R has all three ID's:

R.c.a_id
R.c.b_id
R.c.c_id

A relation table...

and_(A.c.a_id==R.c.a_id, C.c.c_id==some_integer)

would be enaught.

But how can I save data this way with a mapper?

Martin


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Sqlalchemy-users mailing list
Sqlalchemy-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sqlalchemy-users

Reply via email to