PageRenderTime 27ms CodeModel.GetById 22ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 1ms

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

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