Opened 17 years ago

Closed 17 years ago

#5122 closed (wontfix)

Django Custom dbshell prompts

Reported by: cmgreen@… 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)

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

Download all attachments as: .zip

Change History (5)

by cmgreen@…, 17 years ago

Attachment: django-mysql-prompt.diff added

Add prompt db option to mysql backend

by cmgreen@…, 17 years ago

Attachment: dbprompt.diff added

New version of same patch

comment:1 by anonymous, 17 years ago

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

comment:2 by Simon G. <dev@…>, 17 years ago

Triage Stage: UnreviewedDesign decision needed

comment:3 by Malcolm Tredinnick, 17 years ago

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