[−][src]Enum pg_wire::BackendMessage
Backend PostgreSQL Wire Protocol messages see Protocol Flow
Variants
A warning message has been issued. The frontend should display the message but continue listening for ReadyForQuery or ErrorResponse.
The frontend must now send a PasswordMessage containing the password in clear-text form. If this is the correct password, the server responds with an AuthenticationOk, otherwise it responds with an ErrorResponse.
The frontend must now send a PasswordMessage containing the password (with user name) encrypted via MD5, then encrypted again using the 4-byte random salt specified in the AuthenticationMD5Password message. If this is the correct password, the server responds with an AuthenticationOk, otherwise it responds with an ErrorResponse. The actual PasswordMessage can be computed in SQL as concat('md5', md5(concat(md5(concat(password, username)), random-salt))). (Keep in mind the md5() function returns its result as a hex string.)
The authentication exchange is successfully completed.
BackendKeyData(ConnId, ConnSecretKey)
Identifies as cancellation key data. The frontend must save these values if it wishes to be able to issue CancelRequest messages later.
Start-up is completed. The frontend can now issue commands.
One of the set of rows returned by a SELECT, FETCH, etc query.
RowDescription(Vec<ColumnMetadata>)
Indicates that rows are about to be returned in response to a SELECT, FETCH, etc query. The contents of this message describe the column layout of the rows. This will be followed by a DataRow message for each row being returned to the frontend.
CommandComplete(String)
An SQL command completed normally.
An empty query string was recognized.
An error has occurred. Contains (Severity
, Error Code
, Error Message
)
all of them are optional
This message informs the frontend about the current (initial) setting of backend parameters, such as client_encoding or DateStyle
see https://www.postgresql.org/docs/12/protocol-flow.html#PROTOCOL-ASYNC 3rd and 4th paragraph
Indicates that parameters are needed by a prepared statement.
Indicates that the statement will not return rows.
This message informs the frontend about the previous Parse
frontend
message is successful.
This message informs the frontend about the previous Bind
frontend
message is successful.
This message informs the frontend about the previous Close
frontend
message is successful.
Implementations
impl BackendMessage
[src]
Trait Implementations
impl Debug for BackendMessage
[src]
impl PartialEq<BackendMessage> for BackendMessage
[src]
fn eq(&self, other: &BackendMessage) -> bool
[src]
fn ne(&self, other: &BackendMessage) -> bool
[src]
impl StructuralPartialEq for BackendMessage
[src]
Auto Trait Implementations
impl RefUnwindSafe for BackendMessage
impl Send for BackendMessage
impl Sync for BackendMessage
impl Unpin for BackendMessage
impl UnwindSafe for BackendMessage
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,