fn parse_prepare(&mut self) -> Result<Statement<Raw>, ParserError> {
        let name = self.parse_identifier()?;
        self.expect_keyword(AS)?;
        let pos = self.peek_pos();
        //
        let stmt = match self.parse_statement()? {
            stmt @ Statement::Select(_)
            | stmt @ Statement::Insert(_)
            | stmt @ Statement::Delete(_)
            | stmt @ Statement::Update(_) => stmt,
            _ => return parser_err!(self, pos, "unpreparable statement"),
        };
        Ok(Statement::Prepare(PrepareStatement {
            name,
            stmt: Box::new(stmt),
        }))
    }
/// Parse a `PREPARE` statement, assuming that the `PREPARE` token
/// has already been consumed.
Parse a `PREPARE` statement, assuming that the `PREPARE` token
has already been consumed.
Parse a ` PREPARE ` statement assuming that the ` PREPARE ` token has already been consumed .
fn parse_prepare(&mut self) -> Result<Statement<Raw>, ParserError> {
        let name = self.parse_identifier()?;
        self.expect_keyword(AS)?;
        let pos = self.peek_pos();
        //
        let stmt = match self.parse_statement()? {
            stmt @ Statement::Select(_)
            | stmt @ Statement::Insert(_)
            | stmt @ Statement::Delete(_)
            | stmt @ Statement::Update(_) => stmt,
            _ => return parser_err!(self, pos, "unpreparable statement"),
        };
        Ok(Statement::Prepare(PrepareStatement {
            name,
            stmt: Box::new(stmt),
        }))
    }
fn parse_prepare ( & mut self ) -> Result < Statement < Raw > , ParserError > { let name = self . parse_identifier ( ) ? ; self . expect_keyword ( AS ) ? ; let pos = self . peek_pos ( ) ; // let stmt = match self . parse_statement ( ) ? { stmt @ Statement :: Select ( _ ) | stmt @ Statement :: Insert ( _ ) | stmt @ Statement :: Delete ( _ ) | stmt @ Statement :: Update ( _ ) => stmt , _ => return parser_err ! ( self pos " " ) , } ; Ok ( Statement :: Prepare ( PrepareStatement { name , stmt : Box :: new ( stmt ) , } ) ) }
Parse a `PREPARE` statement, assuming that the `PREPARE` token
has already been consumed.
Parse a ` PREPARE ` statement assuming that the ` PREPARE ` token has already been consumed .
&mut self
&mut self