ClickHouse
Testing
To test against ClickHouse docker test container set the platform to clickhouse
in
src/test/resources/application-test.yaml
Refer to docs / testing if application-test.yaml doesn't exist yet.
ebean:
test:
platform: clickhouse #, h2, postgres, mysql, oracle, sqlserver
ddlMode: dropCreate # none | dropCreate | migrations | create
dbName: test
The above will use the following defaults:
username: | default |
---|---|
password: | (empty) |
port: | 8123 |
url: | jdbc:clickhouse://localhost:{port}/{databaseName} |
driver: | ru.yandex.clickhouse.ClickHouseDriver |
image: | yandex/clickhouse-server:{version} |
ebean-clickhouse dependency
We can use the io.ebean:ebean-clickhouse
dependency rather than io.ebean:ebean
if we want to only
bring in the ClickHouse specific platform code. Depending on io.ebean:ebean
will bring in all platforms.