Sqlite secure delete

Fixes #102
This commit is contained in:
mailchuck 2015-11-09 17:21:47 +01:00 committed by Peter Surda
parent 12878af41f
commit e9a908aa83

View File

@ -25,6 +25,8 @@ class sqlThread(threading.Thread):
self.conn = sqlite3.connect(shared.appdata + 'messages.dat') self.conn = sqlite3.connect(shared.appdata + 'messages.dat')
self.conn.text_factory = str self.conn.text_factory = str
self.cur = self.conn.cursor() self.cur = self.conn.cursor()
self.cur.execute('PRAGMA secure_delete = true')
try: try:
self.cur.execute( self.cur.execute(