Search in sources :

Example 11 with Table

use of org.flywaydb.core.internal.database.base.Table in project flyway by flyway.

the class SchemaHistoryFactory method getSchemaHistory.

public static SchemaHistory getSchemaHistory(Configuration configuration, SqlScriptExecutorFactory sqlScriptExecutorFactory, SqlScriptFactory sqlScriptFactory, Database database, Schema schema, StatementInterceptor statementInterceptor) {
    Table table = schema.getTable(configuration.getTable());
    JdbcTableSchemaHistory jdbcTableSchemaHistory = new JdbcTableSchemaHistory(sqlScriptExecutorFactory, sqlScriptFactory, database, table);
    return jdbcTableSchemaHistory;
}
Also used : Table(org.flywaydb.core.internal.database.base.Table)

Aggregations

Table (org.flywaydb.core.internal.database.base.Table)11 ArrayList (java.util.ArrayList)3 ResultSet (java.sql.ResultSet)1 ResultSetMetaData (java.sql.ResultSetMetaData)1 SQLException (java.sql.SQLException)1 java.util (java.util)1 Callable (java.util.concurrent.Callable)1 CustomLog (lombok.CustomLog)1 FlywayException (org.flywaydb.core.api.FlywayException)1 MigrationPattern (org.flywaydb.core.api.MigrationPattern)1 MigrationType (org.flywaydb.core.api.MigrationType)1 MigrationVersion (org.flywaydb.core.api.MigrationVersion)1 CommandResultFactory (org.flywaydb.core.api.output.CommandResultFactory)1 RepairOutput (org.flywaydb.core.api.output.RepairOutput)1 RepairResult (org.flywaydb.core.api.output.RepairResult)1 ResolvedMigration (org.flywaydb.core.api.resolver.ResolvedMigration)1 Connection (org.flywaydb.core.internal.database.base.Connection)1 Database (org.flywaydb.core.internal.database.base.Database)1 FlywaySqlException (org.flywaydb.core.internal.exception.FlywaySqlException)1 ExecutionTemplateFactory (org.flywaydb.core.internal.jdbc.ExecutionTemplateFactory)1