Enum dbcrossbarlib::IfExists
source · Expand description
What to do if the destination already exists.
Variants
Error
If the destination exists, return an error.
Append
If the destination exists, try to append the new data.
Overwrite
If the destination exists, overwrite the existing data.
Upsert(Vec<String>)
If the destination exists, either update or insert using the specified
columns as the key. The list of keys must be non-empty, but we currently
only enforce that when parsing in FromStr
.
Trait Implementations
impl Eq for IfExists
impl StructuralEq for IfExists
impl StructuralPartialEq for IfExists
Auto Trait Implementations
impl RefUnwindSafe for IfExists
impl Send for IfExists
impl Sync for IfExists
impl Unpin for IfExists
impl UnwindSafe for IfExists
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.