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

Method where_clause

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

Add a WHERE clause condition Can be called multiple times - conditions are AND'ed together. # Arguments `condition` - Condition to add (without the WHERE 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)") .where_clause("p.age > 25") .where_clause("p.name

(mut self, condition: &str)

Source from the content-addressed store, hash-verified

102 /// # Ok::<(), graphlite_sdk::Error>(())
103 /// ```
104 pub fn where_clause(mut self, condition: &str) -> Self {
105 self.where_clauses.push(condition.to_string());
106 self
107 }
108
109 /// Add a WITH clause
110 ///

Callers 3

mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected