2015-01-28 20:35:27 +08:00
|
|
|
from django.db.backends.mysql.base import \
|
|
|
|
DatabaseWrapper as MySQLDatabaseWrapper
|
2009-12-22 23:18:51 +08:00
|
|
|
|
2015-01-13 04:20:40 +08:00
|
|
|
from .features import DatabaseFeatures
|
|
|
|
from .introspection import MySQLIntrospection
|
|
|
|
from .operations import MySQLOperations
|
|
|
|
from .schema import MySQLGISSchemaEditor
|
2014-08-18 01:06:25 +08:00
|
|
|
|
|
|
|
|
2013-10-27 11:57:08 +08:00
|
|
|
class DatabaseWrapper(MySQLDatabaseWrapper):
|
2014-09-26 01:59:03 +08:00
|
|
|
SchemaEditorClass = MySQLGISSchemaEditor
|
|
|
|
|
2009-12-22 23:18:51 +08:00
|
|
|
def __init__(self, *args, **kwargs):
|
|
|
|
super(DatabaseWrapper, self).__init__(*args, **kwargs)
|
2014-08-18 01:06:25 +08:00
|
|
|
self.features = DatabaseFeatures(self)
|
2011-04-06 19:19:37 +08:00
|
|
|
self.ops = MySQLOperations(self)
|
2010-01-19 05:02:47 +08:00
|
|
|
self.introspection = MySQLIntrospection(self)
|