Enum mz_pgwire_common::message::FrontendMessage
source · pub enum FrontendMessage {
Show 15 variants
Query {
sql: String,
},
Parse {
name: String,
sql: String,
param_types: Vec<u32>,
},
DescribeStatement {
name: String,
},
DescribePortal {
name: String,
},
Bind {
portal_name: String,
statement_name: String,
param_formats: Vec<Format>,
raw_params: Vec<Option<Vec<u8>>>,
result_formats: Vec<Format>,
},
Execute {
portal_name: String,
max_rows: i32,
},
Flush,
Sync,
CloseStatement {
name: String,
},
ClosePortal {
name: String,
},
Terminate,
CopyData(Vec<u8>),
CopyDone,
CopyFail(String),
Password {
password: String,
},
}
Expand description
A decoded frontend pgwire message, representing instructions for the backend.
Variants§
Query
Execute the specified SQL.
This is issued as part of the simple query flow.
Parse
Parse the specified SQL into a prepared statement.
This starts the extended query flow.
Fields
DescribeStatement
Describe an existing prepared statement.
This command is part of the extended query flow.
DescribePortal
Describe an existing portal.
This command is part of the extended query flow.
Bind
Bind an existing prepared statement to a portal.
This command is part of the extended query flow.
Fields
portal_name: String
The destination portal. An empty string selects the unnamed
portal. The portal can later be executed with the Execute
command.
statement_name: String
The source prepared statement. An empty string selects the unnamed prepared statement.
Execute
Execute a bound portal.
This command is part of the extended query flow.
Fields
Flush
Flush any pending output.
This command is part of the extended query flow.
Sync
Finish an extended query.
This command is part of the extended query flow.
CloseStatement
Close the named statement.
This command is part of the extended query flow.
ClosePortal
Close the named portal.
Terminate
Terminate a connection.
CopyData(Vec<u8>)
CopyDone
CopyFail(String)
Password
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FrontendMessage
impl RefUnwindSafe for FrontendMessage
impl Send for FrontendMessage
impl Sync for FrontendMessage
impl Unpin for FrontendMessage
impl UnwindSafe for FrontendMessage
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> FutureExt for T
impl<T> FutureExt for T
source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request
source§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<P, R> ProtoType<R> for Pwhere
R: RustType<P>,
impl<P, R> ProtoType<R> for Pwhere
R: RustType<P>,
source§fn into_rust(self) -> Result<R, TryFromProtoError>
fn into_rust(self) -> Result<R, TryFromProtoError>
RustType::from_proto
.source§fn from_rust(rust: &R) -> P
fn from_rust(rust: &R) -> P
RustType::into_proto
.