PageRenderTime 90ms CodeModel.GetById 85ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/django/contrib/gis/db/backends/mysql/base.py

https://code.google.com/p/mango-py/
Python | 13 lines | 11 code | 2 blank | 0 comment | 0 complexity | f8ea963974a884eeecaa020ab147d18c MD5 | raw file
 1from django.db.backends.mysql.base import *
 2from django.db.backends.mysql.base import DatabaseWrapper as MySQLDatabaseWrapper
 3from django.contrib.gis.db.backends.mysql.creation import MySQLCreation
 4from django.contrib.gis.db.backends.mysql.introspection import MySQLIntrospection
 5from django.contrib.gis.db.backends.mysql.operations import MySQLOperations
 6
 7class DatabaseWrapper(MySQLDatabaseWrapper):
 8
 9    def __init__(self, *args, **kwargs):
10        super(DatabaseWrapper, self).__init__(*args, **kwargs)
11        self.creation = MySQLCreation(self)
12        self.ops = MySQLOperations()
13        self.introspection = MySQLIntrospection(self)