-
Notifications
You must be signed in to change notification settings - Fork 32
Expand file tree
/
Copy pathindex.html
More file actions
52 lines (46 loc) · 1.73 KB
/
index.html
File metadata and controls
52 lines (46 loc) · 1.73 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<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 the 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>
<pre content="yml">
ebean:
test:
platform: clickhouse #, h2, postgres, mysql, oracle, sqlserver
ddlMode: dropCreate # none | dropCreate | migrations | create
dbName: test
</pre>
<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>
<h2 id="ebean-clickhouse">ebean-clickhouse dependency</h2>
<p>
We can use the <code>io.ebean:ebean-clickhouse</code> dependency rather than <code>io.ebean:ebean</code> if we want to only
bring in the ClickHouse specific platform code. Depending on <code>io.ebean:ebean</code> will bring in all platforms.
</p>
<@next_edit "Cockroach" "/docs/database/cockroach" "/docs/database/clickhouse/index.html"/>
</body>
</html>