pub struct SessionFsSqliteQueryResult {
pub columns: Vec<String>,
pub error: Option<SessionFsError>,
pub last_insert_rowid: Option<i64>,
pub rows: Vec<HashMap<String, Value>>,
pub rows_affected: i64,
}Expand description
Query results including rows, columns, and rows affected, or a filesystem error if execution failed.
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
Fields§
§columns: Vec<String>Column names from the result set
error: Option<SessionFsError>Describes a filesystem error.
last_insert_rowid: Option<i64>SQLite last_insert_rowid() value for INSERT.
rows: Vec<HashMap<String, Value>>For SELECT: array of row objects. For others: empty array.
rows_affected: i64Number of rows affected (for INSERT/UPDATE/DELETE)
Trait Implementations§
Source§impl Clone for SessionFsSqliteQueryResult
impl Clone for SessionFsSqliteQueryResult
Source§fn clone(&self) -> SessionFsSqliteQueryResult
fn clone(&self) -> SessionFsSqliteQueryResult
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 SessionFsSqliteQueryResult
impl Debug for SessionFsSqliteQueryResult
Source§impl Default for SessionFsSqliteQueryResult
impl Default for SessionFsSqliteQueryResult
Source§fn default() -> SessionFsSqliteQueryResult
fn default() -> SessionFsSqliteQueryResult
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SessionFsSqliteQueryResult
impl<'de> Deserialize<'de> for SessionFsSqliteQueryResult
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
Auto Trait Implementations§
impl Freeze for SessionFsSqliteQueryResult
impl RefUnwindSafe for SessionFsSqliteQueryResult
impl Send for SessionFsSqliteQueryResult
impl Sync for SessionFsSqliteQueryResult
impl Unpin for SessionFsSqliteQueryResult
impl UnsafeUnpin for SessionFsSqliteQueryResult
impl UnwindSafe for SessionFsSqliteQueryResult
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