diff options
author | René 'Necoro' Neumann <necoro@necoro.net> | 2009-01-28 13:13:56 +0100 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.net> | 2009-01-28 13:13:56 +0100 |
commit | 816fbaf42407fbbb8466c0d08d64fc11f605e5b6 (patch) | |
tree | 319eddc33bddd69ddea511a7972dcba9cc1e822c /portato/db/__init__.py | |
parent | 320f6f6270853b0209611ac6ec642994a90220b5 (diff) | |
download | portato-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__.py | 14 |
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 |