Skip to main content

validate_read_only

Function validate_read_only 

Source
pub fn validate_read_only(query: &CypherQuery) -> Result<(), String>
Expand description

Validate that a query AST contains only read clauses.

Rejects any query that contains CREATE, MERGE, DELETE, SET, REMOVE, or schema commands.

ยงErrors

Returns Err(message) describing the first write clause found. Used to enforce read-only access for time-travel queries (VERSION AS OF / TIMESTAMP AS OF).