/// Unconditionally insert a new or update an existing entry for the given key.
/// Once the update is performed the newer version is returned.
Unconditionally insert a new or update an existing entry for the given key.
Once the update is performed the newer version is returned.
Unconditionally insert a new or update an existing entry for the given key . Once the update is performed the newer version is returned .
pub async fn insert<K, V>(&self, k: &K, v: &V, offset: i64) -> Result<Version, TableError>
    where
        K: Serialize + serde::de::DeserializeOwned,
        V: Serialize + serde::de::DeserializeOwned,
    {
        // use KEY_NO_VERSION to ensure unconditional update.
        self.insert_conditionally(k, v, TableKey::KEY_NO_VERSION, offset)
            .await
    }
pub async fn insert < K , V > ( & self , k : & K , v : & V , offset : i64 ) -> Result < Version , TableError > where K : Serialize + serde :: de :: DeserializeOwned , V : Serialize + serde :: de :: DeserializeOwned , { // use KEY_NO_VERSION to ensure unconditional update. self . insert_conditionally ( k , v , TableKey :: KEY_NO_VERSION , offset ) . await }
Unconditionally insert a new or update an existing entry for the given key.
Unconditionally insert a new or update an existing entry for the given key .
&self
k
&K
v
&V
offset
i64