#35429: Add argparse choices to --database options
-------------------------------------+-------------------------------------
Reporter: Adam Johnson | Owner: Jae Hyuck
Type: | Sa
Cleanup/optimization | Status: assigned
Component: Core (Management | Version: dev
commands) |
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Simon Charette):
> Do we really want to iterate over connections? As far as I'm aware, this
will force initialization of all database connections
I know it's confusing (I had to check myself to make sure when accepting
the ticket) but `connections.__iter__`
[https://github.com/django/django/blob/9a27c76021f934201cccf12215514a3091325ec8/django/utils/connection.py#L72-L73
doesn't create any connections] it simply iterates over
`settings.DATABASES`.
--
Ticket URL: <https://code.djangoproject.com/ticket/35429#comment:10>
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 view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/0107018f49f13ff5-622f40bd-9897-4063-b4cf-caa92f51ae8c-000000%40eu-central-1.amazonses.com.