Parse COMMIT [WORK]
(tokens: &[Token])
| 4600 | |
| 4601 | /// Parse COMMIT [WORK] |
| 4602 | fn commit_statement(tokens: &[Token]) -> IResult<&[Token], CommitStatement> { |
| 4603 | map( |
| 4604 | tuple((expect_token(Token::Commit), opt(expect_token(Token::Work)))), |
| 4605 | |(_, work)| CommitStatement { |
| 4606 | work: work.is_some(), |
| 4607 | location: Location::default(), |
| 4608 | }, |
| 4609 | )(tokens) |
| 4610 | } |
| 4611 | |
| 4612 | /// Parse ROLLBACK [WORK] |
| 4613 | fn rollback_statement(tokens: &[Token]) -> IResult<&[Token], RollbackStatement> { |
nothing calls this directly
no test coverage detected