Changes between Version 20 and Version 21 of NonSqlBackends
- Timestamp:
- Aug 28, 2009, 2:51:47 AM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
NonSqlBackends
v20 v21 7 7 8 8 Specific backend specifications: AppEngine, [wiki:SimpleDB] 9 10 = Basics = 9 11 10 12 Database query operations (get, count, ... entities) are provided to Django models via managers. Managers basically wrap around QuerySet methods. Internally Django's QuerySet class uses sql.Query whose default is sql.BaseQuery. sql.Query can be overridden to use a custom Query class (the backend). So we end up writting a Query class in order to provide a specific backend. So anything done in Django's Model methods or QuerySet methods which cannot be done for a specific backend should be moved into the Query in order to allow backends to specify what to do in such cases.