pg_dump_sample icon indicating copy to clipboard operation
pg_dump_sample copied to clipboard

Feature Request / Issue: Allow to connect with SSL

Open leonelgalan opened this issue 8 years ago • 2 comments

I've seen the SSL: false, in the code, but didn't know if this was there for a reason. Popular services like Heroku Postgres, will only allow to connect through SSL.

In the vein of these services, it will be great to allow pg_dump_sample to read the credentials from a connection info string or a connection url:

Connection info string:
   "dbname=mydbname host=myhost port=myport user=myuserpassword=mypassword sslmode=require"
Connection URL:
   postgres://myuser:mypassword@myhost:myport/mydbname

leonelgalan avatar Mar 20 '17 15:03 leonelgalan

Hi, thanks for the report. I added support for SSL/TLS database connections -- -s or --tls.

dankeder avatar Mar 27 '17 13:03 dankeder

I'll leave this open for the time being, I might implement the connection URLs/DSN support later. Thanks for the suggestions.

dankeder avatar Mar 27 '17 13:03 dankeder