Class YugabyteDBDatabaseType
java.lang.Object
org.flywaydb.core.internal.database.base.BaseDatabaseType
org.flywaydb.database.postgresql.PostgreSQLDatabaseType
org.flywaydb.community.database.postgresql.yugabytedb.YugabyteDBDatabaseType
- All Implemented Interfaces:
Comparable<org.flywaydb.core.extensibility.Plugin>,org.flywaydb.core.extensibility.Plugin,org.flywaydb.core.internal.database.base.CommunityDatabaseType,org.flywaydb.core.internal.database.DatabaseType
public class YugabyteDBDatabaseType
extends org.flywaydb.database.postgresql.PostgreSQLDatabaseType
implements org.flywaydb.core.internal.database.base.CommunityDatabaseType
-
Field Summary
Fields inherited from class org.flywaydb.core.internal.database.base.BaseDatabaseType
APPLICATION_NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.flywaydb.core.internal.database.base.DatabasecreateDatabase(org.flywaydb.core.api.configuration.Configuration configuration, org.flywaydb.core.internal.jdbc.JdbcConnectionFactory jdbcConnectionFactory, org.flywaydb.core.internal.jdbc.StatementInterceptor statementInterceptor) org.flywaydb.core.internal.parser.ParsercreateParser(org.flywaydb.core.api.configuration.Configuration configuration, org.flywaydb.core.api.ResourceProvider resourceProvider, org.flywaydb.core.internal.parser.ParsingContext parsingContext) getDriverClass(String url, ClassLoader classLoader) Returns the YugabyteDB Smart driver classname if the smart driver is being used.getName()getPluginVersion(org.flywaydb.core.api.configuration.Configuration config) intbooleanhandlesDatabaseProductNameAndVersion(String databaseProductName, String databaseProductVersion, Connection connection) booleanhandlesJDBCUrl(String url) Methods inherited from class org.flywaydb.database.postgresql.PostgreSQLDatabaseType
getExternalAuthProperties, getNullType, getSupportedEngines, setDefaultConnectionPropsMethods inherited from class org.flywaydb.core.internal.database.base.BaseDatabaseType
alterConnectionAsNeeded, createExecutionStrategy, createSqlScriptExecutorFactory, createSqlScriptFactory, createTransactionalExecutionTemplate, detectPasswordRequiredByUrl, detectUserRequiredByUrl, externalAuthPropertiesRequired, getBackupDriverClass, getDefaultJDBCCredentialsPattern, getJDBCCredentialsPattern, getJDBCCredentialsPatterns, getSelectVersionOutput, instantiateClassExtendedErrorMessage, setConfigConnectionProps, setOverridingConnectionProps, shutdownDatabase, supportsReadOnlyTransactions, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.flywaydb.core.internal.database.base.CommunityDatabaseType
announcementForCommunitySupportMethods inherited from interface org.flywaydb.core.internal.database.DatabaseType
alterConnectionAsNeeded, createExecutionStrategy, createSqlScriptExecutorFactory, createSqlScriptFactory, createTransactionalExecutionTemplate, detectPasswordRequiredByUrl, detectUserRequiredByUrl, externalAuthPropertiesRequired, getBackupDriverClass, getExternalAuthProperties, getJDBCCredentialsPattern, getJDBCCredentialsPatterns, getNullType, getSpecialResourceFilenames, getSupportedEngines, instantiateClassExtendedErrorMessage, setConfigConnectionProps, setDefaultConnectionProps, setEarlyConnectionProps, setOverridingConnectionProps, shutdownDatabase, supportsReadOnlyTransactionsMethods inherited from interface org.flywaydb.core.extensibility.Plugin
compareTo, copy, isEnabled, isLicensed
-
Constructor Details
-
YugabyteDBDatabaseType
public YugabyteDBDatabaseType()
-
-
Method Details
-
getName
- Specified by:
getNamein interfaceorg.flywaydb.core.internal.database.DatabaseType- Specified by:
getNamein interfaceorg.flywaydb.core.extensibility.Plugin- Overrides:
getNamein classorg.flywaydb.database.postgresql.PostgreSQLDatabaseType
-
handlesJDBCUrl
- Specified by:
handlesJDBCUrlin interfaceorg.flywaydb.core.internal.database.DatabaseType- Overrides:
handlesJDBCUrlin classorg.flywaydb.database.postgresql.PostgreSQLDatabaseType
-
getPriority
public int getPriority()- Specified by:
getPriorityin interfaceorg.flywaydb.core.extensibility.Plugin
-
handlesDatabaseProductNameAndVersion
public boolean handlesDatabaseProductNameAndVersion(String databaseProductName, String databaseProductVersion, Connection connection) - Specified by:
handlesDatabaseProductNameAndVersionin interfaceorg.flywaydb.core.internal.database.DatabaseType- Overrides:
handlesDatabaseProductNameAndVersionin classorg.flywaydb.database.postgresql.PostgreSQLDatabaseType
-
createDatabase
public org.flywaydb.core.internal.database.base.Database createDatabase(org.flywaydb.core.api.configuration.Configuration configuration, org.flywaydb.core.internal.jdbc.JdbcConnectionFactory jdbcConnectionFactory, org.flywaydb.core.internal.jdbc.StatementInterceptor statementInterceptor) - Specified by:
createDatabasein interfaceorg.flywaydb.core.internal.database.DatabaseType- Overrides:
createDatabasein classorg.flywaydb.database.postgresql.PostgreSQLDatabaseType
-
createParser
public org.flywaydb.core.internal.parser.Parser createParser(org.flywaydb.core.api.configuration.Configuration configuration, org.flywaydb.core.api.ResourceProvider resourceProvider, org.flywaydb.core.internal.parser.ParsingContext parsingContext) - Specified by:
createParserin interfaceorg.flywaydb.core.internal.database.DatabaseType- Overrides:
createParserin classorg.flywaydb.database.postgresql.PostgreSQLDatabaseType
-
getPluginVersion
- Specified by:
getPluginVersionin interfaceorg.flywaydb.core.extensibility.Plugin
-
getDriverClass
Returns the YugabyteDB Smart driver classname if the smart driver is being used. The plugin will work with the Postgresql JDBC driver also since the url in that case would start with 'jdbc:postgresql' which would return the PG JDBC driver class name.- Specified by:
getDriverClassin interfaceorg.flywaydb.core.internal.database.DatabaseType- Overrides:
getDriverClassin classorg.flywaydb.database.postgresql.PostgreSQLDatabaseType- Parameters:
url-classLoader-- Returns:
- "com.yugabyte.Driver" if url starts with "jdbc:yugabytedb:"
-