Closed ryandotsmith closed 6 months ago
Why do you need to do that instead of just always using the real connector?
I would need to do that if I was unaware that connecting to a locally running postgres over tls is a perfectly fine thing to do ;)
thank you
You don't even need to connect over TLS - a connector like postgres_openssl allows you to connect with TLS, it doesn't require it.
I was wondering about that. Good to know. Is there ever a reason to use NoTls?
If you know you're not going to use TLS it avoids some extra dependencies.
Hello. I would like to make a function that uses the config to determine if we should build a connection using NoTls or an SslConnector but I'm having a difficult time lining up the types. Any suggestions?