SSLMode
public enum SSLMode : String, CaseIterablepossible modes for sslMode parameter. Defined at PostgreSQL docs.
- 
                  
                  onlyy try a non-SSL connection DeclarationSwift case disable
- 
                  
                  first try a non-SSL connection, if that fails, try a SSL connection DeclarationSwift case allow
- 
                  
                  first try an SSL connection, if that fails, try a non-SSQL connection DeclarationSwift case prefer
- 
                  
                  only try an SSL connection. If a root CA file is present, verify the certificate in the same way as if verify-ca was specified. This is the default value DeclarationSwift case require
- 
                  
                  only try an SSL connection, and verify that the server certificate is issued by a trusted certificate authority (CA) DeclarationSwift case verifyCA = "verify-ca"
- 
                  
                  only try an SSL connection, verify that the server certificate is issued by a trusted CA and that the requested server host name matches that in the certificate DeclarationSwift case verifyFull = "verify-full"
 View on GitHub
View on GitHub SSLMode Enumeration Reference
        SSLMode Enumeration Reference