Skip to content

Commit ed83dba

Browse files
committed
Add wipe method to Configuration storage.
1 parent d2954ce commit ed83dba

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

bitshares/storage.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -357,6 +357,12 @@ def delete(self, key):
357357
cursor.execute(*query)
358358
connection.commit()
359359

360+
def wipe(self):
361+
""" Delete all keys from the configuration store
362+
"""
363+
query = ("DELETE FROM %s " % (self.__tablename__), ())
364+
self.sql_execute(query)
365+
360366
def __iter__(self):
361367
return iter(self.items())
362368

0 commit comments

Comments
 (0)