pub enum SqlResult {
Rows(Vec<Vec<(JoinColumnDef, Value)>>),
RowsAffected(u64),
TxBegin(u64),
TxCommit,
TxRollback,
}Available on crate feature
sql only.Expand description
Outcome of a successfully executed SQL statement.
Variants§
Rows(Vec<Vec<(JoinColumnDef, Value)>>)
Rows produced by a SELECT.
RowsAffected(u64)
Number of rows written by an INSERT, UPDATE, or DELETE.
TxBegin(u64)
A transaction was started by BEGIN; later statements pass its ID.
TxCommit
The active transaction was committed by COMMIT.
TxRollback
The active transaction was discarded by ROLLBACK.
Trait Implementations§
Source§impl CandidType for SqlResult
impl CandidType for SqlResult
Source§impl<'de> Deserialize<'de> for SqlResult
impl<'de> Deserialize<'de> for SqlResult
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SqlResult, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SqlResult, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for SqlResult
Source§impl Serialize for SqlResult
impl Serialize for SqlResult
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for SqlResult
Auto Trait Implementations§
impl Freeze for SqlResult
impl RefUnwindSafe for SqlResult
impl Send for SqlResult
impl Sync for SqlResult
impl Unpin for SqlResult
impl UnsafeUnpin for SqlResult
impl UnwindSafe for SqlResult
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