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

Function load_database

gql-cli/src/cli/gqlcli.rs:321–327  ·  view source on GitHub ↗

Load an existing database

(path: &PathBuf)

Source from the content-addressed store, hash-verified

319
320/// Load an existing database
321fn load_database(path: &PathBuf) -> Result<Arc<QueryCoordinator>, Box<dyn std::error::Error>> {
322 // Use simplified API - all component initialization is handled internally
323 let coordinator = QueryCoordinator::from_path(path)
324 .map_err(|e| -> Box<dyn std::error::Error> { e.into() })?;
325
326 Ok(coordinator)
327}
328
329/// Authenticate a user and create a session
330fn authenticate(

Callers 2

handle_gqlFunction · 0.85
handle_queryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected