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

Function direction_after

nodedb-sql/src/ddl_ast/graph_parse/helpers.rs:104–114  ·  view source on GitHub ↗
(toks: &[Tok<'_>])

Source from the content-addressed store, hash-verified

102}
103
104pub(super) fn direction_after(toks: &[Tok<'_>]) -> GraphDirection {
105 match word_after(toks, "DIRECTION")
106 .as_deref()
107 .map(str::to_ascii_uppercase)
108 .as_deref()
109 {
110 Some("IN") => GraphDirection::In,
111 Some("BOTH") => GraphDirection::Both,
112 _ => GraphDirection::Out,
113 }
114}
115
116pub(super) fn extract_properties(toks: &[Tok<'_>]) -> GraphProperties {
117 let Some(pos) = find_keyword(toks, "PROPERTIES") else {

Callers 2

parse_traverseFunction · 0.85
parse_neighborsFunction · 0.85

Calls 1

word_afterFunction · 0.85

Tested by

no test coverage detected