Class SnowflakeParser

java.lang.Object
org.flywaydb.core.internal.parser.Parser
org.flywaydb.database.snowflake.SnowflakeParser

public class SnowflakeParser 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
    SnowflakeParser(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 org.flywaydb.core.internal.parser.Token
    handleAlternativeStringLiteral(org.flywaydb.core.internal.parser.PeekingReader reader, org.flywaydb.core.internal.parser.ParserContext context, int pos, int line, int col)
     
    protected org.flywaydb.core.internal.parser.Token
    handleStringLiteral(org.flywaydb.core.internal.parser.PeekingReader reader, org.flywaydb.core.internal.parser.ParserContext context, int pos, int line, int col)
     
    protected boolean
     
    protected boolean
    isSingleLineComment(String peek, org.flywaydb.core.internal.parser.ParserContext context, int col)
     

    Methods inherited from class org.flywaydb.core.internal.parser.Parser

    adjustDelimiter, createStatement, detectCanExecuteInTransaction, detectStatementType, doTokensMatchPattern, getAdditionalParsingErrorInfo, getAlternativeIdentifierQuote, getAlternativeStringLiteralQuote, getClosingIdentifierSymbol, getDefaultDelimiter, getIdentifierQuote, getLastKeywordIndex, getLastKeywordIndex, getNextStatement, getOpeningIdentifierSymbol, getPreviousToken, getTransactionalDetectionCutoff, getValidKeywords, handleCommentDirective, handleDelimiter, handleKeyword, handleMultilineComment, isCommentDirective, isDelimiter, isKeyword, isLetter, lastTokenIs, lastTokenIsOnLine, parse, parse, readIdentifier, readKeyword, replacePlaceholders, resetDelimiter, shouldAdjustBlockDepth, shouldDiscard, supportsPeekingMultipleLines, supportsReferencedSqlScripts, tokenAtIndexIs

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SnowflakeParser

      public SnowflakeParser(org.flywaydb.core.api.configuration.Configuration configuration, org.flywaydb.core.internal.parser.ParsingContext parsingContext)
  • Method Details

    • isAlternativeStringLiteral

      protected boolean isAlternativeStringLiteral(String peek)
      Overrides:
      isAlternativeStringLiteral in class org.flywaydb.core.internal.parser.Parser
    • handleStringLiteral

      protected org.flywaydb.core.internal.parser.Token handleStringLiteral(org.flywaydb.core.internal.parser.PeekingReader reader, org.flywaydb.core.internal.parser.ParserContext context, int pos, int line, int col) throws IOException
      Overrides:
      handleStringLiteral in class org.flywaydb.core.internal.parser.Parser
      Throws:
      IOException
    • handleAlternativeStringLiteral

      protected org.flywaydb.core.internal.parser.Token handleAlternativeStringLiteral(org.flywaydb.core.internal.parser.PeekingReader reader, org.flywaydb.core.internal.parser.ParserContext context, int pos, int line, int col) throws IOException
      Overrides:
      handleAlternativeStringLiteral in class org.flywaydb.core.internal.parser.Parser
      Throws:
      IOException
    • 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
    • isSingleLineComment

      protected boolean isSingleLineComment(String peek, org.flywaydb.core.internal.parser.ParserContext context, int col)
      Overrides:
      isSingleLineComment in class org.flywaydb.core.internal.parser.Parser