summaryrefslogtreecommitdiff
path: root/django/db/backends/__init__.py
diff options
context:
space:
mode:
authorAdrian Holovaty <adrian@holovaty.com>2007-08-20 02:20:33 +0000
committerAdrian Holovaty <adrian@holovaty.com>2007-08-20 02:20:33 +0000
commit1a8f9b2b97d2549fe28c2d9090fece3f29f029fa (patch)
tree15e79fab23561c33d7c4a2647c77e8a39b5f367b /django/db/backends/__init__.py
parent4f8225051246fb4c1560bbba77a4ead18bc22828 (diff)
Implemented BaseDatabaseFeatures and changed all code to access it -- connection.features.foo instead of backend.foo
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5974 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/db/backends/__init__.py')
-rw-r--r--django/db/backends/__init__.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/django/db/backends/__init__.py b/django/db/backends/__init__.py
index 632dd36639..2415d453ce 100644
--- a/django/db/backends/__init__.py
+++ b/django/db/backends/__init__.py
@@ -39,6 +39,16 @@ class BaseDatabaseWrapper(local):
from django.db.backends import util
return util.CursorDebugWrapper(cursor, self)
+class BaseDatabaseFeatures(object):
+ allows_group_by_ordinal = True
+ allows_unique_and_pk = True
+ autoindexes_primary_keys = True
+ needs_datetime_string_cast = True
+ needs_upper_for_iops = False
+ supports_constraints = True
+ supports_tablespaces = False
+ uses_case_insensitive_names = False
+
class BaseDatabaseOperations(object):
"""
This class encapsulates all backend-specific differences, such as the way