#36391: Document RawSQL on “Performing raw SQL queries” page
-------------------------------------+-------------------------------------
Reporter: Adam Johnson | Type:
| Cleanup/optimization
Status: new | Component: Database
| layer (models, ORM)
Version: dev | Severity: Normal
Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
#25212 documented
[
https://docs.djangoproject.com/en/stable/ref/models/expressions/#django.db.models.expressions.RawSQL
the `RawSQL` expression class]. However, it didn’t add a mention to
[
https://docs.djangoproject.com/en/stable/topics/db/sql/
`topics/db/sql.txt`], “Performing raw SQL queries”, which lists the “two
ways” Django gives users to perform raw SQL queries.
`RawSQL` represents a third way, although it is only usable for subqueries
of a non-raw `QuerySet` query, so I believe it deserves a mention on that
page too.
--
Ticket URL: <
https://code.djangoproject.com/ticket/36391>
Django <
https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.