Class BigQueryDatabase
java.lang.Object
migratedb.v1.core.internal.database.base.BaseDatabase<BigQueryConnection>
migratedb.v1.core.internal.database.bigquery.BigQueryDatabase
- All Implemented Interfaces:
Closeable,AutoCloseable,Database<BigQueryConnection>
-
Field Summary
Fields inherited from class migratedb.v1.core.internal.database.base.BaseDatabase
configuration, databaseType, jdbcConnectionFactory, jdbcMetaData, jdbcTemplate, rawMainJdbcConnection -
Constructor Summary
ConstructorsConstructorDescriptionBigQueryDatabase(Configuration configuration, JdbcConnectionFactory jdbcConnectionFactory) -
Method Summary
Modifier and TypeMethodDescriptionbooleanprotected BigQueryConnectiondoGetConnection(Connection connection) Retrieves a MigrateDB Connection for this JDBC connection.protected StringQuotes this identifier for use in SQL queries.final voidEnsure MigrateDB supports this version of this database.getInsertStatement(Table<?, ?> table) getRawCreateScript(Table<?, ?> table, boolean baseline) booleanbooleanbooleanbooleanMethods inherited from class migratedb.v1.core.internal.database.base.BaseDatabase
cleanPostSchemas, cleanPreSchemas, close, computeVersionDisplayName, determineVersion, doCleanPostSchemas, doCleanPreSchemas, doGetCatalog, ensureDatabaseIsRecentEnough, getAllSchemas, getBaselineStatement, getCatalog, getCreateScript, getCurrentUser, getDatabaseType, getDefaultDelimiter, getInstalledBy, getJdbcMetaData, getMainConnection, getMigrationConnection, getSelectStatement, getVersion, quote, recommendMigrateDbUpgradeIfNecessary, recommendMigrateDbUpgradeIfNecessaryForMajorVersion, supportsEmptyMigrationDescription, unQuote
-
Constructor Details
-
BigQueryDatabase
-
-
Method Details
-
doGetConnection
Description copied from class:BaseDatabaseRetrieves a MigrateDB Connection for this JDBC connection.- Specified by:
doGetConnectionin classBaseDatabase<BigQueryConnection>
-
ensureSupported
public final void ensureSupported()Description copied from interface:DatabaseEnsure MigrateDB supports this version of this database. -
getRawCreateScript
-
getInsertStatement
- Specified by:
getInsertStatementin interfaceDatabase<BigQueryConnection>- Overrides:
getInsertStatementin classBaseDatabase<BigQueryConnection>
-
doGetCurrentUser
- Overrides:
doGetCurrentUserin classBaseDatabase<BigQueryConnection>- Throws:
SQLException
-
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.
-
doQuote
Description copied from class:BaseDatabaseQuotes this identifier for use in SQL queries.- Overrides:
doQuotein classBaseDatabase<BigQueryConnection>
-
getOpenQuote
- Overrides:
getOpenQuotein classBaseDatabase<BigQueryConnection>
-
getCloseQuote
- Overrides:
getCloseQuotein classBaseDatabase<BigQueryConnection>
-
getEscapedQuote
- Overrides:
getEscapedQuotein classBaseDatabase<BigQueryConnection>
-
catalogIsSchema
public boolean catalogIsSchema()- Returns:
trueif this database uses a catalog to represent a schema, orfalseif a schema is simply a schema.
-
supportsMultiStatementTransactions
public boolean supportsMultiStatementTransactions()- Specified by:
supportsMultiStatementTransactionsin interfaceDatabase<BigQueryConnection>- Overrides:
supportsMultiStatementTransactionsin classBaseDatabase<BigQueryConnection>
-
useSingleConnection
public boolean useSingleConnection()- Specified by:
useSingleConnectionin interfaceDatabase<BigQueryConnection>- Overrides:
useSingleConnectionin classBaseDatabase<BigQueryConnection>- Returns:
- Whether to use a single connection for both schema history table management and applying migrations.
-