Opened 13 years ago
Closed 10 years ago
#16665 closed New feature (wontfix)
Make sql clui commands consistent with dumpdata by allowing manage.py sql appname.Model
Reported by: | Owned by: | Mark Barrett | |
---|---|---|---|
Component: | Core (Management commands) | Version: | 1.3 |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Accepted | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
At the moment, dumpdata can dump data from apps or app.Models.
usage of dumpdata is:
./manage.py dumpdata <appname appname appname.Model ...>
My request is to make sql and sqlall and such commands use the same clui.
Now
./manage.py sql <appname>
works,
./manage.py sql <appname appname appname.Model>
does not.
Change History (4)
comment:1 by , 13 years ago
Component: | Uncategorized → Core (Management commands) |
---|---|
Triage Stage: | Unreviewed → Accepted |
comment:2 by , 13 years ago
Owner: | changed from | to
---|
comment:3 by , 13 years ago
Status: | new → assigned |
---|
comment:4 by , 10 years ago
Resolution: | → wontfix |
---|---|
Status: | assigned → closed |
I'm closing this since sql commands will be deprecated according to Andrew, so working on new features won't be useful: https://code.djangoproject.com/ticket/22611#comment:6
Note:
See TracTickets
for help on using tickets.
Why not. Given the current implementation, implementing this requires some refactoring.
This is a low priority item, you should write the patch if you want to see this implemented in Django.