To test against NuoDB docker test container set the platform to
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.
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.
NuoDB does not have array types and these types are instead simulated.
@DbJsonB are mapped to database varchar or clob.
History support for NuoDB is provided by generating triggers and history table.
NuoDB supports table partitioning but this is not supported by Ebean yet (via @DbPartition).