ConnectionDelegate
public protocol ConnectionDelegate : AnyObject
A delegate for Connection
instances.
-
connection(_:didReceiveNotice:)
Default implementationCalled upon receiving a notice message from the Postgres server.
Default Implementation
Does nothing.
Declaration
Swift
func connection(_ connection: Connection, didReceiveNotice notice: Notice)
Parameters
connection
the
Connection
notice
the notice message
-
connection(_:didReceiveParameterStatus:)
Default implementationCalled upon a change in the value of certain Postgres server parameters.
Default Implementation
Does nothing.
Declaration
Swift
func connection(_ connection: Connection, didReceiveParameterStatus parameterStatus: (name: String, value: String))
Parameters
connection
the
Connection
parameterStatus
the parameter name and new value
-
connection(_:didReceiveNotification:)
Default implementationCalled upon receiving a notification message from the Postgres server.
See also
Default Implementation
Does nothing.
Declaration
Swift
func connection( _ connection: Connection, didReceiveNotification notification: (processId: UInt32, channel: String, payload: String))
Parameters
connection
the
Connection
notice
the server process ID, channel, and payload of the notification