let table.delete return true/false
This commit is contained in:
parent
81a26a86e2
commit
682b90cb6e
@ -181,7 +181,8 @@ class Table(object):
|
||||
stmt = self.table.delete(q)
|
||||
else:
|
||||
stmt = self.table.delete()
|
||||
self.database.executable.execute(stmt)
|
||||
rows = self.database.executable.execute(stmt)
|
||||
return rows > 0
|
||||
|
||||
def _ensure_columns(self, row, types={}):
|
||||
# Keep order of inserted columns
|
||||
|
||||
Loading…
Reference in New Issue
Block a user