Class HSQLDBDatabase

java.lang.Object
migratedb.v1.core.internal.database.base.BaseDatabase<HSQLDBConnection>
migratedb.v1.core.internal.database.hsqldb.HSQLDBDatabase
All Implemented Interfaces:
Closeable, AutoCloseable, Database<HSQLDBConnection>

public class HSQLDBDatabase extends BaseDatabase<HSQLDBConnection>
HSQLDB database.
  • Constructor Details

    • HSQLDBDatabase

      public HSQLDBDatabase(Configuration configuration, JdbcConnectionFactory jdbcConnectionFactory)
      Creates a new instance.
      Parameters:
      configuration - The MigrateDB configuration.
  • Method Details

    • doGetConnection

      protected HSQLDBConnection doGetConnection(Connection connection)
      Description copied from class: BaseDatabase
      Retrieves a MigrateDB Connection for this JDBC connection.
      Specified by:
      doGetConnection in class BaseDatabase<HSQLDBConnection>
    • ensureSupported

      public final void ensureSupported()
      Description copied from interface: Database
      Ensure MigrateDB supports this version of this database.
    • getRawCreateScript

      public String getRawCreateScript(Table<?,?> table, boolean baseline)
    • supportsDdlTransactions

      public boolean supportsDdlTransactions()
    • supportsChangingCurrentSchema

      public boolean supportsChangingCurrentSchema()
    • getBooleanTrue

      public String getBooleanTrue()
      Returns:
      The representation of the value true in a boolean column.
    • getBooleanFalse

      public String getBooleanFalse()
      Returns:
      The representation of the value false in a boolean column.
    • catalogIsSchema

      public boolean catalogIsSchema()
      Returns:
      true if this database uses a catalog to represent a schema, or false if a schema is simply a schema.
    • useSingleConnection

      public boolean useSingleConnection()
      Specified by:
      useSingleConnection in interface Database<HSQLDBConnection>
      Overrides:
      useSingleConnection in class BaseDatabase<HSQLDBConnection>
      Returns:
      Whether to use a single connection for both schema history table management and applying migrations.