Opened 17 years ago
Closed 17 years ago
#5122 closed (wontfix)
Django Custom dbshell prompts
Reported by: | Owned by: | Adrian Holovaty | |
---|---|---|---|
Component: | Database layer (models, ORM) | Version: | dev |
Severity: | Keywords: | dbshell | |
Cc: | Triage Stage: | Design decision needed | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
I find it very useful to have dbshell indicate what database I'm working against. The stock dbshell does not indicate the active database, at least in MySQL.
I do not have access to the other databases to test against but I'm sure a similar patch could be made for other backends.
Attachments (2)
Change History (5)
by , 17 years ago
Attachment: | django-mysql-prompt.diff added |
---|
comment:1 by , 17 years ago
The first version of this patch used DATABASE_OPTIONS that broke connections.py
comment:2 by , 17 years ago
Triage Stage: | Unreviewed → Design decision needed |
---|
comment:3 by , 17 years ago
Resolution: | → wontfix |
---|---|
Status: | new → closed |
The dbshell is a fairly minor feature. I don't think it's worth creating another setting, with all the accompanying documentation and maintenance for this purpose. Since it can already be set via .my.cnf or an environment variable, a workaround exists.
Add prompt db option to mysql backend