MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / remove

Method remove

nodedb-crdt/src/policy.rs:170–172  ·  view source on GitHub ↗

Remove the policy for a collection. Returns `true` if one existed.

(&mut self, collection: &str)

Source from the content-addressed store, hash-verified

168
169 /// Remove the policy for a collection. Returns `true` if one existed.
170 pub fn remove(&mut self, collection: &str) -> bool {
171 self.policies.remove(collection).is_some()
172 }
173
174 /// Set the policy for a specific constraint kind within a collection.
175 pub fn set_for_kind(

Callers 15

remove_documentMethod · 0.45
delete_entryFunction · 0.45
clear_database_budgetMethod · 0.45
clear_tenant_budgetMethod · 0.45
drop_partitionMethod · 0.45
add_edge_internalMethod · 0.45
remove_keyMethod · 0.45
extract_join_predicateFunction · 0.45
parse_unionFunction · 0.45
split_equality_from_exprFunction · 0.45
reap_empty_queuesMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected