summaryrefslogtreecommitdiff
path: root/portato/db/__init__.py
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2009-01-28 13:13:56 +0100
committerRené 'Necoro' Neumann <necoro@necoro.net>2009-01-28 13:13:56 +0100
commit816fbaf42407fbbb8466c0d08d64fc11f605e5b6 (patch)
tree319eddc33bddd69ddea511a7972dcba9cc1e822c /portato/db/__init__.py
parent320f6f6270853b0209611ac6ec642994a90220b5 (diff)
downloadportato-816fbaf42407fbbb8466c0d08d64fc11f605e5b6.tar.gz
portato-816fbaf42407fbbb8466c0d08d64fc11f605e5b6.tar.bz2
portato-816fbaf42407fbbb8466c0d08d64fc11f605e5b6.zip
Use the new database class layout
Diffstat (limited to 'portato/db/__init__.py')
-rw-r--r--portato/db/__init__.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/portato/db/__init__.py b/portato/db/__init__.py
index 5787c56..122940a 100644
--- a/portato/db/__init__.py
+++ b/portato/db/__init__.py
@@ -9,3 +9,17 @@
# There is NO WARRANTY, to the extent permitted by law.
#
# Written by René 'Necoro' Neumann <necoro@necoro.net>
+
+from __future__ import absolute_import
+
+from ..constants import USE_SQL
+from ..helper import debug
+
+if USE_SQL:
+ debug("Using SQLDatabase")
+ from .sql import SQLDatabase
+ Database = SQLDatabase
+else:
+ debug("Using DictDatabase")
+ from .dict import DictDatabase
+ Database = DictDatabase