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

Function is_reserved

nodedb-sql/src/reserved.rs:42–45  ·  view source on GitHub ↗

Return `true` if `name` matches a NodeDB reserved keyword (case-insensitive).

(name: &str)

Source from the content-addressed store, hash-verified

40/// Return `true` if `name` matches a NodeDB reserved keyword
41/// (case-insensitive).
42pub fn is_reserved(name: &str) -> bool {
43 let upper = name.to_uppercase();
44 RESERVED_KEYWORDS.contains(&upper.as_str())
45}
46
47/// Validate a raw identifier token extracted from SQL.
48///

Callers

nothing calls this directly

Calls 2

containsMethod · 0.45
as_strMethod · 0.45

Tested by

no test coverage detected