You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[ClickHouse](https://clickhouse.com/) is a column-oriented database management system for online analytical processing (OLAP) that allows users to generate analytical reports using SQL queries in real-time.
4
+
5
+
## Install
6
+
7
+
```bash
8
+
npm install @testcontainers/clickhouse --save-dev
9
+
```
10
+
11
+
## Examples
12
+
13
+
<!--codeinclude-->
14
+
[Connect and execute query:](../../packages/modules/clickhouse/src/clickhouse-container.test.ts) inside_block:connectWithOptions
15
+
<!--/codeinclude-->
16
+
17
+
<!--codeinclude-->
18
+
[Connect using URL and execute query:](../../packages/modules/clickhouse/src/clickhouse-container.test.ts) inside_block:connectWithUrl
19
+
<!--/codeinclude-->
20
+
21
+
<!--codeinclude-->
22
+
[Connect with username and password and execute query:](../../packages/modules/clickhouse/src/clickhouse-container.test.ts) inside_block:connectWithUsernameAndPassword
[Etcd](https://etcd.io/) is a strongly consistent, distributed key-value store that provides a reliable way to store data that needs to be accessed by a distributed system or cluster of machines.
4
+
5
+
## Install
6
+
7
+
```bash
8
+
npm install @testcontainers/etcd --save-dev
9
+
```
10
+
11
+
## Examples
12
+
13
+
<!--codeinclude-->
14
+
[Read and write key-value pairs:](../../packages/modules/etcd/src/etcd-container.test.ts) inside_block:readWrite
15
+
<!--/codeinclude-->
16
+
17
+
<!--codeinclude-->
18
+
[Subscribe to key changes:](../../packages/modules/etcd/src/etcd-container.test.ts) inside_block:subscribe
This example shows the usage of the postgres module's Snapshot feature to give each test a clean database without having
32
+
to recreate the database container on every test or run heavy scripts to clean your database. This makes the individual
33
+
tests very modular, since they always run on a brand-new database.
34
+
35
+
!!!tip
36
+
You should never pass the `"postgres"` system database as the container database name if you want to use snapshots.
37
+
The Snapshot logic requires dropping the connected database and using the system database to run commands, which will
38
+
not work if the database for the container is set to `"postgres"`.
39
+
40
+
<!--codeinclude-->
41
+
[Test with a reusable Postgres container](../../packages/modules/postgresql/src/postgresql-container-snapshot.test.ts) inside_block:createAndRestoreFromSnapshot
Copy file name to clipboardExpand all lines: docs/quickstart/logging.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -132,4 +132,4 @@ If we run the test again, we'll see a lot of debug output:
132
132
[INFO] [936d82e9964e] Stopped container
133
133
```
134
134
135
-
These logs are very useful for debugging when a container isn't working as expected. You can see there are logs from the Testcontainers library, as well as logs emitted from all Testcontainers-managed containers.
135
+
These logs are useful for debugging when a container isn't working as expected. You can see there are logs from the Testcontainers library, as well as logs emitted from all Testcontainers-managed containers.
0 commit comments