pub struct SessionFsSqliteQueryResult {
pub columns: Vec<String>,
pub rows: Vec<HashMap<String, Value>>,
pub rows_affected: i64,
pub last_insert_rowid: Option<i64>,
}Expand description
Result of a SQLite query execution via SessionFsSqliteProvider::sqlite_query.
Same shape as the generated RPC type but without the error field,
since providers signal errors by returning Err.
Fields§
§columns: Vec<String>Column names from the result set.
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).
last_insert_rowid: Option<i64>Last inserted row ID (for INSERT).
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
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