pub enum InsertOption {
Returning,
OnConflict,
TableAlias,
Partition,
Overwrite,
TableKeyword,
}Expand description
INSERT clauses that GlueSQL does not support yet.
Carried by TranslateError::UnsupportedInsertOption so callers can
match exhaustively on every currently-rejected clause instead of
inspecting a free-form string.
Variants§
Returning
INSERT ... RETURNING ...
OnConflict
INSERT ... ON CONFLICT ...
TableAlias
INSERT INTO <table> AS <alias> ...
Partition
INSERT INTO <table> PARTITION (...) ...
Overwrite
INSERT OVERWRITE TABLE <table> ...
TableKeyword
INSERT TABLE <table> ... (the TABLE keyword form)
Trait Implementations§
Source§impl Clone for InsertOption
impl Clone for InsertOption
Source§fn clone(&self) -> InsertOption
fn clone(&self) -> InsertOption
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 InsertOption
Source§impl Debug for InsertOption
impl Debug for InsertOption
Source§impl Display for InsertOption
impl Display for InsertOption
impl Eq for InsertOption
Source§impl PartialEq for InsertOption
impl PartialEq for InsertOption
Source§impl Serialize for InsertOption
impl Serialize for InsertOption
impl StructuralPartialEq for InsertOption
Auto Trait Implementations§
impl Freeze for InsertOption
impl RefUnwindSafe for InsertOption
impl Send for InsertOption
impl Sync for InsertOption
impl Unpin for InsertOption
impl UnsafeUnpin for InsertOption
impl UnwindSafe for InsertOption
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more