Team Exasol
Team Exasol

What is test-database-builder?

Exasol's Test Database Builder for Java (TDDB) is a library that makes writing integration tests for database applications easier.

The main design goals are to make the code of the integration test compact and readable at the same time.

For example, you can create and fill a table using the following statement:

 

final DatabaseObjectFactory factory=new ExasolObjectFactory(connection);
final Schema schema factory.createSchema("ONLINESHOP");
final Table table=schema.createTable("ITEMS","PRODUCT_ID","DECIMAL(18,0)","NAME","VARCHAR(40)")
        .insert("1","Cat food")
        .insert("2","Toy mouse");

 

What's new?

In addition to the existing support of Exasol and MySql databases, we've added support for PostgreSQL databases.

Support for other databases will follow soon.

Where to find it?

You can find the new release on GitHub.