MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / parse_start_transaction

Method parse_start_transaction

src/sql-parser/src/parser.rs:8789–8794  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

8787 }
8788
8789 fn parse_start_transaction(&mut self) -> Result<Statement<Raw>, ParserError> {
8790 self.expect_keyword(TRANSACTION)?;
8791 Ok(Statement::StartTransaction(StartTransactionStatement {
8792 modes: self.parse_transaction_modes(false)?,
8793 }))
8794 }
8795
8796 fn parse_begin(&mut self) -> Result<Statement<Raw>, ParserError> {
8797 let _ = self.parse_one_of_keywords(&[TRANSACTION, WORK]);

Callers 1

parse_statement_innerMethod · 0.80

Calls 2

expect_keywordMethod · 0.80

Tested by

no test coverage detected