summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2015-06-04 10:23:50 -0400
committerKali Kaneko <kali@leap.se>2015-06-15 14:24:20 -0400
commit387658fe99549e071edb05bb35a35831d46f38f6 (patch)
tree45479683b5bda85eb09d3a6dee72ce3daf9d4257 /client
parentc0c9769f56814fe570c007b7153f60faebea4881 (diff)
[feature] use raw operation, returns no result
Diffstat (limited to 'client')
-rw-r--r--client/src/leap/soledad/client/adbapi.py2
-rw-r--r--client/src/leap/soledad/client/api.py8
2 files changed, 9 insertions, 1 deletions
diff --git a/client/src/leap/soledad/client/adbapi.py b/client/src/leap/soledad/client/adbapi.py
index 4f75695f..bc0ab7a5 100644
--- a/client/src/leap/soledad/client/adbapi.py
+++ b/client/src/leap/soledad/client/adbapi.py
@@ -219,6 +219,8 @@ class U1DBConnectionPool(adbapi.ConnectionPool):
return meth(*args, **kw)
# XXX should return a fetchall?
+ # XXX add _runOperation too
+
def _runInteraction(self, interaction, *args, **kw):
"""
Interact with the database and return the result.
diff --git a/client/src/leap/soledad/client/api.py b/client/src/leap/soledad/client/api.py
index 63b1dfc0..df69037c 100644
--- a/client/src/leap/soledad/client/api.py
+++ b/client/src/leap/soledad/client/api.py
@@ -825,10 +825,16 @@ class Soledad(object):
def raw_sqlcipher_query(self, *args, **kw):
"""
- Run a raw sqlcipher query in the local database.
+ Run a raw sqlcipher query in the local database, and return the result.
"""
return self._dbpool.runQuery(*args, **kw)
+ def raw_sqlcipher_operation(self, *args, **kw):
+ """
+ Run a raw sqlcipher operation in the local database, and return None.
+ """
+ return self._dbpool.runOperation(*args, **kw)
+
def _convert_to_unicode(content):
"""