Re: [SQLObject] RelatedJoins on the fly
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: Molly A. <me...@gm...> - 2007-07-13 20:07:42
|
Thanks, Oleg! I assumed that something like that existed, but I was looking in the RelatedJoin class--entirely the wrong place in this case. Molly On 7/12/07, Oleg Broytmann <ph...@ph...> wrote: > > On Thu, Jul 12, 2007 at 05:25:52PM -0700, Molly Aplet wrote: > > Optimizer.sqlmeta.addJoin > > (RelatedJoin('OptimizerTeam',joinMethodName='OptimizerTeams')) > > OptimizerTeam.sqlmeta.addJoin(RelatedJoin('Optimizer', > > joinMethodName='Optimizers')) > > You have to create an intermediate table that stores pointers between > these two tables: > > Optimizer.createJoinTables(ifNotExists=True) > > Oleg. > -- > Oleg Broytmann http://phd.pp.ru/ ph...@ph... > Programmers don't die, they just GOSUB without RETURN. > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > sqlobject-discuss mailing list > sql...@li... > https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss > |