Paul Hummer <[EMAIL PROTECTED]> writes: > > I have a need to basically clear out all the records from a table. I could > probably use store.execute, but the reason I'm using an ORM in the first place > is to avoid writing SQL. So I have the following code: > > result = self._store.find(FooBarBaz) > self._store.rollback() > > for foo in result: > self._store.remove(foo) > self._store.commit() >
Try: self._store.find(FooBarBaz).remove() self._store.commit() Bozzo -- storm mailing list [email protected] Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/storm
