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

Method execute

sdk-rust/src/connection.rs:201–206  ·  view source on GitHub ↗

Execute a statement without returning results This is useful for DDL statements (CREATE SCHEMA, CREATE GRAPH, etc.) and DML statements where you don't need the results. # Arguments `statement` - GQL statement to execute # Examples ```no_run # use graphlite_sdk::GraphLite; # let db = GraphLite::open("./mydb")?; let session = db.session("admin")?; // Create a node session.execute("CREATE (p:Pe

(&self, statement: &str)

Source from the content-addressed store, hash-verified

199 /// # Ok::<(), graphlite_sdk::Error>(())
200 /// ```
201 pub fn execute(&self, statement: &str) -> Result<()> {
202 self.coordinator
203 .process_query(statement, &self.id)
204 .map_err(|e| Error::Query(format!("Execute failed: {}", e)))?;
205 Ok(())
206 }
207
208 /// Begin a new transaction
209 ///

Callers

nothing calls this directly

Calls 2

QueryEnum · 0.85
process_queryMethod · 0.80

Tested by

no test coverage detected