PageRenderTime 49ms CodeModel.GetById 26ms RepoModel.GetById 1ms app.codeStats 0ms

/django/contrib/gis/db/backends/spatialite/adapter.py

https://code.google.com/p/mango-py/
Python | 8 lines | 7 code | 1 blank | 0 comment | 1 complexity | b4e5fdd5e24fa85f1807d8d87b0be6f3 MD5 | raw file
Possible License(s): BSD-3-Clause
  1. from django.db.backends.sqlite3.base import Database
  2. from django.contrib.gis.db.backends.adapter import WKTAdapter
  3. class SpatiaLiteAdapter(WKTAdapter):
  4. "SQLite adaptor for geometry objects."
  5. def __conform__(self, protocol):
  6. if protocol is Database.PrepareProtocol:
  7. return str(self)