Return true if `s` is a simple SQL identifier (letters, digits, underscores).
(s: &str)
| 171 | |
| 172 | /// Return true if `s` is a simple SQL identifier (letters, digits, underscores). |
| 173 | fn 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 | /// |
no test coverage detected