MCPcopy Create free account
hub / github.com/questdb/questdb / parseUpdate

Method parseUpdate

core/src/main/java/io/questdb/griffin/SqlParser.java:4581–4593  ·  view source on GitHub ↗
(
            GenericLexer lexer,
            SqlParserCallback sqlParserCallback,
            @Nullable LowerCaseCharSequenceObjHashMap<ExpressionNode> decls
    )

Source from the content-addressed store, hash-verified

4579 }
4580
4581 private ExecutionModel parseUpdate(
4582 GenericLexer lexer,
4583 SqlParserCallback sqlParserCallback,
4584 @Nullable LowerCaseCharSequenceObjHashMap<ExpressionNode> decls
4585 ) throws SqlException {
4586 lexer.unparseLast();
4587 final IQueryModel model = parseDmlUpdate(lexer, sqlParserCallback, decls);
4588 final CharSequence tok = optTok(lexer);
4589 if (tok == null || Chars.equals(tok, ';')) {
4590 return model;
4591 }
4592 throw errUnexpected(lexer, tok);
4593 }
4594
4595 private void parseUpdateClause(
4596 GenericLexer lexer,

Callers 3

parseExplainMethod · 0.95
parseWithMethod · 0.95
parseMethod · 0.95

Calls 5

parseDmlUpdateMethod · 0.95
optTokMethod · 0.95
equalsMethod · 0.95
errUnexpectedMethod · 0.95
unparseLastMethod · 0.80

Tested by

no test coverage detected