Skip to main content

execute

Function execute 

Source
pub fn execute(
    backend: &SqliteGraphBackend,
    query: &CypherQuery,
) -> Result<Value, String>
Expand description

Execute a parsed CypherQuery against a SQLite-backed graph.

Returns a JSON object whose shape depends on the statement kind:

  • Match: {"results": [...], "count": N}
  • CreateNode / CreateEdge: {"id": <new_id>}
  • Set: {"updated": N}
  • Delete: {"deleted": N}

ยงErrors

Returns an error if execution fails (parse-time errors are surfaced via parse).