summaryrefslogtreecommitdiff
path: root/backends
diff options
context:
space:
mode:
authordrebs <drebs@leap.se>2012-12-11 15:03:12 -0200
committerdrebs <drebs@leap.se>2012-12-11 15:03:12 -0200
commit435728098255a8bdc89a9191d2b774a911fa59a0 (patch)
tree9b36f3d623f1b26e46c0c004372e76ba8ba97233 /backends
parentd94469a11b3dbfd4ed73c38be50434095683c8bc (diff)
Fix SQLCipherDatabase and add tests.
Diffstat (limited to 'backends')
-rw-r--r--backends/sqlcipher.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/backends/sqlcipher.py b/backends/sqlcipher.py
index fcdab251..301d4a7f 100644
--- a/backends/sqlcipher.py
+++ b/backends/sqlcipher.py
@@ -60,7 +60,8 @@ def open(path, create, document_factory=None, password=None):
class SQLCipherDatabase(SQLitePartialExpandDatabase):
"""A U1DB implementation that uses SQLCipher as its persistence layer."""
- _sqlite_registry = {}
+ _index_storage_value = 'expand referenced encrypted'
+
@classmethod
def set_pragma_key(cls, db_handle, key):
@@ -113,7 +114,7 @@ class SQLCipherDatabase(SQLitePartialExpandDatabase):
raise
if backend_cls is None:
# default is SQLCipherPartialExpandDatabase
- backend_cls = SQLCipherPartialExpandDatabase
+ backend_cls = SQLCipherDatabase
return backend_cls(sqlite_file, document_factory=document_factory,
password=password)