MCPcopy Create free account
hub / github.com/dfinity/orbit / insert

Method insert

libs/orbit-essentials/src/repository.rs:99–101  ·  view source on GitHub ↗

Inserts a record into the repository.

(&self, key: Key, value: Value)

Source from the content-addressed store, hash-verified

97
98 /// Inserts a record into the repository.
99 fn insert(&self, key: Key, value: Value) -> Option<Value> {
100 Self::with_db(|db| db.insert(key, value))
101 }
102
103 /// Removes a record from the repository and returns it if it exists.
104 fn remove(&self, key: &Key) -> Option<Value> {

Callers 9

counter_vec_mutMethod · 0.45
counter_mutMethod · 0.45
gauge_vec_mutMethod · 0.45
gauge_mutMethod · 0.45
rebuildMethod · 0.45
to_json_stringMethod · 0.45
detailsMethod · 0.45
newMethod · 0.45

Implementers 15

asset.rscore/station/impl/src/repositories/ass
notification.rscore/station/impl/src/repositories/not
user_group.rscore/station/impl/src/repositories/use
request_evaluation_result.rscore/station/impl/src/repositories/req
request_policy.rscore/station/impl/src/repositories/req
account.rscore/station/impl/src/repositories/acc
request.rscore/station/impl/src/repositories/req
user.rscore/station/impl/src/repositories/use
address_book.rscore/station/impl/src/repositories/add
named_rule.rscore/station/impl/src/repositories/nam
transfer.rscore/station/impl/src/repositories/tra
external_canister.rscore/station/impl/src/repositories/ext

Calls

no outgoing calls

Tested by

no test coverage detected