Django

Code

Ticket #2064 (closed: fixed)

Opened 2 years ago

Last modified 2 years ago

Need documentation for low-level API for writing your own SQL

Reported by: Simon Willison Assigned to: jacob
Milestone: Component: Documentation
Version: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: 0 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

Description

The Django database documentation doesn't currently describe the low-level API for writing your own SQL, using django.db.connection, cursors and so on. (It does explain the extra() clause on QuerySets? which covers 80% of cases). Documentation for this should demonstrate writing custom model methods that run their own SQL queries, thus encouraging best practises.

Attachments

Change History

06/01/06 22:58:23 changed by adrian

The model docs have it here:

http://www.djangoproject.com/documentation/model_api/#executing-custom-sql

This is a bit confusing, because the database API docs should point this out as well. I'll make the addition.

06/01/06 23:04:04 changed by adrian

  • status changed from new to closed.
  • resolution set to fixed.

(In [3054]) Fixed #2064 -- Added 'Falling back to raw SQL' section to docs/db-api.txt


Add/Change #2064 (Need documentation for low-level API for writing your own SQL)




Change Properties
Action