[storm] Dropping all rows of a given matching field or id
akira
nhytro-python at web.de
Tue Oct 2 02:03:46 BST 2007
Hi!
How does one drop all the rows matching a given id or field value? I
tried this:
class Profile(object):
__storm_table__ = "test_delete"
id = Int(primary=True)
field1= Unicode()
field2= Unicode()
field3= Unicode()
field4= Unicode()
store = Store(database)
resultset = store.find(Profile, Profile.id == 1).remove()
but I received an error. What should be the right syntax? Thanks
More information about the storm
mailing list