[SQLObject] Re: capability for projection and row deletion?
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: Jorge G. <go...@ie...> - 2005-11-15 11:04:33
|
Oleg Broytmann <ph...@ma...> writes: > On Tue, Nov 15, 2005 at 08:20:07AM +0900, coriolinus wrote: > > My second question has to do with row deletion: it's not clear from > > the documentation how to remove a row from the table. The only thing I > > could think of looked like this: > > > > temp = User.get(4) > > del(temp) > > > > It didn't work. What is the proper syntax? > > temp.destroySelf() An alternative that saves a select is: User.delete(4) I believe this is desirable in most cases, for saving one operation on the database. Be seeing you, -- Jorge Godoy <go...@ie...> |