PGConnStatus

public enum PGConnStatus

PGConn Status Enumeration Adapter

Values

ok Connection is ready

bad Connection procedure has failed

started Waiting for connection to be made.

made Connection OK; waiting to send.

awaitingRsponse Waiting for a response from the postmaster.

authenticationOk Received authentication; waiting for backend startup.

setenv Negotiating environment-driven parameter settings.

sslStartup Negotiating SSL encryption.

needed Internal state: connect() needed

checkWritable Checking if connection is able to handle write transactions.

consume Consuming any remaining response messages on connection.

Outside of an asynchronous connection procedure only ok and bad are seen.

  • ok

    Connection is ready

    Declaration

    Swift

    case ok
  • bad

    Connection procedure has failed

    Declaration

    Swift

    case bad
  • Waiting for connection to be made.

    Declaration

    Swift

    case started
  • Connection OK; waiting to send.

    Declaration

    Swift

    case made
  • Waiting for a response from the postmaster.

    Declaration

    Swift

    case awaitingRsponse
  • Waiting for a response from the postmaster.

    Declaration

    Swift

    case authenticationOk
  • Received authentication; waiting for backend startup.

    Declaration

    Swift

    case setenv
  • Negotiating SSL encryption.

    Declaration

    Swift

    case sslStartup
  • Internal state: connect() needed

    Declaration

    Swift

    case needed
  • Checking if connection is able to handle write transactions.

    Declaration

    Swift

    case checkWritable
  • Consuming any remaining response messages on connection.

    Declaration

    Swift

    case consume
  • Returns the converted status or nil if the status is not valid.

    Declaration

    Swift

    init?(pgStatus: ConnStatusType)