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

Method serialize

src/models/collection.rs:337–339  ·  view source on GitHub ↗

serializes the collection

(&self)

Source from the content-addressed store, hash-verified

335
336 /// serializes the collection
337 pub fn serialize(&self) -> Result<Vec<u8>, WaCustomError> {
338 to_vec(&self.meta).map_err(|e| WaCustomError::SerializationError(e.to_string()))
339 }
340
341 /// persists the collection instance on disk (lmdb -> collections database)
342 pub fn persist(&self, env: &Environment, db: Database) -> Result<(), WaCustomError> {

Callers 2

persistMethod · 0.45
flushMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected