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

Method with_optimization

graphlite/src/plan/trace.rs:1061–1069  ·  view source on GitHub ↗

Create metadata with optimization info

(optimization: String)

Source from the content-addressed store, hash-verified

1059
1060 /// Create metadata with optimization info
1061 pub fn with_optimization(optimization: String) -> Self {
1062 Self {
1063 optimization_applied: Some(optimization),
1064 rule_name: None,
1065 variables_in_scope: Vec::new(),
1066 estimated_rows: None,
1067 estimated_cost: None,
1068 }
1069 }
1070
1071 /// Create metadata with cost estimates
1072 pub fn with_estimates(rows: usize, cost: f64) -> Self {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected