MCPcopy Create free account
hub / github.com/GraphLite-AI/GraphLite / graph_pattern

Function graph_pattern

graphlite/src/ast/parser.rs:4079–4091  ·  view source on GitHub ↗

Parse graph pattern - a single node or path pattern for INSERT

(tokens: &[Token])

Source from the content-addressed store, hash-verified

4077
4078/// Parse graph pattern - a single node or path pattern for INSERT
4079fn graph_pattern(tokens: &[Token]) -> IResult<&[Token], PathPattern> {
4080 alt((
4081 // Try full path pattern first (node-edge-node sequences)
4082 path_pattern,
4083 // If that fails, try single node pattern
4084 map(node_pattern, |node| PathPattern {
4085 assignment: None,
4086 path_type: None,
4087 elements: vec![PatternElement::Node(node)],
4088 location: Location::default(),
4089 }),
4090 ))(tokens)
4091}
4092
4093/// Parse SET statement: SET set_item [, set_item]*
4094fn set_statement(tokens: &[Token]) -> IResult<&[Token], SetStatement> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected