Class SnowflakeDatabase
java.lang.Object
migratedb.v1.core.internal.database.base.BaseDatabase<SnowflakeConnection>
migratedb.v1.core.internal.database.snowflake.SnowflakeDatabase
- All Implemented Interfaces:
Closeable,AutoCloseable,Database<SnowflakeConnection>
-
Field Summary
Fields inherited from class migratedb.v1.core.internal.database.base.BaseDatabase
configuration, databaseType, jdbcConnectionFactory, jdbcMetaData, jdbcTemplate, rawMainJdbcConnection -
Constructor Summary
ConstructorsConstructorDescriptionSnowflakeDatabase(Configuration configuration, JdbcConnectionFactory jdbcConnectionFactory) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionbooleanprotected SnowflakeConnectiondoGetConnection(Connection connection) Retrieves a MigrateDB Connection for this JDBC connection.voidEnsure MigrateDB supports this version of this database.getInsertStatement(Table<?, ?> table) getRawCreateScript(Table<?, ?> table, boolean baseline) getSelectStatement(Table<?, ?> table) booleanbooleanMethods inherited from class migratedb.v1.core.internal.database.base.BaseDatabase
cleanPostSchemas, cleanPreSchemas, close, computeVersionDisplayName, determineVersion, doCleanPostSchemas, doCleanPreSchemas, doGetCatalog, doGetCurrentUser, doQuote, ensureDatabaseIsRecentEnough, getAllSchemas, getBaselineStatement, getCatalog, getCloseQuote, getCreateScript, getCurrentUser, getDatabaseType, getDefaultDelimiter, getEscapedQuote, getInstalledBy, getJdbcMetaData, getMainConnection, getMigrationConnection, getOpenQuote, getVersion, quote, recommendMigrateDbUpgradeIfNecessary, recommendMigrateDbUpgradeIfNecessaryForMajorVersion, supportsEmptyMigrationDescription, supportsMultiStatementTransactions, unQuote, useSingleConnection
-
Constructor Details
-
SnowflakeDatabase
Creates a new instance.
-
-
Method Details
-
doGetConnection
Description copied from class:BaseDatabaseRetrieves a MigrateDB Connection for this JDBC connection.- Specified by:
doGetConnectionin classBaseDatabase<SnowflakeConnection>
-
ensureSupported
public void ensureSupported()Description copied from interface:DatabaseEnsure MigrateDB supports this version of this database. -
getRawCreateScript
-
getSelectStatement
- Specified by:
getSelectStatementin interfaceDatabase<SnowflakeConnection>- Overrides:
getSelectStatementin classBaseDatabase<SnowflakeConnection>
-
getInsertStatement
- Specified by:
getInsertStatementin interfaceDatabase<SnowflakeConnection>- Overrides:
getInsertStatementin classBaseDatabase<SnowflakeConnection>
-
supportsDdlTransactions
public boolean supportsDdlTransactions() -
supportsChangingCurrentSchema
public boolean supportsChangingCurrentSchema() -
getBooleanTrue
- Returns:
- The representation of the value
truein a boolean column.
-
getBooleanFalse
- Returns:
- The representation of the value
falsein a boolean column.
-
catalogIsSchema
public boolean catalogIsSchema()- Returns:
trueif this database uses a catalog to represent a schema, orfalseif a schema is simply a schema.
-