Class CockroachDBParser
java.lang.Object
migratedb.v1.core.internal.parser.BaseParser
migratedb.v1.core.internal.database.cockroachdb.CockroachDBParser
- All Implemented Interfaces:
Parser
-
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
ConstructorsConstructorDescriptionCockroachDBParser(Configuration configuration, ParsingContext parsingContext) -
Method Summary
Modifier and TypeMethodDescriptionprotected BooleandetectCanExecuteInTransaction(String simplifiedStatement, List<Token> keywords) protected charprotected TokenhandleAlternativeStringLiteral(PeekingReader reader, ParserContext context, int pos, int line, int col) Methods inherited from class migratedb.v1.core.internal.parser.BaseParser
adjustBlockDepth, adjustDelimiter, createStatement, detectStatementType, doTokensMatchPattern, getAlternativeIdentifierQuote, getClosingIdentifierSymbol, getConfiguration, getDefaultDelimiter, getIdentifierQuote, getLastKeywordIndex, getLastKeywordIndex, getNextStatement, getOpeningIdentifierSymbol, getParsingContext, getPreviousToken, getTransactionalDetectionCutoff, getValidKeywords, handleCommentDirective, handleDelimiter, handleKeyword, handleStringLiteral, isAlternativeStringLiteral, isCommentDirective, isDelimiter, isKeyword, isLetter, isSingleLineComment, lastTokenIs, lastTokenIsOnLine, parse, parse, readIdentifier, readKeyword, replacePlaceholders, resetDelimiter, shouldAdjustBlockDepth, shouldDiscard, supportsPeekingMultipleLines, tokenAtIndexIs
-
Constructor Details
-
CockroachDBParser
-
-
Method Details
-
getAlternativeStringLiteralQuote
protected char getAlternativeStringLiteralQuote()- Overrides:
getAlternativeStringLiteralQuotein classBaseParser
-
handleAlternativeStringLiteral
protected Token handleAlternativeStringLiteral(PeekingReader reader, ParserContext context, int pos, int line, int col) throws IOException - Overrides:
handleAlternativeStringLiteralin classBaseParser- Throws:
IOException
-
detectCanExecuteInTransaction
- Overrides:
detectCanExecuteInTransactionin classBaseParser
-