MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / has_brace_outside_literals

Function has_brace_outside_literals

nodedb-sql/src/parser/preprocess/lex.rs:254–256  ·  view source on GitHub ↗

Return `true` if `{` appears inside any `Text` segment of `sql`.

(sql: &str)

Source from the content-addressed store, hash-verified

252
253/// Return `true` if `{` appears inside any `Text` segment of `sql`.
254pub fn has_brace_outside_literals(sql: &str) -> bool {
255 has_operator_outside_literals(sql, "{")
256}
257
258/// Return the byte position (relative to `sql`) of the first case-insensitive
259/// occurrence of the keyword `kw` that falls inside a `Text` segment. Returns

Callers 1

preprocessFunction · 0.85

Calls 1

Tested by

no test coverage detected