Skip to content

Commit

Permalink
Merge pull request #30 from flyway/3845-utilize-CommunityDatabaseType
Browse files Browse the repository at this point in the history
Implement the interface `CommunityDatabaseType`
  • Loading branch information
JasonLuo-Redgate authored Mar 6, 2024
2 parents 125260e + 8d07ee7 commit faca6c0
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,15 @@
import org.flywaydb.core.api.ResourceProvider;
import org.flywaydb.core.api.configuration.Configuration;
import org.flywaydb.core.internal.database.base.BaseDatabaseType;
import org.flywaydb.core.internal.database.base.CommunityDatabaseType;
import org.flywaydb.core.internal.jdbc.JdbcConnectionFactory;
import org.flywaydb.core.internal.jdbc.StatementInterceptor;
import org.flywaydb.core.internal.parser.Parser;
import org.flywaydb.core.internal.parser.ParsingContext;

import java.sql.Connection;

public class ClickHouseDatabaseType extends BaseDatabaseType {
public class ClickHouseDatabaseType extends BaseDatabaseType implements CommunityDatabaseType {
@Override
public String getName() {
return "ClickHouse";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
import org.flywaydb.community.database.IgniteDatabaseExtension;
import org.flywaydb.core.api.ResourceProvider;
import org.flywaydb.core.api.configuration.Configuration;
import org.flywaydb.core.internal.database.base.CommunityDatabaseType;
import org.flywaydb.core.internal.database.base.Database;
import org.flywaydb.core.internal.database.base.BaseDatabaseType;
import org.flywaydb.core.internal.jdbc.JdbcConnectionFactory;
Expand All @@ -36,7 +37,7 @@
* For simple testing, use `docker run -d -p 10800:10800 apacheignite/ignite` to spin up the DB and then
* `jdbc:ignite:thin://127.0.0.1` as the JDBC URL, no username or password
* */
public class IgniteThinDatabaseType extends BaseDatabaseType {
public class IgniteThinDatabaseType extends BaseDatabaseType implements CommunityDatabaseType {
public String getName() {
return "Apache Ignite";
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import org.flywaydb.core.api.ResourceProvider;
import org.flywaydb.core.api.configuration.Configuration;
import org.flywaydb.core.internal.database.base.BaseDatabaseType;
import org.flywaydb.core.internal.database.base.CommunityDatabaseType;
import org.flywaydb.core.internal.database.base.Database;
import org.flywaydb.core.internal.jdbc.JdbcConnectionFactory;
import org.flywaydb.core.internal.jdbc.StatementInterceptor;
Expand All @@ -31,7 +32,7 @@
import java.sql.SQLException;
import java.sql.Types;

public class OceanBaseDatabaseType extends BaseDatabaseType {
public class OceanBaseDatabaseType extends BaseDatabaseType implements CommunityDatabaseType {

private static final String MYSQL_JDBC_DRIVER = "com.mysql.cj.jdbc.Driver";
private static final String MYSQL_LEGACY_JDBC_DRIVER = "com.mysql.jdbc.Driver";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

import org.flywaydb.community.database.TiDBDatabaseExtension;
import org.flywaydb.core.api.configuration.Configuration;
import org.flywaydb.core.internal.database.base.CommunityDatabaseType;
import org.flywaydb.core.internal.database.base.Database;
import org.flywaydb.database.mysql.MySQLConnection;
import org.flywaydb.database.mysql.MySQLDatabaseType;
Expand All @@ -25,7 +26,7 @@

import java.sql.Connection;

public class TiDBDatabaseType extends MySQLDatabaseType {
public class TiDBDatabaseType extends MySQLDatabaseType implements CommunityDatabaseType {
@Override
public String getName() {
return "TiDB";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
import org.flywaydb.community.database.YugabyteDBDatabaseExtension;
import org.flywaydb.core.api.ResourceProvider;
import org.flywaydb.core.api.configuration.Configuration;
import org.flywaydb.core.internal.database.base.CommunityDatabaseType;
import org.flywaydb.core.internal.database.base.Database;
import org.flywaydb.core.internal.jdbc.JdbcConnectionFactory;
import org.flywaydb.core.internal.jdbc.StatementInterceptor;
Expand All @@ -28,7 +29,7 @@
import java.sql.Connection;
import java.util.regex.Pattern;

public class YugabyteDBDatabaseType extends PostgreSQLDatabaseType {
public class YugabyteDBDatabaseType extends PostgreSQLDatabaseType implements CommunityDatabaseType {
@Override
public String getName() {
return "YugabyteDB";
Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<parent>
<groupId>org.flywaydb</groupId>
<artifactId>flyway-parent</artifactId>
<version>10.7.1</version>
<version>10.9.0</version>
<relativePath/>
</parent>
<modelVersion>4.0.0</modelVersion>
Expand All @@ -44,7 +44,7 @@
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>flyway-core</artifactId>
<version>10.8.1</version>
<version>10.9.0</version>
<scope>provided</scope>
</dependency>
</dependencies>
Expand Down

0 comments on commit faca6c0

Please sign in to comment.