diff options
author | Victor Shyba <victor1984@riseup.net> | 2017-05-01 23:35:01 -0300 |
---|---|---|
committer | Victor Shyba <victor1984@riseup.net> | 2017-05-01 23:35:01 -0300 |
commit | 03617fc9378b9f8cf6fec77bd53c573131ade75b (patch) | |
tree | 77d421b47da7ae95217d4ed8271198c52247f0ea /client/src | |
parent | aba7274ed5682335bd91d94d5b122db440872378 (diff) |
[feature] delete method on blob sqlcipher backend
- Related: #8846
Diffstat (limited to 'client/src')
-rw-r--r-- | client/src/leap/soledad/client/_database/blobs.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/client/src/leap/soledad/client/_database/blobs.py b/client/src/leap/soledad/client/_database/blobs.py index 79404bf3..4976fe4d 100644 --- a/client/src/leap/soledad/client/_database/blobs.py +++ b/client/src/leap/soledad/client/_database/blobs.py @@ -359,6 +359,10 @@ class SQLiteBlobBackend(object): result = yield self.dbpool.runQuery(query, (blob_id,)) defer.returnValue(bool(len(result))) + def delete(self, blob_id): + query = 'DELETE FROM blobs WHERE blob_id = ?' + return self.dbpool.runQuery(query, (blob_id,)) + def _init_blob_table(conn): maybe_create = ( |