Class MariaDBParser
- java.lang.Object
-
- migratedb.v1.core.internal.parser.BaseParser
-
- migratedb.v1.core.internal.database.mysql.MySQLParser
-
- migratedb.v1.core.internal.database.mysql.mariadb.MariaDBParser
-
- All Implemented Interfaces:
Parser
public class MariaDBParser extends MySQLParser
-
-
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 MariaDBParser(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 StatementTypedetectStatementType(String simplifiedStatement, ParserContext context, PeekingReader reader)-
Methods inherited from class migratedb.v1.core.internal.database.mysql.MySQLParser
getAlternativeStringLiteralQuote, getIdentifierQuote, handleAlternativeStringLiteral, handleCommentDirective, handleKeyword, handleStringLiteral, isCommentDirective, isSingleLineComment, resetDelimiter, shouldAdjustBlockDepth
-
Methods inherited from class migratedb.v1.core.internal.parser.BaseParser
adjustDelimiter, closeAndAddSuppressed, createStatement, detectCanExecuteInTransaction, doTokensMatchPattern, getAlternativeIdentifierQuote, getClosingIdentifierSymbol, getConfiguration, getDefaultDelimiter, getLastKeywordIndex, getLastKeywordIndex, getNextStatement, getOpeningIdentifierSymbol, getParsingContext, getPreviousToken, getTransactionalDetectionCutoff, getValidKeywords, handleDelimiter, isAlternativeStringLiteral, isDelimiter, isKeyword, isLetter, lastTokenIs, lastTokenIsOnLine, parse, parse, readIdentifier, readKeyword, replacePlaceholders, shouldDiscard, supportsPeekingMultipleLines, tokenAtIndexIs
-
-
-
-
Constructor Detail
-
MariaDBParser
public MariaDBParser(Configuration configuration, ParsingContext parsingContext)
-
-
Method Detail
-
detectStatementType
protected StatementType detectStatementType(String simplifiedStatement, ParserContext context, PeekingReader reader)
- Overrides:
detectStatementTypein classMySQLParser
-
adjustBlockDepth
protected void adjustBlockDepth(ParserContext context, List<Token> tokens, Token keyword, PeekingReader reader)
- Overrides:
adjustBlockDepthin classMySQLParser
-
-