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

Method with_storage

graphlite/src/functions/function_trait.rs:63–79  ·  view source on GitHub ↗

Create a new function context with storage access

(
        rows: Vec<Row>,
        variables: HashMap<String, Value>,
        arguments: Vec<Value>,
        storage_manager: Option<Arc<crate::storage::StorageManager>>,
        current_graph: Option<

Source from the content-addressed store, hash-verified

61
62 /// Create a new function context with storage access
63 pub fn with_storage(
64 rows: Vec<Row>,
65 variables: HashMap<String, Value>,
66 arguments: Vec<Value>,
67 storage_manager: Option<Arc<crate::storage::StorageManager>>,
68 current_graph: Option<Arc<crate::storage::GraphCache>>,
69 graph_name: Option<String>,
70 ) -> Self {
71 Self {
72 rows,
73 variables,
74 arguments,
75 storage_manager,
76 current_graph,
77 graph_name,
78 }
79 }
80
81 /// Get a specific argument by index
82 pub fn get_argument(&self, index: usize) -> FunctionResult<&Value> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected