PageRenderTime 35ms CodeModel.GetById 16ms RepoModel.GetById 0ms 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
Possible License(s): BSD-3-Clause
  1. from django.db.backends.mysql.base import *
  2. from django.db.backends.mysql.base import DatabaseWrapper as MySQLDatabaseWrapper
  3. from django.contrib.gis.db.backends.mysql.creation import MySQLCreation
  4. from django.contrib.gis.db.backends.mysql.introspection import MySQLIntrospection
  5. from django.contrib.gis.db.backends.mysql.operations import MySQLOperations
  6. class DatabaseWrapper(MySQLDatabaseWrapper):
  7. def __init__(self, *args, **kwargs):
  8. super(DatabaseWrapper, self).__init__(*args, **kwargs)
  9. self.creation = MySQLCreation(self)
  10. self.ops = MySQLOperations()
  11. self.introspection = MySQLIntrospection(self)