Opened 9 years ago

Closed 9 years ago

#5122 closed (wontfix)

Django Custom dbshell prompts

Reported by: cmgreen@… Owned by: Adrian Holovaty
Component: Database layer (models, ORM) Version: master
Severity: Keywords: dbshell
Cc: Triage Stage: Design decision needed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

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)

django-mysql-prompt.diff (861 bytes) - added by cmgreen@… 9 years ago.
Add prompt db option to mysql backend
dbprompt.diff (1009 bytes) - added by cmgreen@… 9 years ago.
New version of same patch

Download all attachments as: .zip

Change History (5)

Changed 9 years ago by cmgreen@…

Attachment: django-mysql-prompt.diff added

Add prompt db option to mysql backend

Changed 9 years ago by cmgreen@…

Attachment: dbprompt.diff added

New version of same patch

comment:1 Changed 9 years ago by anonymous

Needs documentation: unset
Needs tests: unset
Patch needs improvement: unset

The first version of this patch used DATABASE_OPTIONS that broke connections.py

comment:2 Changed 9 years ago by Simon G. <dev@…>

Triage Stage: UnreviewedDesign decision needed

comment:3 Changed 9 years ago by Malcolm Tredinnick

Resolution: wontfix
Status: newclosed

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.

Note: See TracTickets for help on using tickets.
Back to Top