Class SQLiteParser
- java.lang.Object
-
- migratedb.v1.core.internal.parser.BaseParser
-
- migratedb.v1.core.internal.database.sqlite.SQLiteParser
-
- All Implemented Interfaces:
Parser
public class SQLiteParser extends BaseParser
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class migratedb.v1.core.internal.parser.BaseParser
BaseParser.ParserSqlStatementIterator
-
-
Field Summary
-
Fields inherited from class migratedb.v1.core.internal.parser.BaseParser
LOG
-
-
Constructor Summary
Constructors Constructor Description SQLiteParser(Configuration configuration, ParsingContext parsingContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidadjustBlockDepth(ParserContext context, List<Token> tokens, Token keyword, PeekingReader reader)protected BooleandetectCanExecuteInTransaction(String simplifiedStatement, List<Token> keywords)protected chargetAlternativeIdentifierQuote()-
Methods inherited from class migratedb.v1.core.internal.parser.BaseParser
adjustDelimiter, closeAndAddSuppressed, createStatement, detectStatementType, doTokensMatchPattern, getAlternativeStringLiteralQuote, getClosingIdentifierSymbol, getConfiguration, getDefaultDelimiter, getIdentifierQuote, getLastKeywordIndex, getLastKeywordIndex, getNextStatement, getOpeningIdentifierSymbol, getParsingContext, getPreviousToken, getTransactionalDetectionCutoff, getValidKeywords, handleAlternativeStringLiteral, handleCommentDirective, handleDelimiter, handleKeyword, handleStringLiteral, isAlternativeStringLiteral, isCommentDirective, isDelimiter, isKeyword, isLetter, isSingleLineComment, lastTokenIs, lastTokenIsOnLine, parse, parse, readIdentifier, readKeyword, replacePlaceholders, resetDelimiter, shouldAdjustBlockDepth, shouldDiscard, supportsPeekingMultipleLines, tokenAtIndexIs
-
-
-
-
Constructor Detail
-
SQLiteParser
public SQLiteParser(Configuration configuration, ParsingContext parsingContext)
-
-
Method Detail
-
getAlternativeIdentifierQuote
protected char getAlternativeIdentifierQuote()
- Overrides:
getAlternativeIdentifierQuotein classBaseParser
-
detectCanExecuteInTransaction
protected Boolean detectCanExecuteInTransaction(String simplifiedStatement, List<Token> keywords)
- Overrides:
detectCanExecuteInTransactionin classBaseParser
-
adjustBlockDepth
protected void adjustBlockDepth(ParserContext context, List<Token> tokens, Token keyword, PeekingReader reader) throws IOException
- Overrides:
adjustBlockDepthin classBaseParser- Throws:
IOException
-
-