Enumeration
SASLAuthenticationStepResult
Signifies an action to be taken as the result of a single step of a SASL mechanism.
enum SASLAuthenticationStepResult
Topics
Enumeration Cases
case `continue`(response: [UInt8]?)More steps are needed. Assume neither success nor failure. If data is provided, send it. A value ofnilsignifies sending no response at all, whereas a value of[]signifies sending an empty response, which may not be the same action depending on the underlying protocolcase fail(response: [UInt8]?, error: (any Error)?)Signal authentication failure. If data is provided, send it. A value ofnilsignifies sending no response at all, whereas a value of[]signifies sending an empty response, which may not be the same action depending on the underlying protocol. The provided error, if any, is surfaced. If none is provided, a generic failure is surfaced instead.case succeed(response: [UInt8]?)Signal authentication success. If data is provided, send it. A value ofnilsignifies sending no response at all, whereas a value of[]signifies sending an empty response, which may not be the same action depending on the underlying protocol.
See Also
Deprecated APIs
protocol PostgresDatabasestruct PostgresDataprotocol PostgresDataConvertiblestruct PostgresQueryResultprotocol PostgresJSONCodableprotocol PostgresJSONBCodableclass PostgresMessageEncoderclass PostgresMessageDecoderprotocol PostgresRequestProtocol to encapsulate a function call on the Postgres serverstruct PostgresMessageA frontend or backend Postgres message.protocol PostgresMessageTypetypealias PostgresFormatCodeclass PostgresListenContextContext for receiving NotificationResponse messages on a connection, used for PostgreSQL’sLISTEN/NOTIFYsupport.struct PreparedQueryclass SASLAuthenticationManager