SSLMode

public enum SSLMode : String, CaseIterable

possible modes for sslMode parameter. Defined at PostgreSQL docs.

  • onlyy try a non-SSL connection

    Declaration

    Swift

    case disable
  • first try a non-SSL connection, if that fails, try a SSL connection

    Declaration

    Swift

    case allow
  • first try an SSL connection, if that fails, try a non-SSQL connection

    Declaration

    Swift

    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

    Declaration

    Swift

    case require
  • only try an SSL connection, and verify that the server certificate is issued by a trusted certificate authority (CA)

    Declaration

    Swift

    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

    Declaration

    Swift

    case verifyFull = "verify-full"