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: wim@… 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 Aymeric Augustin, 13 years ago

Component: UncategorizedCore (Management commands)
Triage Stage: UnreviewedAccepted

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.

comment:2 by Mark Barrett, 13 years ago

Owner: changed from nobody to Mark Barrett

comment:3 by Mark Barrett, 13 years ago

Status: newassigned

comment:4 by mardini, 10 years ago

Resolution: wontfix
Status: assignedclosed

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.
Back to Top