Package org.flywaydb.database.sqlserver
Class SQLServerParser
- java.lang.Object
-
- org.flywaydb.core.internal.parser.Parser
-
- org.flywaydb.database.sqlserver.SQLServerParser
-
public class SQLServerParser extends org.flywaydb.core.internal.parser.Parser
-
-
Constructor Summary
Constructors Constructor Description SQLServerParser(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 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)
protected java.lang.Boolean
detectCanExecuteInTransaction(java.lang.String simplifiedStatement, java.util.List<org.flywaydb.core.internal.parser.Token> keywords)
protected char
getClosingIdentifierSymbol()
protected org.flywaydb.core.internal.sqlscript.Delimiter
getDefaultDelimiter()
protected char
getOpeningIdentifierSymbol()
protected int
getTransactionalDetectionCutoff()
protected boolean
isDelimiter(java.lang.String peek, org.flywaydb.core.internal.parser.ParserContext context, int col, int colIgnoringWhitepace)
protected java.lang.String
readKeyword(org.flywaydb.core.internal.parser.PeekingReader reader, org.flywaydb.core.internal.sqlscript.Delimiter delimiter, org.flywaydb.core.internal.parser.ParserContext context)
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)
-
Methods inherited from class org.flywaydb.core.internal.parser.Parser
adjustDelimiter, createStatement, detectStatementType, doTokensMatchPattern, getAlternativeIdentifierQuote, getAlternativeStringLiteralQuote, getIdentifierQuote, getLastKeywordIndex, getLastKeywordIndex, getNextStatement, getPreviousToken, getValidKeywords, handleAlternativeStringLiteral, handleCommentDirective, handleDelimiter, handleKeyword, handleStringLiteral, isAlternativeStringLiteral, isCommentDirective, isKeyword, isLetter, isSingleLineComment, lastTokenIs, lastTokenIsOnLine, parse, readIdentifier, replacePlaceholders, resetDelimiter, shouldDiscard, supportsPeekingMultipleLines, tokenAtIndexIs
-
-
-
-
Method Detail
-
getDefaultDelimiter
protected org.flywaydb.core.internal.sqlscript.Delimiter getDefaultDelimiter()
- Overrides:
getDefaultDelimiter
in classorg.flywaydb.core.internal.parser.Parser
-
isDelimiter
protected boolean isDelimiter(java.lang.String peek, org.flywaydb.core.internal.parser.ParserContext context, int col, int colIgnoringWhitepace)
- Overrides:
isDelimiter
in classorg.flywaydb.core.internal.parser.Parser
-
readKeyword
protected java.lang.String readKeyword(org.flywaydb.core.internal.parser.PeekingReader reader, org.flywaydb.core.internal.sqlscript.Delimiter delimiter, org.flywaydb.core.internal.parser.ParserContext context) throws java.io.IOException
- Overrides:
readKeyword
in classorg.flywaydb.core.internal.parser.Parser
- Throws:
java.io.IOException
-
detectCanExecuteInTransaction
protected java.lang.Boolean detectCanExecuteInTransaction(java.lang.String simplifiedStatement, java.util.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, java.util.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, java.util.List<org.flywaydb.core.internal.parser.Token> tokens, org.flywaydb.core.internal.parser.Token keyword, org.flywaydb.core.internal.parser.PeekingReader reader) throws java.io.IOException
- Overrides:
adjustBlockDepth
in classorg.flywaydb.core.internal.parser.Parser
- Throws:
java.io.IOException
-
getTransactionalDetectionCutoff
protected int getTransactionalDetectionCutoff()
- Overrides:
getTransactionalDetectionCutoff
in classorg.flywaydb.core.internal.parser.Parser
-
getOpeningIdentifierSymbol
protected char getOpeningIdentifierSymbol()
- Overrides:
getOpeningIdentifierSymbol
in classorg.flywaydb.core.internal.parser.Parser
-
getClosingIdentifierSymbol
protected char getClosingIdentifierSymbol()
- Overrides:
getClosingIdentifierSymbol
in classorg.flywaydb.core.internal.parser.Parser
-
-