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

Method execute

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

Execute the query and return results Builds and executes the query in one step. # Examples ```no_run # use graphlite_sdk::GraphLite; # let db = GraphLite::open("./mydb")?; # let session = db.session("admin")?; let result = session.query_builder() .match_pattern("(p:Person)") .where_clause("p.age > 25") .return_clause("p.name, p.age") .limit(10) .execute()?; for row in result.rows() { println!(

(&self)

Source from the content-addressed store, hash-verified

326 /// # Ok::<(), graphlite_sdk::Error>(())
327 /// ```
328 pub fn execute(&self) -> Result<QueryResult> {
329 let query = self.build()?;
330 self.session.query(&query)
331 }
332}
333
334impl Session {

Callers 5

mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
runExampleMethod · 0.45

Calls 2

buildMethod · 0.45
queryMethod · 0.45

Tested by

no test coverage detected