mirror of
https://github.com/django/django.git
synced 2025-06-05 11:39:13 +00:00
Added required methods in BaseDatabaseWrapper.
I should have included this in 29628e0b6e5b1c6324e0c06cc56a49a5aa0747e0.
This commit is contained in:
parent
21765c0a6c
commit
ffcfb19f47
@ -53,6 +53,18 @@ class BaseDatabaseWrapper(object):
|
|||||||
|
|
||||||
__hash__ = object.__hash__
|
__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):
|
def _cursor(self):
|
||||||
if self.connection is None:
|
if self.connection is None:
|
||||||
conn_params = self.get_connection_params()
|
conn_params = self.get_connection_params()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user