Class DerbyDatabase

    • Constructor Detail

      • DerbyDatabase

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

      • 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.
      • usesSingleSession

        public boolean usesSingleSession()
        Specified by:
        usesSingleSession in interface Database
        Overrides:
        usesSingleSession in class BaseDatabase
        Returns:
        Whether a single session is used for both schema history table management and applying migrations.