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

Function reason_for

nodedb-sql/src/reserved.rs:29–38  ·  view source on GitHub ↗
(upper: &str)

Source from the content-addressed store, hash-verified

27];
28
29fn reason_for(upper: &str) -> &'static str {
30 match upper {
31 "GRAPH" | "MATCH" | "OPTIONAL" => "graph dispatch keyword",
32 "UPSERT" => "preprocess rewrite keyword",
33 "UNDROP" => "DDL dispatch keyword",
34 "PURGE" | "CASCADE" => "DROP modifier keyword",
35 "SEARCH" | "CRDT" => "DSL dispatch keyword",
36 _ => "reserved by NodeDB",
37 }
38}
39
40/// Return `true` if `name` matches a NodeDB reserved keyword
41/// (case-insensitive).

Callers 1

check_identifierFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected