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<
| 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> { |
nothing calls this directly
no outgoing calls
no test coverage detected