#29501: Add support for ./manage.py dbshell -c SQL
-------------------------------------+-------------------------------------
               Reporter:  Artem      |          Owner:  nobody
  Skoretskiy                         |
                   Type:  New        |         Status:  new
  feature                            |
              Component:  Core       |        Version:  2.0
  (Management commands)              |
               Severity:  Normal     |       Keywords:
           Triage Stage:             |      Has patch:  0
  Unreviewed                         |
    Needs documentation:  0          |    Needs tests:  0
Patch needs improvement:  0          |  Easy pickings:  0
                  UI/UX:  0          |
-------------------------------------+-------------------------------------
 At the moment you cannot run specific SQL directly with `dbshell`:

 {{{
 ./manage.py dbshell -c "select * from auth_group"
 }}}

 You have to use pipes, that are not always convenient:

 {{{
 echo "select * from auth_group" | ./manage.py dbshell
 }}}

 If we add `-c` argument, it would be in sync with `shell` command, where
 you could provide commands already.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/29501>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/050.1904cba83a5463f09ecc1536b00d3e4a%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to