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

Function truncate_graph_statement

graphlite/src/ast/parser.rs:2787–2799  ·  view source on GitHub ↗

Parse TRUNCATE GRAPH statement

(tokens: &[Token])

Source from the content-addressed store, hash-verified

2785
2786/// Parse TRUNCATE GRAPH statement
2787fn truncate_graph_statement(tokens: &[Token]) -> IResult<&[Token], TruncateGraphStatement> {
2788 map(
2789 tuple((
2790 expect_token(Token::Truncate),
2791 expect_token(Token::Graph),
2792 catalog_path,
2793 )),
2794 |(_, _, graph_path)| TruncateGraphStatement {
2795 graph_path,
2796 location: Location::default(),
2797 },
2798 )(tokens)
2799}
2800
2801/// Parse CLEAR GRAPH statement
2802fn clear_graph_statement(tokens: &[Token]) -> IResult<&[Token], ClearGraphStatement> {

Callers

nothing calls this directly

Calls 1

expect_tokenFunction · 0.85

Tested by

no test coverage detected