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

Function reindex_statement

graphlite/src/ast/parser.rs:4999–5012  ·  view source on GitHub ↗

Parse REINDEX statement Syntax: REINDEX index_name

(tokens: &[Token])

Source from the content-addressed store, hash-verified

4997/// Parse REINDEX statement
4998/// Syntax: REINDEX index_name
4999fn reindex_statement(tokens: &[Token]) -> IResult<&[Token], ReindexStatement> {
5000 let (tokens, _) = expect_identifier("REINDEX")(tokens)?;
5001
5002 // Parse index name
5003 let (tokens, name) = identifier(tokens)?;
5004
5005 Ok((
5006 tokens,
5007 ReindexStatement {
5008 name,
5009 location: Location::default(),
5010 },
5011 ))
5012}
5013
5014/// Parse graph index type specifier
5015fn graph_index_type(tokens: &[Token]) -> IResult<&[Token], GraphIndexTypeSpecifier> {

Callers

nothing calls this directly

Calls 2

expect_identifierFunction · 0.85
identifierFunction · 0.70

Tested by

no test coverage detected