Opened 8 years ago

Closed 8 years ago

#5122 closed (wontfix)

Django Custom dbshell prompts

Reported by: cmgreen@… Owned by: adrian
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@… 8 years ago.
Add prompt db option to mysql backend
dbprompt.diff (1009 bytes) - added by cmgreen@… 8 years ago.
New version of same patch

Download all attachments as: .zip

Change History (5)

Changed 8 years ago by cmgreen@…

Add prompt db option to mysql backend

Changed 8 years ago by cmgreen@…

New version of same patch

comment:1 Changed 8 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 8 years ago by Simon G. <dev@…>

  • Triage Stage changed from Unreviewed to Design decision needed

comment:3 Changed 8 years ago by mtredinnick

  • Resolution set to wontfix
  • Status changed from new to 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.

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