xo / usql

Universal command-line interface for SQL databases
MIT License
8.82k stars 346 forks source link

Feature request: sslmode=disable hint #406

Closed hissssst closed 1 year ago

hissssst commented 1 year ago

Instead of writing this

error: pq: SSL is not enabled on the server

It would be nice to have something like this

error: pq: SSL is not enabled on the server

  hint: Try adding ?sslmode=disable to the connection uri
kenshaw commented 1 year ago

@hissssst The last tagged release includes an auto-retry for PostgreSQL connections with the lib/pq. What version are you on?

kenshaw commented 1 year ago

@hissssst that said, your request is 100% reasonable, and I'll make a point of adding that output with that error.

hissssst commented 1 year ago

I am on usql 0.13.12, I'll check the update

kenshaw commented 1 year ago

v0.14.0 added the change.