Skip to main content

BatchWrite

Type Alias BatchWrite 

Source
pub type BatchWrite<T> = Upsert<T>;
👎Deprecated since 0.8.0:

renamed to Upsert; the Set variant is now Put

Expand description

Renamed to Upsert in 0.8.0, so one decision type covers both upsert and update_many.

The Set variant is now Put; Keep and Delete are unchanged. The alias keeps signatures naming the type compiling — call sites naming the variant must be updated.

Aliased Type§

pub enum BatchWrite<T> {
    Put(T),
    Keep,
    Delete,
}

Variants§

§

Put(T)

Store T at the key (insert or overwrite).

§

Keep

Do not write; the existing row (or absence) is left as-is.

§

Delete

Delete the key if it exists; absent keys stay absent.