diff options
| author | Aymeric Augustin <aymeric.augustin@m4x.org> | 2013-02-18 19:31:10 +0100 |
|---|---|---|
| committer | Aymeric Augustin <aymeric.augustin@m4x.org> | 2013-02-18 22:51:56 +0100 |
| commit | ffcfb19f47f5995406003cffca24cf62c6d234a8 (patch) | |
| tree | 957fe64c33e34bdc0160f665d6f56df38e6c3c81 | |
| parent | 21765c0a6c7cece4d052c8c7af6022ac9c61b7cf (diff) | |
Added required methods in BaseDatabaseWrapper.
I should have included this in 29628e0b6e5b1c6324e0c06cc56a49a5aa0747e0.
| -rw-r--r-- | django/db/backends/__init__.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/django/db/backends/__init__.py b/django/db/backends/__init__.py index 6e74c2b460..0f9423c1c3 100644 --- a/django/db/backends/__init__.py +++ b/django/db/backends/__init__.py @@ -53,6 +53,18 @@ class BaseDatabaseWrapper(object): __hash__ = object.__hash__ + def get_connection_params(self): + raise NotImplementedError + + def get_new_connection(self, conn_params): + raise NotImplementedError + + def init_connection_state(self): + raise NotImplementedError + + def create_cursor(self): + raise NotImplementedError + def _cursor(self): if self.connection is None: conn_params = self.get_connection_params() |
