Re: [SQLObject] More connections for more tables
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: Oleg B. <ph...@ph...> - 2010-04-14 10:11:57
|
On Tue, Apr 13, 2010 at 11:49:47PM +0200, Visgean Skeloru wrote: > Hello is it possible to set a specific connections database for each class? Yes. Every SQLObject class has a classmethod setConnection. Call it MyTable.setConnection(connection); connection can be a string or an open connection (SQLObject's DBConnection, not a Python DB API connection). Every method has a connection parameter. Oleg. -- Oleg Broytman http://phd.pp.ru/ ph...@ph... Programmers don't die, they just GOSUB without RETURN. |