| Modifier and Type | Field and Description |
|---|---|
| public static final Pattern | |
| private static final String | PRECISION_REGEX
Pattern used to extract function precision like 3 in CURRENT_TIMESTAMP(3) |
| private static final String | |
| private static final Set |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | correctObjectName(String name, Class<? extends DatabaseObject> objectType)
Overrides liquibase. Implements liquibase. Fix the object name to the format the database expects, handling changes in case, etc. |
| private static Set | |
| public boolean | |
| public boolean | |
| public void | |
| public String | escapeIndexName(String catalogName, String schemaName, String indexName)
Overrides liquibase. Implements liquibase.
|
| public String | |
| private int | |
| protected boolean | generateAutoIncrementBy(BigInteger incrementBy)
Overrides liquibase.
|
| protected boolean | generateAutoIncrementStartWith(final BigInteger startWith)
Overrides liquibase.
|
| public String | generateDatabaseFunctionValue(DatabaseFunction
database function to check. databaseFunction)Overrides liquibase. Implements liquibase. Some function names are placeholders that need to be replaced with the specific database value. |
| protected String | |
| protected String | |
| protected String | |
| protected String | |
| public String | getConcatSql(String... values)
Overrides liquibase. Implements liquibase. Returns SQL to concat the passed values. |
| protected String | |
| public int | |
| protected String | |
| public String | getDefaultDriver(String url)
Implements liquibase. If this database understands the given url, return the default driver class name. |
| public int | Returns: always 0Overrides liquibase. Implements liquibase. Returns the default timestamp fractional digits if nothing is specified. |
| public Integer | |
| public String | getLineComment()
Overrides liquibase. Implements liquibase. Returns database-specific line comment string. |
| public int | getMaxFractionalDigitsForTimestamp()
Overrides liquibase. Implements liquibase. Most relational databases support 9 fractional digits, and subclasses must overwrite this method if they support less than that. |
| protected String | |
| public int | |
| protected String | |
| protected String | |
| public CatalogAndSchema | getSchemaFromJdbcInfo(String rawCatalogName, String rawSchemaName)
Overrides liquibase.
|
| public String | getShortName()
Implements liquibase. Returns an all-lower-case short name of the product. |
| public String | |
| public boolean | isCorrectDatabaseImplementation(DatabaseConnection conn)
Implements liquibase. Is this AbstractDatabase subclass the correct one to use for the given connection. |
| public boolean | Returns: true if this instance of a MySQL database is equal to or greater than the specified version, false otherwisethe minimum version to check minimumVersion)Checks whether this instance of a MySQL database is equal to or greater than the specified version. |
| public boolean | isReservedWord(String string)
Overrides liquibase. Implements liquibase.
|
| protected boolean | mustQuoteObjectName(String objectName, Class<? extends DatabaseObject> objectType)
Overrides liquibase.
|
| public boolean | |
| public boolean | supportsCreateIfNotExists(Class<? extends DatabaseObject>
the DatabaseObject type to be checked. type)Overrides default liquibase. Does the database support the "if not exits" syntax? |
| public boolean | |
| public boolean | supportsInitiallyDeferrableColumns()
Implements liquibase. Returns whether this database support initially deferrable columns. |
| public boolean | |
| public boolean | supportsSequences()
Overrides liquibase. Implements liquibase. Does the database type support sequence. |
| public boolean | |
| public void |
| PRECISION_PATTERN | back to summary |
|---|---|
| public static final Pattern PRECISION_PATTERN | |
| PRECISION_REGEX | back to summary |
|---|---|
| private static final String PRECISION_REGEX Pattern used to extract function precision like 3 in CURRENT_TIMESTAMP(3) | |
| PRODUCT_NAME | back to summary |
|---|---|
| private static final String PRODUCT_NAME | |
| RESERVED_WORDS | back to summary |
|---|---|
| private static final Set<String> RESERVED_WORDS | |
| MySQLDatabase | back to summary |
|---|---|
| public MySQLDatabase() | |
| correctObjectName | back to summary |
|---|---|
| public String correctObjectName(String name, Class<? extends DatabaseObject> objectType) Overrides liquibase. Implements liquibase. Doc from liquibase. Fix the object name to the format the database expects, handling changes in case, etc.
| |
| createReservedWords | back to summary |
|---|---|
| private static Set | |
| createsIndexesForForeignKeys | back to summary |
|---|---|
| public boolean createsIndexesForForeignKeys() Overrides liquibase. Implements liquibase.
| |
| disableForeignKeyChecks | back to summary |
|---|---|
| public boolean disableForeignKeyChecks() throws DatabaseException Overrides liquibase. Implements liquibase.
| |
| enableForeignKeyChecks | back to summary |
|---|---|
| public void enableForeignKeyChecks() throws DatabaseException Overrides liquibase. Implements liquibase.
| |
| escapeIndexName | back to summary |
|---|---|
| public String escapeIndexName(String catalogName, String schemaName, String indexName) Overrides liquibase. Implements liquibase.
| |
| escapeStringForDatabase | back to summary |
|---|---|
| public String escapeStringForDatabase(String string) Overrides liquibase. Implements liquibase.
| |
| extractPrecision | back to summary |
|---|---|
| private int extractPrecision(DatabaseFunction databaseFunction) | |
| generateAutoIncrementBy | back to summary |
|---|---|
| protected boolean generateAutoIncrementBy(BigInteger incrementBy) Overrides liquibase.
| |
| generateAutoIncrementStartWith | back to summary |
|---|---|
| protected boolean generateAutoIncrementStartWith(final BigInteger startWith) Overrides liquibase.
| |
| generateDatabaseFunctionValue | back to summary |
|---|---|
| public String generateDatabaseFunctionValue(DatabaseFunction databaseFunction) Overrides liquibase. Implements liquibase. Doc from liquibase. Some function names are placeholders that need to be replaced with the specific database value. e.g. nextSequenceValue(sequenceName) should be replaced with NEXT_VAL('sequenceName') for Postgresql
| |
| getAutoIncrementClause | back to summary |
|---|---|
| protected String getAutoIncrementClause() Overrides liquibase.
| |
| getAutoIncrementClosing | back to summary |
|---|---|
| protected String getAutoIncrementClosing() Overrides liquibase.
| |
| getAutoIncrementOpening | back to summary |
|---|---|
| protected String getAutoIncrementOpening() Overrides liquibase.
| |
| getAutoIncrementStartWithClause | back to summary |
|---|---|
| protected String getAutoIncrementStartWithClause() Overrides liquibase.
| |
| getConcatSql | back to summary |
|---|---|
| public String getConcatSql(String... values) Overrides liquibase. Implements liquibase. Doc from liquibase. Returns SQL to concat the passed values.
| |
| getCurrentDateTimeFunction | back to summary |
|---|---|
| protected String getCurrentDateTimeFunction(int precision) | |
| getDatabasePatchVersion | back to summary |
|---|---|
| public int getDatabasePatchVersion() throws DatabaseException | |
| getDefaultDatabaseProductName | back to summary |
|---|---|
| protected String getDefaultDatabaseProductName() Implements abstract liquibase.
| |
| getDefaultDriver | back to summary |
|---|---|
| public String getDefaultDriver(String url) Implements liquibase. Doc from liquibase. If this database understands the given url, return the default driver class name. Otherwise return null.
| |
| getDefaultFractionalDigitsForTimestamp | back to summary |
|---|---|
| public int getDefaultFractionalDigitsForTimestamp() Overrides liquibase. Implements liquibase. Returns the default timestamp fractional digits if nothing is specified. fractional seconds: "The fsp value, if given, must be in the range 0 to 6. A value of 0 signifies that there is no fractional part. If omitted, the default precision is 0. (This differs from the STANDARD SQL default of 6, for compatibility with previous MySQL versions.)"
| |
| getDefaultPort | back to summary |
|---|---|
| public Integer getDefaultPort() Implements liquibase.
| |
| getLineComment | back to summary |
|---|---|
| public String getLineComment() Overrides liquibase. Implements liquibase. Doc from liquibase. Returns database-specific line comment string.
| |
| getMaxFractionalDigitsForTimestamp | back to summary |
|---|---|
| public int getMaxFractionalDigitsForTimestamp() Overrides liquibase. Implements liquibase. Doc from liquibase. Most relational databases support 9 fractional digits, and subclasses must overwrite this method if they support less than that.
| |
| getMinimumVersionForFractionalDigitsForTimestamp | back to summary |
|---|---|
| protected String getMinimumVersionForFractionalDigitsForTimestamp() | |
| getPriority | back to summary |
|---|---|
| public int getPriority() Implements liquibase.
| |
| getQuotingEndCharacter | back to summary |
|---|---|
| protected String getQuotingEndCharacter() Overrides liquibase.
| |
| getQuotingStartCharacter | back to summary |
|---|---|
| protected String getQuotingStartCharacter() Overrides liquibase.
| |
| getSchemaFromJdbcInfo | back to summary |
|---|---|
| public CatalogAndSchema getSchemaFromJdbcInfo(String rawCatalogName, String rawSchemaName) Overrides liquibase.
| |
| getShortName | back to summary |
|---|---|
| public String getShortName() Implements liquibase. Doc from liquibase. Returns an all-lower-case short name of the product. Used for end-user selecting of database type such as the DBMS precondition.
| |
| getTableOptionAutoIncrementStartWithClause | back to summary |
|---|---|
| public String getTableOptionAutoIncrementStartWithClause(BigInteger startWith) | |
| isCorrectDatabaseImplementation | back to summary |
|---|---|
| public boolean isCorrectDatabaseImplementation(DatabaseConnection conn) throws DatabaseException Implements liquibase. Doc from liquibase. Is this AbstractDatabase subclass the correct one to use for the given connection.
| |
| isMinimumMySQLVersion | back to summary |
|---|---|
| public boolean isMinimumMySQLVersion(String minimumVersion) Checks whether this instance of a MySQL database is equal to or greater than the specified version.
| |
| isReservedWord | back to summary |
|---|---|
| public boolean isReservedWord(String string) Overrides liquibase. Implements liquibase.
| |
| mustQuoteObjectName | back to summary |
|---|---|
| protected boolean mustQuoteObjectName(String objectName, Class<? extends DatabaseObject> objectType) Overrides liquibase.
| |
| supportsCatalogs | back to summary |
|---|---|
| public boolean supportsCatalogs() Overrides liquibase. Implements liquibase.
| |
| supportsCreateIfNotExists | back to summary |
|---|---|
| public boolean supportsCreateIfNotExists(Class<? extends DatabaseObject> type) Overrides default liquibase. Doc from liquibase. Does the database support the "if not exits" syntax?
| |
| supportsForeignKeyDisable | back to summary |
|---|---|
| public boolean supportsForeignKeyDisable() Overrides liquibase. Implements liquibase.
| |
| supportsInitiallyDeferrableColumns | back to summary |
|---|---|
| public boolean supportsInitiallyDeferrableColumns() Implements liquibase. Doc from liquibase. Returns whether this database support initially deferrable columns.
| |
| supportsSchemas | back to summary |
|---|---|
| public boolean supportsSchemas() Overrides liquibase. Implements liquibase.
| |
| supportsSequences | back to summary |
|---|---|
| public boolean supportsSequences() Overrides liquibase. Implements liquibase. Doc from liquibase. Does the database type support sequence.
| |
| supportsTablespaces | back to summary |
|---|---|
| public boolean supportsTablespaces() Implements liquibase.
| |
| warnAboutAlterColumn | back to summary |
|---|---|
| public void warnAboutAlterColumn(String changeName, Warnings warnings) | |