#[non_exhaustive]pub enum ResultKind {
Rows,
ChangedRows,
Nothing,
Invalid,
}Expand description
What kind of outcome a statement produced.
Mirrors duckdb_result_type. A SELECT yields QueryResult;
INSERT / UPDATE / DELETE yield ChangedRows, for
which QueryResult::rows_changed is meaningful; CREATE / SET and
friends yield Nothing.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Rows
The statement produced rows.
ChangedRows
The statement changed rows; see QueryResult::rows_changed.
Nothing
The statement produced neither rows nor row counts.
Invalid
DuckDB reported DUCKDB_RESULT_TYPE_INVALID, or a value this build
does not know.
Trait Implementations§
Source§impl Clone for ResultKind
impl Clone for ResultKind
Source§fn clone(&self) -> ResultKind
fn clone(&self) -> ResultKind
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 moreimpl Copy for ResultKind
Source§impl Debug for ResultKind
impl Debug for ResultKind
impl Eq for ResultKind
Source§impl Hash for ResultKind
impl Hash for ResultKind
Source§impl PartialEq for ResultKind
impl PartialEq for ResultKind
impl StructuralPartialEq for ResultKind
Auto Trait Implementations§
impl Freeze for ResultKind
impl RefUnwindSafe for ResultKind
impl Send for ResultKind
impl Sync for ResultKind
impl Unpin for ResultKind
impl UnsafeUnpin for ResultKind
impl UnwindSafe for ResultKind
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