Package org.flywaydb.database.bigquery
Class BigQueryParser
- java.lang.Object
-
- org.flywaydb.core.internal.parser.Parser
-
- org.flywaydb.database.bigquery.BigQueryParser
-
public class BigQueryParser extends org.flywaydb.core.internal.parser.Parser
-
-
Constructor Summary
Constructors Constructor Description BigQueryParser(org.flywaydb.core.api.configuration.Configuration configuration, org.flywaydb.core.internal.parser.ParsingContext parsingContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidadjustBlockDepth(org.flywaydb.core.internal.parser.ParserContext context, java.util.List<org.flywaydb.core.internal.parser.Token> tokens, org.flywaydb.core.internal.parser.Token keyword, org.flywaydb.core.internal.parser.PeekingReader reader)protected java.lang.BooleandetectCanExecuteInTransaction(java.lang.String simplifiedStatement, java.util.List<org.flywaydb.core.internal.parser.Token> keywords)protected chargetAlternativeStringLiteralQuote()protected chargetIdentifierQuote()protected java.util.Set<java.lang.String>getValidKeywords()protected org.flywaydb.core.internal.parser.TokenhandleAlternativeStringLiteral(org.flywaydb.core.internal.parser.PeekingReader reader, org.flywaydb.core.internal.parser.ParserContext context, int pos, int line, int col)protected org.flywaydb.core.internal.parser.TokenhandleStringLiteral(org.flywaydb.core.internal.parser.PeekingReader reader, org.flywaydb.core.internal.parser.ParserContext context, int pos, int line, int col)protected booleanisSingleLineComment(java.lang.String peek, org.flywaydb.core.internal.parser.ParserContext context, int col)protected booleanshouldAdjustBlockDepth(org.flywaydb.core.internal.parser.ParserContext context, java.util.List<org.flywaydb.core.internal.parser.Token> tokens, org.flywaydb.core.internal.parser.Token token)-
Methods inherited from class org.flywaydb.core.internal.parser.Parser
adjustDelimiter, createStatement, detectStatementType, doTokensMatchPattern, getAlternativeIdentifierQuote, getClosingIdentifierSymbol, getDefaultDelimiter, getLastKeywordIndex, getLastKeywordIndex, getNextStatement, getOpeningIdentifierSymbol, getPreviousToken, getTransactionalDetectionCutoff, handleCommentDirective, handleDelimiter, handleKeyword, isAlternativeStringLiteral, isCommentDirective, isDelimiter, isKeyword, isLetter, lastTokenIs, lastTokenIsOnLine, parse, parse, readIdentifier, readKeyword, replacePlaceholders, resetDelimiter, shouldDiscard, supportsPeekingMultipleLines, tokenAtIndexIs
-
-
-
-
Method Detail
-
getValidKeywords
protected java.util.Set<java.lang.String> getValidKeywords()
- Overrides:
getValidKeywordsin classorg.flywaydb.core.internal.parser.Parser
-
getIdentifierQuote
protected char getIdentifierQuote()
- Overrides:
getIdentifierQuotein classorg.flywaydb.core.internal.parser.Parser
-
getAlternativeStringLiteralQuote
protected char getAlternativeStringLiteralQuote()
- Overrides:
getAlternativeStringLiteralQuotein classorg.flywaydb.core.internal.parser.Parser
-
isSingleLineComment
protected boolean isSingleLineComment(java.lang.String peek, org.flywaydb.core.internal.parser.ParserContext context, int col)- Overrides:
isSingleLineCommentin classorg.flywaydb.core.internal.parser.Parser
-
detectCanExecuteInTransaction
protected java.lang.Boolean detectCanExecuteInTransaction(java.lang.String simplifiedStatement, java.util.List<org.flywaydb.core.internal.parser.Token> keywords)- Overrides:
detectCanExecuteInTransactionin classorg.flywaydb.core.internal.parser.Parser
-
handleStringLiteral
protected org.flywaydb.core.internal.parser.Token handleStringLiteral(org.flywaydb.core.internal.parser.PeekingReader reader, org.flywaydb.core.internal.parser.ParserContext context, int pos, int line, int col) throws java.io.IOException- Overrides:
handleStringLiteralin classorg.flywaydb.core.internal.parser.Parser- Throws:
java.io.IOException
-
handleAlternativeStringLiteral
protected org.flywaydb.core.internal.parser.Token handleAlternativeStringLiteral(org.flywaydb.core.internal.parser.PeekingReader reader, org.flywaydb.core.internal.parser.ParserContext context, int pos, int line, int col) throws java.io.IOException- Overrides:
handleAlternativeStringLiteralin classorg.flywaydb.core.internal.parser.Parser- Throws:
java.io.IOException
-
shouldAdjustBlockDepth
protected boolean shouldAdjustBlockDepth(org.flywaydb.core.internal.parser.ParserContext context, java.util.List<org.flywaydb.core.internal.parser.Token> tokens, org.flywaydb.core.internal.parser.Token token)- Overrides:
shouldAdjustBlockDepthin classorg.flywaydb.core.internal.parser.Parser
-
adjustBlockDepth
protected void adjustBlockDepth(org.flywaydb.core.internal.parser.ParserContext context, java.util.List<org.flywaydb.core.internal.parser.Token> tokens, org.flywaydb.core.internal.parser.Token keyword, org.flywaydb.core.internal.parser.PeekingReader reader)- Overrides:
adjustBlockDepthin classorg.flywaydb.core.internal.parser.Parser
-
-