MCPcopy Create free account
hub / github.com/cosdata/cosdata / insert_collection

Method insert_collection

src/models/types.rs:1339–1343  ·  view source on GitHub ↗
(&self, collection: Arc<Collection>)

Source from the content-addressed store, hash-verified

1337 /// inserts a collection into the collections map
1338 #[allow(dead_code)]
1339 pub fn insert_collection(&self, collection: Arc<Collection>) -> Result<(), WaCustomError> {
1340 self.inner_collections
1341 .insert(collection.meta.name.to_owned(), collection);
1342 Ok(())
1343 }
1344
1345 /// Returns the `Collection` by collection's name
1346 ///

Callers 1

create_collectionFunction · 0.80

Calls 1

insertMethod · 0.45

Tested by

no test coverage detected