Package org.databene.jdbacl.model

Examples of org.databene.jdbacl.model.Database


  protected DBCatalog catalog;
  protected DBSchema schema;

  @Before
  public void prepareDB() {
    this.db = new Database(null, null, false);
    this.catalog = new DBCatalog("catalog", this.db);
    this.schema = new DBSchema("schema", this.catalog);
  }
View Full Code Here


public class SchemaComparatorTest extends AbstractComparatorTest {

  @Test
  public void testUnchanged() {
    // given two identical table versions
    Database db1 = new Database("db1", "hsql", "1.5.8", null);
    DBCatalog cat1 = new DBCatalog("cat1", db1);
    DBSchema schema1 = new DBSchema("public", cat1);
    DBTable table1 = createTableWithColumns("tbl", 3);
    schema1.addTable(table1);

    Database db2 = new Database("db1", "hsql", "1.5.8", null);
    DBCatalog cat2 = new DBCatalog("cat2", db2);
    DBSchema schema2 = new DBSchema("public", cat2);
    DBTable table2 = createTableWithColumns("tbl", 3);
    schema2.addTable(table2);
   
View Full Code Here

      new SingleColumnConstraintAggregator(),
    };

    // Read meta data
    System.out.println("Running...");
    Database db1 = config.getMetaData1();
    Database db2 = config.getMetaData2();
   
    LOGGER.info("Comparing databases...");
    SchemaComparator comparator = new SchemaComparator(config);
    SchemaChange schemaChange = comparator.compare(db1, db2);
    LOGGER.info("Database comparison finished");
View Full Code Here

TOP

Related Classes of org.databene.jdbacl.model.Database

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.