Expand description
GQL identifier and string-literal quoting helpers (port of Go quote.go).
Functionsยง
- quote_
ident - Validate a GQL identifier. Returns the identifier unchanged when valid,
otherwise
Error::InvalidIdent. - quote_
string - Quote a GQL string literal: rejects ASCII control characters, escapes backslash then single-quote, and wraps the result in single quotes.
- sanitize_
graph_ name - Sanitize a graph name by keeping only
[A-Za-z0-9_-]and dropping every other character (including all non-ASCII). Never fails.