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 voidadjustBlockDepth(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 BooleandetectCanExecuteInTransaction(String simplifiedStatement, List<org.flywaydb.core.internal.parser.Token> keywords) protected charprotected org.flywaydb.core.internal.sqlscript.Delimiterprotected charprotected intprotected booleanisDelimiter(String peek, org.flywaydb.core.internal.parser.ParserContext context, int col, int colIgnoringWhitespace) protected StringreadKeyword(org.flywaydb.core.internal.parser.PeekingReader reader, org.flywaydb.core.internal.sqlscript.Delimiter delimiter, org.flywaydb.core.internal.parser.ParserContext context) protected booleanshouldAdjustBlockDepth(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:
getDefaultDelimiterin classorg.flywaydb.core.internal.parser.Parser
-
isDelimiter
protected boolean isDelimiter(String peek, org.flywaydb.core.internal.parser.ParserContext context, int col, int colIgnoringWhitespace) - Overrides:
isDelimiterin 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:
readKeywordin classorg.flywaydb.core.internal.parser.Parser- Throws:
IOException
-
detectCanExecuteInTransaction
protected Boolean detectCanExecuteInTransaction(String simplifiedStatement, List<org.flywaydb.core.internal.parser.Token> keywords) - Overrides:
detectCanExecuteInTransactionin 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:
shouldAdjustBlockDepthin 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:
adjustBlockDepthin classorg.flywaydb.core.internal.parser.Parser- Throws:
IOException
-
getTransactionalDetectionCutoff
protected int getTransactionalDetectionCutoff()- Overrides:
getTransactionalDetectionCutoffin classorg.flywaydb.core.internal.parser.Parser
-
getOpeningIdentifierSymbol
protected char getOpeningIdentifierSymbol()- Overrides:
getOpeningIdentifierSymbolin classorg.flywaydb.core.internal.parser.Parser
-
getClosingIdentifierSymbol
protected char getClosingIdentifierSymbol()- Overrides:
getClosingIdentifierSymbolin classorg.flywaydb.core.internal.parser.Parser
-