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

Method with_clause

sdk-rust/src/query.rs:130–133  ·  view source on GitHub ↗

Add a WITH clause WITH clauses are used for query chaining and intermediate results. # Arguments `clause` - WITH clause content (without the WITH keyword) # Examples ```no_run # use graphlite_sdk::GraphLite; # let db = GraphLite::open("./mydb")?; # let session = db.session("admin")?; session.query_builder() .match_pattern("(p:Person)") .with_clause("p, p.age as age") .where_clause("age > 25")

(mut self, clause: &str)

Source from the content-addressed store, hash-verified

128 /// # Ok::<(), graphlite_sdk::Error>(())
129 /// ```
130 pub fn with_clause(mut self, clause: &str) -> Self {
131 self.with_clauses.push(clause.to_string());
132 self
133 }
134
135 /// Set the RETURN clause
136 ///

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected