Re: [SQLObject] Connection to multiple DBs (at the same time)
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: Jorge G. <jg...@gm...> - 2007-01-17 19:00:41
|
Oleg Broytmann <ph...@ph...> writes: > On Wed, Jan 17, 2007 at 12:26:54PM -0600, Rick Flosi wrote: >> What about a "deleteBy" method and "delete" method, both similar to what >> the select methods do, but they delete? >> >> Klass.deleteBy(otherKlassID = 10) >> Klass.delete(AND(IN(Klass.q.id, [1,2,3]))) > > It could be done, I think. But is it really worth having comparing to > > Delete(Klass, Klass.q.otherKlassID==10) > Delete(Klass, AND(IN(Klass.q.id, [1,2,3]))) > > ? The deleteBy approach is more intuitive and it is also more like selectBy, creating a better API, IMVHO. -- Jorge Godoy <jg...@gm...> |