pub struct ExecOutcome {
pub rows_affected: u64,
pub last_insert_id: i64,
}Expand description
The result of a write statement.
Fields§
§rows_affected: u64Rows inserted/updated/deleted.
last_insert_id: i64The autogenerated key from an INSERT, where the backend reports one
(LAST_INSERT_ID() / last_insert_rowid() / D1 meta.last_row_id).
0 when there was none.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ExecOutcome
impl RefUnwindSafe for ExecOutcome
impl Send for ExecOutcome
impl Sync for ExecOutcome
impl Unpin for ExecOutcome
impl UnsafeUnpin for ExecOutcome
impl UnwindSafe for ExecOutcome
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