Opened 4 years ago

Closed 11 months 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: marclurr
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 Changed 4 years ago by aaugustin

  • Component changed from Uncategorized to Core (Management commands)
  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Accepted

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 Changed 3 years ago by marclurr

  • Owner changed from nobody to marclurr

comment:3 Changed 3 years ago by marclurr

  • Status changed from new to assigned

comment:4 Changed 11 months ago by mardini

  • Resolution set to wontfix
  • Status changed from assigned to 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.
Back to Top