Skip to main content

is_write_query

Function is_write_query 

Source
pub fn is_write_query(cypher: &str) -> Result<bool, String>
Expand description

Return true if cypher is a write statement (CREATE / MERGE / MATCH…SET / MATCH…DELETE). Returns Err only when the string fails to lex.

Used by the HTTP server to dispatch to the write lock without a full parse.