MCPcopy Create free account
hub / github.com/AppFlowy-IO/AppFlowy-Collab / insert

Method insert

collab/src/core/map_wrapper.rs:46–50  ·  view source on GitHub ↗
(&self, key: &str, value: V)

Source from the content-addressed store, hash-verified

44 }
45
46 pub fn insert<V: Prelim>(&self, key: &str, value: V) {
47 self.collab_ctx.with_transact_mut(|txn| {
48 self.map_ref.insert(txn, key, value);
49 })
50 }
51
52 pub fn insert_with_txn<V: Prelim>(&self, txn: &mut TransactionMut, key: &str, value: V) {
53 self.map_ref.insert(txn, key, value);

Callers 14

insert_with_txnMethod · 0.45
insert_text_with_txnMethod · 0.45
insert_map_with_txnMethod · 0.45
insert_array_with_txnMethod · 0.45
create_map_with_txnMethod · 0.45
create_array_with_txnMethod · 0.45
insert_with_txnMethod · 0.45
insert_str_with_txnMethod · 0.45
insert_i64_with_txnMethod · 0.45
insert_f64_with_txnMethod · 0.45
insert_bool_with_txnMethod · 0.45
create_map_with_txnMethod · 0.45

Calls 1

with_transact_mutMethod · 0.45

Tested by

no test coverage detected