pub async fn insert_conditionally_all<K, V>(
        &self,
        kvps: Vec<(&K, &V, Version)>,
        offset: i64,
    ) -> Result<Vec<Version>, TableError>
    where
        K: Serialize + serde::de::DeserializeOwned,
        V: Serialize + serde::de::DeserializeOwned,
    {
        let r: Vec<(Vec<u8>, Vec<u8>, Version)> = kvps
            .iter()
            .map(|(k, v, ver)| {
                (
                    to_vec(k).expect("error during serialization."),
                    to_vec(v).expect("error during serialization."),
                    *ver,
                )
            })
            .collect();
        self.insert_raw_values(r, offset).await
    }
/// Conditionally insert key-value pairs into the table. The Key and Value are serialized to to bytes using
/// cbor
///
/// The insert is performed after checking the key_version passed, in case of a failure none of the key-value pairs
/// are persisted.
/// Once the update is done the newer version is returned.
/// TableError::BadKeyVersion is returned in case of an incorrect key version.
Conditionally insert key-value pairs into the table. The Key and Value are serialized to to bytes using
cbor

The insert is performed after checking the key_version passed, in case of a failure none of the key-value pairs
are persisted.
Once the update is done the newer version is returned.
TableError::BadKeyVersion is returned in case of an incorrect key version.
Conditionally insert key - value pairs into the table . The Key and Value are serialized to to bytes using cbor The insert is performed after checking the key_version passed in case of a failure none of the key - value pairs are persisted . Once the update is done the newer version is returned . TableError :: BadKeyVersion is returned in case of an incorrect key version .
pub async fn insert_conditionally_all<K, V>(
        &self,
        kvps: Vec<(&K, &V, Version)>,
        offset: i64,
    ) -> Result<Vec<Version>, TableError>
    where
        K: Serialize + serde::de::DeserializeOwned,
        V: Serialize + serde::de::DeserializeOwned,
    {
        let r: Vec<(Vec<u8>, Vec<u8>, Version)> = kvps
            .iter()
            .map(|(k, v, ver)| {
                (
                    to_vec(k).expect("error during serialization."),
                    to_vec(v).expect("error during serialization."),
                    *ver,
                )
            })
            .collect();
        self.insert_raw_values(r, offset).await
    }
pub async fn insert_conditionally_all < K , V > ( & self , kvps : Vec < ( & K , & V , Version ) > , offset : i64 , ) -> Result < Vec < Version > , TableError > where K : Serialize + serde :: de :: DeserializeOwned , V : Serialize + serde :: de :: DeserializeOwned , { let r : Vec < ( Vec < u8 > , Vec < u8 > , Version ) > = kvps . iter ( ) . map ( | ( k , v , ver ) | { ( to_vec ( k ) . expect ( " " ) , to_vec ( v ) . expect ( " " ) , * ver , ) } ) . collect ( ) ; self . insert_raw_values ( r , offset ) . await }
Conditionally insert key-value pairs into the table.
Conditionally insert key - value pairs into the table .
&self
kvps
Vec<(&K, &V, Version)>
offset
i64
&self
kvps
Vec<(&K, &V, Version)>
offset
i64