Opened 4 months ago
Last modified 4 months ago
#36391 assigned Cleanup/optimization
Document RawSQL on βPerforming raw SQL queriesβ page
Reported by: | Adam Johnson | Owned by: | shin wo jin |
---|---|---|---|
Component: | Database layer (models, ORM) | Version: | dev |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Accepted | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | yes |
Easy pickings: | yes | UI/UX: | no |
Description
#25212 documented βthe `RawSQL` expression class. However, it didnβt add a mention to β`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.
Change History (6)
comment:1 by , 4 months ago
Easy pickings: | set |
---|
comment:2 by , 4 months ago
Triage Stage: | Unreviewed β Accepted |
---|
comment:3 by , 4 months ago
Has patch: | set |
---|---|
Owner: | set to |
Status: | new β assigned |
comment:4 by , 4 months ago
Has patch: | unset |
---|
comment:5 by , 4 months ago
Has patch: | set |
---|
The documentation for using RawSQL in ORM expressions has been added in PR(βhttps://github.com/django/django/pull/19475)
This should resolve the issue described in this ticket.
Thank you!
comment:6 by , 4 months ago
Patch needs improvement: | set |
---|
Hello Adam, thank you for your ticket! This makes sense, accepting.