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

Function parse_priority_token

nodedb-sql/src/ddl_ast/parse/trigger.rs:295–306  ·  view source on GitHub ↗
(tokens_orig: &[&str], tokens_upper: &[String], i: &mut usize)

Source from the content-addressed store, hash-verified

293}
294
295fn parse_priority_token(tokens_orig: &[&str], tokens_upper: &[String], i: &mut usize) -> i32 {
296 if *i >= tokens_upper.len() || tokens_upper[*i] != "PRIORITY" {
297 return 0;
298 }
299 *i += 1;
300 if let Some(val) = tokens_orig.get(*i).and_then(|s| s.parse::<i32>().ok()) {
301 *i += 1;
302 val
303 } else {
304 0
305 }
306}
307
308fn parse_security_token(tokens_upper: &[String], i: &mut usize) -> String {
309 if *i >= tokens_upper.len() || tokens_upper[*i] != "SECURITY" {

Callers 1

parse_create_triggerFunction · 0.85

Calls 3

lenMethod · 0.45
getMethod · 0.45
okMethod · 0.45

Tested by

no test coverage detected