Package org.flywaydb.database.spanner
Class SpannerDatabase
- java.lang.Object
-
- org.flywaydb.core.internal.database.base.Database<SpannerConnection>
-
- org.flywaydb.database.spanner.SpannerDatabase
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
public class SpannerDatabase extends org.flywaydb.core.internal.database.base.Database<SpannerConnection>
-
-
Constructor Summary
Constructors Constructor Description SpannerDatabase(org.flywaydb.core.api.configuration.Configuration configuration, org.flywaydb.core.internal.jdbc.JdbcConnectionFactory jdbcConnectionFactory, org.flywaydb.core.internal.jdbc.StatementInterceptor statementInterceptor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancatalogIsSchema()protected SpannerConnectiondoGetConnection(java.sql.Connection connection)voidensureSupported()java.lang.StringgetBooleanFalse()java.lang.StringgetBooleanTrue()java.lang.StringgetCloseQuote()java.lang.StringgetInsertStatement(org.flywaydb.core.internal.database.base.Table table)java.lang.StringgetOpenQuote()java.lang.StringgetRawCreateScript(org.flywaydb.core.internal.database.base.Table table, boolean baseline)booleansupportsChangingCurrentSchema()booleansupportsDdlTransactions()booleansupportsMultiStatementTransactions()booleanuseSingleConnection()-
Methods inherited from class org.flywaydb.core.internal.database.base.Database
cleanPostSchemas, cleanPreSchemas, close, computeVersionDisplayName, determineVersion, doCleanPostSchemas, doCleanPreSchemas, doGetCatalog, doGetCurrentUser, doQuote, ensureDatabaseIsRecentEnough, ensureDatabaseNotOlderThanOtherwiseRecommendUpgradeToFlywayEdition, getAllSchemas, getBaselineStatement, getCatalog, getConfiguration, getCreateScript, getCurrentUser, getDatabaseType, getDefaultDelimiter, getEscapedQuote, getInstalledBy, getJdbcMetaData, getMainConnection, getMigrationConnection, getSelectStatement, getVersion, notifyDatabaseIsNotFormallySupported, quote, recommendFlywayUpgradeIfNecessary, recommendFlywayUpgradeIfNecessaryForMajorVersion, supportsEmptyMigrationDescription, unQuote
-
-
-
-
Method Detail
-
doGetConnection
protected SpannerConnection doGetConnection(java.sql.Connection connection)
- Specified by:
doGetConnectionin classorg.flywaydb.core.internal.database.base.Database<SpannerConnection>
-
ensureSupported
public void ensureSupported()
- Specified by:
ensureSupportedin classorg.flywaydb.core.internal.database.base.Database<SpannerConnection>
-
supportsDdlTransactions
public boolean supportsDdlTransactions()
- Specified by:
supportsDdlTransactionsin classorg.flywaydb.core.internal.database.base.Database<SpannerConnection>
-
supportsMultiStatementTransactions
public boolean supportsMultiStatementTransactions()
- Overrides:
supportsMultiStatementTransactionsin classorg.flywaydb.core.internal.database.base.Database<SpannerConnection>
-
supportsChangingCurrentSchema
public boolean supportsChangingCurrentSchema()
- Specified by:
supportsChangingCurrentSchemain classorg.flywaydb.core.internal.database.base.Database<SpannerConnection>
-
getBooleanTrue
public java.lang.String getBooleanTrue()
- Specified by:
getBooleanTruein classorg.flywaydb.core.internal.database.base.Database<SpannerConnection>
-
getBooleanFalse
public java.lang.String getBooleanFalse()
- Specified by:
getBooleanFalsein classorg.flywaydb.core.internal.database.base.Database<SpannerConnection>
-
getOpenQuote
public java.lang.String getOpenQuote()
- Overrides:
getOpenQuotein classorg.flywaydb.core.internal.database.base.Database<SpannerConnection>
-
getCloseQuote
public java.lang.String getCloseQuote()
- Overrides:
getCloseQuotein classorg.flywaydb.core.internal.database.base.Database<SpannerConnection>
-
catalogIsSchema
public boolean catalogIsSchema()
- Specified by:
catalogIsSchemain classorg.flywaydb.core.internal.database.base.Database<SpannerConnection>
-
useSingleConnection
public boolean useSingleConnection()
- Overrides:
useSingleConnectionin classorg.flywaydb.core.internal.database.base.Database<SpannerConnection>
-
getRawCreateScript
public java.lang.String getRawCreateScript(org.flywaydb.core.internal.database.base.Table table, boolean baseline)- Specified by:
getRawCreateScriptin classorg.flywaydb.core.internal.database.base.Database<SpannerConnection>
-
getInsertStatement
public java.lang.String getInsertStatement(org.flywaydb.core.internal.database.base.Table table)
- Overrides:
getInsertStatementin classorg.flywaydb.core.internal.database.base.Database<SpannerConnection>
-
-