MCPcopy Create free account
hub / github.com/GraphLite-AI/GraphLite / new

Method new

graphlite/src/session/instance_provider.rs:35–47  ·  view source on GitHub ↗

Create a new instance session provider # Arguments `transaction_manager` - Transaction manager for this instance `storage_manager` - Storage manager for this instance `catalog_manager` - Catalog manager for this instance

(
        transaction_manager: Arc<TransactionManager>,
        storage_manager: Arc<StorageManager>,
        catalog_manager: Arc<RwLock<CatalogManager>>,
    )

Source from the content-addressed store, hash-verified

33 /// * `storage_manager` - Storage manager for this instance
34 /// * `catalog_manager` - Catalog manager for this instance
35 pub fn new(
36 transaction_manager: Arc<TransactionManager>,
37 storage_manager: Arc<StorageManager>,
38 catalog_manager: Arc<RwLock<CatalogManager>>,
39 ) -> Self {
40 let manager = Arc::new(SessionManager::new(
41 transaction_manager,
42 storage_manager,
43 catalog_manager,
44 ));
45
46 Self { manager }
47 }
48
49 /// Get the underlying session manager (for compatibility)
50 pub fn manager(&self) -> Arc<SessionManager> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected