[][src]Enum dbcrossbarlib::IfExists

pub enum IfExists {
    Error,
    Append,
    Overwrite,
    Upsert(Vec<String>),
}

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 Clone for IfExists[src]

impl Default for IfExists[src]

impl Eq for IfExists[src]

impl PartialEq<IfExists> for IfExists[src]

impl Display for IfExists[src]

impl Debug for IfExists[src]

impl FromStr for IfExists[src]

type Err = Error

The associated error which can be returned from parsing.

impl StructuralPartialEq for IfExists[src]

impl StructuralEq for IfExists[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> IntoSql for T[src]

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<'a, T> TryFrom<&'a str> for T where
    T: FromStr
[src]

type Err = <T as FromStr>::Err

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Err = <U as TryFrom<T>>::Err

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,