sq icon indicating copy to clipboard operation
sq copied to clipboard

Two-letter driver names ('pg' instead of 'postgres')

Open neilotoole opened this issue 5 years ago • 1 comments

In keeping with sq's general goal of terseness, sq should prefer short driver names. As in:

# Prefer this:
$sq add 'pg://user:pass@localhost/sakila`

# Over existing mechanism:
$ sq add 'postgres://user:pass@localhost/sakila'

Similarly my for mysql, ms for sqlserver/mssql, sl for sqlite3, etc. The sq add cmd should still accept the long variants, and sq should be able to read the long variants from config (e.g. if the user manually edits sq.yml).

neilotoole avatar Aug 09 '20 05:08 neilotoole

Hello,

I have just added PR #93 for this. Please let me know if there is something to change or the other way.

kobayashi avatar Mar 15 '21 03:03 kobayashi

After several looks into this, it's 👎.

Much of the pain has gone away due to implementation of sq's excellent shell completion. But the main vote against this is that the connection string URLs would be non-canonical, making sense only to sq, but not to any other programs or libraries. It's not worth the pain.

neilotoole avatar Mar 07 '24 22:03 neilotoole