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
connectionthe
Connectionnoticethe 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
connectionthe
ConnectionparameterStatusthe 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
connectionthe
Connectionnoticethe server process ID, channel, and payload of the notification