2009-12-22 23:18:51 +08:00
|
|
|
from django.db.backends.mysql.base import *
|
|
|
|
from django.db.backends.mysql.base import DatabaseWrapper as MySQLDatabaseWrapper
|
|
|
|
from django.contrib.gis.db.backends.mysql.creation import MySQLCreation
|
2010-01-19 05:02:47 +08:00
|
|
|
from django.contrib.gis.db.backends.mysql.introspection import MySQLIntrospection
|
2009-12-22 23:18:51 +08:00
|
|
|
from django.contrib.gis.db.backends.mysql.operations import MySQLOperations
|
|
|
|
|
|
|
|
class DatabaseWrapper(MySQLDatabaseWrapper):
|
|
|
|
|
|
|
|
def __init__(self, *args, **kwargs):
|
|
|
|
super(DatabaseWrapper, self).__init__(*args, **kwargs)
|
|
|
|
self.creation = MySQLCreation(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)
|