pub enum ExecuteCommand {
Sql {
text: String,
params: Vec<ParameterValue>,
},
ExecutePrepared {
statement_id: StatementId,
params: Vec<ParameterValue>,
},
Begin {
isolation: IsolationLevel,
},
Commit,
Rollback,
Cancel {
query_id: QueryId,
},
GetSchema {
table: String,
},
Admin(AdminCommand),
}Expand description
The operation an ExecuteRequest asks the server to perform (S1D-001).
Variants are never reordered and discriminants never reused (spec section 4.10); new commands are only appended.
Variants§
Sql
Parse, plan, and execute a SQL statement.
Fields
§
params: Vec<ParameterValue>Bound parameter values, in statement order.
ExecutePrepared
Execute a previously prepared statement.
Fields
§
statement_id: StatementIdSession-scoped prepared statement handle from
crate::services::QueryService::prepare.
§
params: Vec<ParameterValue>Bound parameter values, in statement order.
Begin
Begin a transaction on the session.
Fields
§
isolation: IsolationLevelRequested MVCC isolation level.
Commit
Commit the session’s active transaction.
Rollback
Roll back the session’s active transaction.
Cancel
Cancel a running query (S1D-006).
GetSchema
Fetch the schema of one table.
Admin(AdminCommand)
An administrative operation.
Trait Implementations§
Source§impl Clone for ExecuteCommand
impl Clone for ExecuteCommand
Source§fn clone(&self) -> ExecuteCommand
fn clone(&self) -> ExecuteCommand
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ExecuteCommand
impl Debug for ExecuteCommand
Source§impl<'de> Deserialize<'de> for ExecuteCommand
impl<'de> Deserialize<'de> for ExecuteCommand
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ExecuteCommand
impl PartialEq for ExecuteCommand
Source§impl Serialize for ExecuteCommand
impl Serialize for ExecuteCommand
impl StructuralPartialEq for ExecuteCommand
Auto Trait Implementations§
impl Freeze for ExecuteCommand
impl RefUnwindSafe for ExecuteCommand
impl Send for ExecuteCommand
impl Sync for ExecuteCommand
impl Unpin for ExecuteCommand
impl UnsafeUnpin for ExecuteCommand
impl UnwindSafe for ExecuteCommand
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
Mutably borrows from an owned value. Read more