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

Method from_env

src/models/types.rs:542–546  ·  view source on GitHub ↗
(env: Arc<Environment>, collection_name: &str)

Source from the content-addressed store, hash-verified

540
541impl MetaDb {
542 pub fn from_env(env: Arc<Environment>, collection_name: &str) -> lmdb::Result<Self> {
543 let db = env.create_db(Some(collection_name), DatabaseFlags::empty())?;
544
545 Ok(Self { env, db })
546 }
547}
548
549pub struct CollectionsMap {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected