(upper: &str)
| 27 | ]; |
| 28 | |
| 29 | fn 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). |