Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
47 lines (41 sloc) 1.4 KB
<html>
<head>
<title>ClickHouse | Ebean ORM</title>
<meta name="layout" content="_layout2/base-docs.html"/>
<meta name="bread1" content="Database platforms" href="/docs/database"/>
<meta name="bread2" content="ClickHouse" href="/docs/database/clickhouse"/>
<#assign n0_docs="active">
<#assign n1_platforms="active">
<#assign n2_clickhouse="active">
</head>
<body>
<h2>ClickHouse</h2>
<h3>Testing</h3>
<p>
To test against ClickHouse docker test container set the <em>platform</em> to <code>clickhouse</code> in
<code>src/test/resources/application-test.yaml</code>
</p>
<p>
Refer to <a href="/docs/testing">docs / testing</a> if application-test.yaml doesn't exist yet.
</p>
```yml
ebean:
test:
platform: clickhouse #, h2, postgres, mysql, oracle, sqlserver
ddlMode: dropCreate # none | dropCreate | migrations | create
dbName: test
```
<p>
The above will use the following defaults:
</p>
<table class="compact w100">
<tr><th>username:</th><td>default</td></tr>
<tr><th>password:</th><td>(empty)</td></tr>
<tr><th>port:</th><td>8123</td></tr>
<tr><th>url:</th><td>jdbc:clickhouse://localhost:{port}/{databaseName}</td></tr>
<tr><th>driver:</th><td>ru.yandex.clickhouse.ClickHouseDriver</td></tr>
<tr><th>image:</th><td>yandex/clickhouse-server:{version}</td></tr>
</table>
<@next_edit "Cockroach" "/docs/database/cockroach" "/docs/database/clickhouse/index.html"/>
</body>
</html>
You can’t perform that action at this time.