Skip to content

Commit

Permalink
Added required methods in BaseDatabaseWrapper.
Browse files Browse the repository at this point in the history
I should have included this in 29628e0.
  • Loading branch information
aaugustin committed Feb 18, 2013
1 parent 21765c0 commit ffcfb19
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions django/db/backends/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,18 @@ def __ne__(self, other):

__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()
Expand Down

0 comments on commit ffcfb19

Please sign in to comment.