Page MenuHomePhabricator

Provide shortcut "sql" or similar to connect to the correct database
Closed, ResolvedPublic

Description

Toolserver has a utility "sql" that hides the lookup of the correct database server to connect to and gives users the ease to just say "sql nlwiki" or "sql nlwiki 'SELECT * FROM page LIMIT 1;'".

Source should be at https://svn.toolserver.org/svnroot/puppet/trunk/puppet/modules/scripts/files/sql (down at the moment), cf. https://jira.toolserver.org/browse/TS-1651 for a small bugfix.


Version: unspecified
Severity: enhancement

Details

Reference
bz48627

Event Timeline

bzimport raised the priority of this task from to Lowest.Nov 22 2014, 1:18 AM
bzimport added a project: Toolforge.
bzimport set Reference to bz48627.

Noting the WMF has what is presumably a variant of the same script

Related URL: https://gerrit.wikimedia.org/r/64847 (Gerrit Change Ie111a5adad4c6378ed71825394548f47d4991eaf)

(In reply to comment #3)

implemented on -login

Nope.

Can you elaborate more on that? The tools is there in /usr/bin/sql (it differs from the patch though) IMHO this patch should be somehow merged with the second one.

However the sql tool is present and works

the tools is available both on -login and -dev servers, despite the patch needs to be merged.