NuoDB

Testing

To test against NuoDB docker test container set the platform to postgres in src/test/resources/application-test.yaml

Refer to docs / testing if application-test.yaml doesn't exist yet.

ebean:
  test:
  platform: nuodb # h2, nuodb, postgres, ...
    ddlMode: dropCreate # none | dropCreate | migration
    dbName: my_app

That is all we need to do. Running tests via IDE, maven or gradle will all automatically setup a docker test container for postgres including creating the database and user etc.

We generally run with ddlMode dropCreate which will drop and re-create all the database tables prior to running all the tests.

Refer to docs / logging to see how to get logging for SQL, DDL and docker.

Note that DDL is generated into maven target, gradle build or current directory. We see db-create-all.sql and db-drop-all.sql there.

Types

UUID

NuoDB does not have a native UUID type. Instead this will be mapped to database binary(16) or varchar(40) based on the setting of PlatformConfig.DbUuid.

Array types

NuoDB does not have array types and these types are instead simulated.

JSON

Properties with @DbJson and @DbJsonB are mapped to database varchar or clob.

History support

History support for NuoDB is provided by generating triggers and history table.

Table Partitioning

NuoDB supports table partitioning but this is not supported by Ebean yet (via @DbPartition).

Edit Page