From ffcfb19f47f5995406003cffca24cf62c6d234a8 Mon Sep 17 00:00:00 2001 From: Aymeric Augustin Date: Mon, 18 Feb 2013 19:31:10 +0100 Subject: [PATCH] Added required methods in BaseDatabaseWrapper. I should have included this in 29628e0b6e5b1c6324e0c06cc56a49a5aa0747e0. --- django/db/backends/__init__.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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()