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
-
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
ConstructorsConstructorDescriptionSQLServerParser
(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 org.flywaydb.core.internal.sqlscript.Delimiter
protected char
protected int
protected boolean
isDelimiter
(String peek, org.flywaydb.core.internal.parser.ParserContext context, int col, int colIgnoringWhitespace) protected 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, 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, getAlternativeIdentifierQuote, getAlternativeStringLiteralQuote, getIdentifierQuote, getLastKeywordIndex, getLastKeywordIndex, getNextStatement, getPreviousToken, getValidKeywords, handleAlternativeStringLiteral, handleCommentDirective, handleDelimiter, handleKeyword, handleMultilineComment, handleStringLiteral, isAlternativeStringLiteral, isCommentDirective, isKeyword, isLetter, isSingleLineComment, lastTokenIs, lastTokenIsOnLine, parse, parse, readIdentifier, replacePlaceholders, resetDelimiter, shouldDiscard, supportsPeekingMultipleLines, supportsReferencedSqlScripts, tokenAtIndexIs
-
Constructor Details
-
SQLServerParser
public SQLServerParser(org.flywaydb.core.api.configuration.Configuration configuration, org.flywaydb.core.internal.parser.ParsingContext parsingContext)
-
-
Method Details
-
getDefaultDelimiter
protected org.flywaydb.core.internal.sqlscript.Delimiter getDefaultDelimiter()- Overrides:
getDefaultDelimiter
in classorg.flywaydb.core.internal.parser.Parser
-
isDelimiter
protected boolean isDelimiter(String peek, org.flywaydb.core.internal.parser.ParserContext context, int col, int colIgnoringWhitespace) - Overrides:
isDelimiter
in classorg.flywaydb.core.internal.parser.Parser
-
readKeyword
protected String readKeyword(org.flywaydb.core.internal.parser.PeekingReader reader, org.flywaydb.core.internal.sqlscript.Delimiter delimiter, org.flywaydb.core.internal.parser.ParserContext context) throws IOException - Overrides:
readKeyword
in classorg.flywaydb.core.internal.parser.Parser
- Throws:
IOException
-
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
-
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
-