Package org.flywaydb.database.spanner
Class SpannerParser
java.lang.Object
org.flywaydb.core.internal.parser.Parser
org.flywaydb.database.spanner.SpannerParser
public class SpannerParser
extends org.flywaydb.core.internal.parser.Parser
-
Nested Class Summary
Nested classes/interfaces inherited from class org.flywaydb.core.internal.parser.Parser
org.flywaydb.core.internal.parser.Parser.ParserSqlStatementIterator
-
Field Summary
Fields inherited from class org.flywaydb.core.internal.parser.Parser
configuration, parsingContext
-
Constructor Summary
ConstructorDescriptionSpannerParser
(org.flywaydb.core.api.configuration.Configuration configuration, org.flywaydb.core.internal.parser.ParsingContext parsingContext) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
adjustBlockDepth
(org.flywaydb.core.internal.parser.ParserContext context, List<org.flywaydb.core.internal.parser.Token> tokens, org.flywaydb.core.internal.parser.Token keyword, org.flywaydb.core.internal.parser.PeekingReader reader) protected Boolean
detectCanExecuteInTransaction
(String simplifiedStatement, List<org.flywaydb.core.internal.parser.Token> keywords) protected char
protected char
protected boolean
shouldAdjustBlockDepth
(org.flywaydb.core.internal.parser.ParserContext context, 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, getAdditionalParsingErrorInfo, getAlternativeStringLiteralQuote, getClosingIdentifierSymbol, getDefaultDelimiter, getLastKeywordIndex, getLastKeywordIndex, getNextStatement, getOpeningIdentifierSymbol, getPreviousToken, getTransactionalDetectionCutoff, getValidKeywords, handleAlternativeStringLiteral, handleCommentDirective, handleDelimiter, handleKeyword, handleMultilineComment, handleStringLiteral, isAlternativeStringLiteral, isCommentDirective, isDelimiter, isKeyword, isLetter, isSingleLineComment, lastTokenIs, lastTokenIsOnLine, parse, parse, readIdentifier, readKeyword, replacePlaceholders, resetDelimiter, shouldDiscard, supportsPeekingMultipleLines, supportsReferencedSqlScripts, tokenAtIndexIs
-
Constructor Details
-
SpannerParser
public SpannerParser(org.flywaydb.core.api.configuration.Configuration configuration, org.flywaydb.core.internal.parser.ParsingContext parsingContext)
-
-
Method Details
-
getIdentifierQuote
protected char getIdentifierQuote()- Overrides:
getIdentifierQuote
in classorg.flywaydb.core.internal.parser.Parser
-
getAlternativeIdentifierQuote
protected char getAlternativeIdentifierQuote()- Overrides:
getAlternativeIdentifierQuote
in classorg.flywaydb.core.internal.parser.Parser
-
detectCanExecuteInTransaction
protected Boolean detectCanExecuteInTransaction(String simplifiedStatement, List<org.flywaydb.core.internal.parser.Token> keywords) - Overrides:
detectCanExecuteInTransaction
in classorg.flywaydb.core.internal.parser.Parser
-
shouldAdjustBlockDepth
protected boolean shouldAdjustBlockDepth(org.flywaydb.core.internal.parser.ParserContext context, List<org.flywaydb.core.internal.parser.Token> tokens, org.flywaydb.core.internal.parser.Token token) - Overrides:
shouldAdjustBlockDepth
in classorg.flywaydb.core.internal.parser.Parser
-
adjustBlockDepth
protected void adjustBlockDepth(org.flywaydb.core.internal.parser.ParserContext context, List<org.flywaydb.core.internal.parser.Token> tokens, org.flywaydb.core.internal.parser.Token keyword, org.flywaydb.core.internal.parser.PeekingReader reader) throws IOException - Overrides:
adjustBlockDepth
in classorg.flywaydb.core.internal.parser.Parser
- Throws:
IOException
-