pub enum DbRequest {
Query {
sql: String,
params: Vec<Param>,
tx: Option<u32>,
},
Execute {
sql: String,
params: Vec<Param>,
tx: Option<u32>,
},
Begin {
isolation: Isolation,
read_only: bool,
},
Commit {
tx: u32,
},
Rollback {
tx: u32,
},
Savepoint {
tx: u32,
name: String,
},
Release {
tx: u32,
name: String,
},
RollbackTo {
tx: u32,
name: String,
},
StatementTimeout {
tx: u32,
ms: Option<u64>,
},
}Expand description
One db_call request.
Variants§
Query
Execute
Begin
Commit
Rollback
Savepoint
Release
RollbackTo
StatementTimeout
The guest’s own statement_timeout for the statements of tx that
follow, in milliseconds; None hands it back to the platform.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DbRequest
impl<'de> Deserialize<'de> for DbRequest
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
impl StructuralPartialEq for DbRequest
Auto Trait Implementations§
impl Forget for DbRequest
impl Freeze for DbRequest
impl RefUnwindSafe for DbRequest
impl Send for DbRequest
impl Sync for DbRequest
impl Unpin for DbRequest
impl UnsafeUnpin for DbRequest
impl UnwindSafe for DbRequest
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