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

Function rollback_statement

graphlite/src/ast/parser.rs:4613–4624  ·  view source on GitHub ↗

Parse ROLLBACK [WORK]

(tokens: &[Token])

Source from the content-addressed store, hash-verified

4611
4612/// Parse ROLLBACK [WORK]
4613fn rollback_statement(tokens: &[Token]) -> IResult<&[Token], RollbackStatement> {
4614 map(
4615 tuple((
4616 expect_token(Token::Rollback),
4617 opt(expect_token(Token::Work)),
4618 )),
4619 |(_, work)| RollbackStatement {
4620 work: work.is_some(),
4621 location: Location::default(),
4622 },
4623 )(tokens)
4624}
4625
4626/// Parse SET TRANSACTION characteristics
4627fn set_transaction_characteristics_statement(

Callers

nothing calls this directly

Calls 1

expect_tokenFunction · 0.85

Tested by

no test coverage detected