Structure
PostgresMessage
A frontend or backend Postgres message.
struct PostgresMessage
Topics
Structures
PostgresMessage.BackendKeyDataIdentifies the message as cancellation key data. The frontend must save these values if it wishes to be able to issue CancelRequest messages later.PostgresMessage.BindIdentifies the message as a Bind command.PostgresMessage.CloseIdentifies the message as a Close CommandPostgresMessage.CommandCompleteIdentifies the message as a Close command.PostgresMessage.DataRowIdentifies the message as a data row.PostgresMessage.DescribeIdentifies the message as a Describe command.PostgresMessage.ErrorA Postgres error response message.PostgresMessage.ExecuteIdentifies the message as an Execute command.PostgresMessage.IdentifierIdentifies an incoming or outgoing postgres message. Sent as the first byte, before the message size. Values are not unique across all identifiers, meaning some messages will require keeping state to identify.PostgresMessage.NotificationResponseIdentifies the message as a notification response.PostgresMessage.ParameterDescriptionIdentifies the message as a parameter description.PostgresMessage.ParameterStatusPostgresMessage.ParseIdentifies the message as a Parse command.PostgresMessage.PasswordIdentifies the message as a password response. Note that this is also used for GSSAPI and SSPI response messages (which is really a design error, since the contained data is not a null-terminated string in that case, but can be arbitrary binary data).PostgresMessage.ReadyForQueryIdentifies the message type. ReadyForQuery is sent whenever the backend is ready for a new query cycle.PostgresMessage.RowDescriptionIdentifies the message as a row description.PostgresMessage.SASLInitialResponseSASL initial challenge response message sent by the client.PostgresMessage.SASLResponseSASL ongoing challenge response message sent by the client.PostgresMessage.SSLRequestA message asking the PostgreSQL server if SSL is supported For more info, see https://www.postgresql.org/docs/10/static/protocol-flow.html#id-1.10.5.7.11PostgresMessage.SimpleQueryIdentifies the message as a simple query.PostgresMessage.StartupFirst message sent from the frontend during startup.PostgresMessage.SyncIdentifies the message as a Bind command.PostgresMessage.Terminate
Initializers
Instance Properties
Enumerations
PostgresMessage.AuthenticationAuthentication request returned by the server.
Relationships
Conforms To
Swift.Equatable
See Also
Deprecated APIs
PostgresDatabasePostgresDataPostgresDataConvertiblePostgresQueryResultPostgresJSONCodablePostgresJSONBCodablePostgresMessageEncoderPostgresMessageDecoderPostgresRequestProtocol to encapsulate a function call on the Postgres serverPostgresMessageTypePostgresFormatCodePostgresListenContextContext for receiving NotificationResponse messages on a connection, used for PostgreSQL’sLISTEN/NOTIFYsupport.PreparedQuerySASLAuthenticationManagerSASLAuthenticationMechanismThe protocol to which all SASL mechanism implementations must conform. It is the responsibility of each individual implementation to provide an API for creating instances of itself which are able to retrieve information from the caller (such as usernames and passwords) by some mechanism.