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)
| 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 | /// |
nothing calls this directly
no test coverage detected