diff options
| author | Kali Kaneko <kali@leap.se> | 2015-01-05 10:46:31 -0400 | 
|---|---|---|
| committer | Kali Kaneko <kali@leap.se> | 2015-02-11 14:03:18 -0400 | 
| commit | c654d5e777c0d1db75b5f3586bd20ce2ec4edadc (patch) | |
| tree | ac2c98d00b9c61298f99f93960fc49a8edf605e9 /client/src | |
| parent | 9f0e5ac8db4813b1277c3a858cf1d5cb785a4023 (diff) | |
add raw sqlcipher query method
Diffstat (limited to 'client/src')
| -rw-r--r-- | client/src/leap/soledad/client/adbapi.py | 1 | ||||
| -rw-r--r-- | client/src/leap/soledad/client/api.py | 10 | 
2 files changed, 11 insertions, 0 deletions
| diff --git a/client/src/leap/soledad/client/adbapi.py b/client/src/leap/soledad/client/adbapi.py index 9ae2889e..f0b7f182 100644 --- a/client/src/leap/soledad/client/adbapi.py +++ b/client/src/leap/soledad/client/adbapi.py @@ -106,6 +106,7 @@ class U1DBConnection(adbapi.Connection):          else:              return getattr(self._connection, name) +  class U1DBTransaction(adbapi.Transaction):      """      A wrapper for a U1DB 'cursor' object. diff --git a/client/src/leap/soledad/client/api.py b/client/src/leap/soledad/client/api.py index 81bf1fd9..88bb4969 100644 --- a/client/src/leap/soledad/client/api.py +++ b/client/src/leap/soledad/client/api.py @@ -778,6 +778,16 @@ class Soledad(object):          """          self._secrets.change_passphrase(new_passphrase) +    # +    # Raw SQLCIPHER Queries +    # + +    def raw_sqlcipher_query(self, *args, **kw): +        """ +        Run a raw sqlcipher query in the local database. +        """ +        return self._dbpool.runQuery(*args, **kw) +  def _convert_to_unicode(content):      """ | 
