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

    Constructors
    Constructor
    Description
    SQLServerParser(org.flywaydb.core.api.configuration.Configuration configuration, org.flywaydb.core.internal.parser.ParsingContext parsingContext)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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)
     
    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, 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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 class org.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 class org.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 class org.flywaydb.core.internal.parser.Parser
      Throws:
      IOException
    • detectCanExecuteInTransaction

      protected Boolean detectCanExecuteInTransaction(String simplifiedStatement, List<org.flywaydb.core.internal.parser.Token> keywords)
      Overrides:
      detectCanExecuteInTransaction in class org.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 class org.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 class org.flywaydb.core.internal.parser.Parser
      Throws:
      IOException
    • getTransactionalDetectionCutoff

      protected int getTransactionalDetectionCutoff()
      Overrides:
      getTransactionalDetectionCutoff in class org.flywaydb.core.internal.parser.Parser
    • getOpeningIdentifierSymbol

      protected char getOpeningIdentifierSymbol()
      Overrides:
      getOpeningIdentifierSymbol in class org.flywaydb.core.internal.parser.Parser
    • getClosingIdentifierSymbol

      protected char getClosingIdentifierSymbol()
      Overrides:
      getClosingIdentifierSymbol in class org.flywaydb.core.internal.parser.Parser