sasha-alias / sqltabs

Rich SQL client for Postgresql, MySQL, MS SQL, Amazon Redshift, Google Firebase (Firestore)
https://www.sqltabs.com
GNU General Public License v3.0
803 stars 57 forks source link

connect to socket #42

Closed piotrekkr closed 8 years ago

piotrekkr commented 8 years ago

Hi, is there any way to specify connection string using socket?

I tried:

postgresql:///piotrek?host=/var/run/postgresql&user=piotrek

error: Error: FATAL: database "//piotrek" does not exist

and

host=/var/run/postgresql user=piotrek dbname=piotrek

error: Error: could not translate host name "host" to address: Name or service not known

I looked here: http://www.postgresql.org/docs/9.2/static/libpq-connect.html (31.1.1. Connection Strings)

piotrekkr commented 8 years ago

Can be closed since postgresql:// URI format is handled correctly now. Adding handling of this format

host=/var/run/postgresql user=piotrek dbname=piotrek

would be nice too.