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

Function is_simple_identifier

nodedb/src/control/trigger/when_parse.rs:173–177  ·  view source on GitHub ↗

Return true if `s` is a simple SQL identifier (letters, digits, underscores).

(s: &str)

Source from the content-addressed store, hash-verified

171
172/// Return true if `s` is a simple SQL identifier (letters, digits, underscores).
173fn is_simple_identifier(s: &str) -> bool {
174 !s.is_empty()
175 && s.chars()
176 .all(|c| c.is_ascii_alphanumeric() || c == '_' || c == '.')
177}
178
179/// Parse a SQL literal value into a `nodedb_types::Value`.
180///

Callers 1

try_parse_when_to_filterFunction · 0.85

Calls 2

is_emptyMethod · 0.45
allMethod · 0.45

Tested by

no test coverage detected