Re: [SQLObject] emulating 'nested tables'

2008-04-28 Thread Oleg Broytmann
On Mon, Apr 28, 2008 at 08:43:41PM +1200, David McNab wrote: > class Foo(SQLObject): > someattr = IntCol() > otherattr = StringCol() > things = MultipleJoin("Thing") > > class Thing(SQLObject): > attr1 = BoolCol() > attr2 = StringCol() > foo = ForeignKey("Foo") > > But

[SQLObject] emulating 'nested tables'

2008-04-28 Thread David McNab
Hi, I've prototyped a database using Metakit (which allows tables to have nested tables as columns), and want to migrate it over to use SQLObject. Consider: class Foo(SQLObject): someattr = IntCol() otherattr = StringCol() things = MultipleJoin("Thing") class Thing(SQLObject):