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

Function clear_graph_statement

graphlite/src/ast/parser.rs:2802–2814  ·  view source on GitHub ↗

Parse CLEAR GRAPH statement

(tokens: &[Token])

Source from the content-addressed store, hash-verified

2800
2801/// Parse CLEAR GRAPH statement
2802fn clear_graph_statement(tokens: &[Token]) -> IResult<&[Token], ClearGraphStatement> {
2803 map(
2804 tuple((
2805 expect_token(Token::Clear),
2806 expect_token(Token::Graph),
2807 opt(catalog_path),
2808 )),
2809 |(_, _, graph_path)| ClearGraphStatement {
2810 graph_path,
2811 location: Location::default(),
2812 },
2813 )(tokens)
2814}
2815
2816/// Parse CREATE GRAPH TYPE statement
2817fn create_graph_type_statement(tokens: &[Token]) -> IResult<&[Token], CreateGraphTypeStatement> {

Callers

nothing calls this directly

Calls 1

expect_tokenFunction · 0.85

Tested by

no test coverage detected