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
* Use [carefully](https://github.com/ClickHouse/ClickHouse/issues/28309#issuecomment-908666042).
211
-
* This code uses or creates if not exists a temporary live view named `lv_{sha1(query)}` to reuse the same live view by parallel watchers.
212
-
* You can specify a name instead of a query.
213
-
* This API uses `JSONEachRowWithProgress` under the hood because of [the issue](https://github.com/ClickHouse/ClickHouse/issues/22996).
214
-
* Only struct rows can be used. Avoid `fetch::<u64>()` and other without specified names.
215
-
216
-
</details>
217
-
218
-
See [examples](https://github.com/ClickHouse/clickhouse-rs/tree/main/examples).
219
187
220
188
## Feature Flags
221
-
*`lz4` (enabled by default) — enables `Compression::Lz4`. If enabled, `Compression::Lz4` is used by default for all queries except for `WATCH`.
189
+
*`lz4` (enabled by default) — enables `Compression::Lz4`. If enabled, `Compression::Lz4` is used by default for all queries.
222
190
*`inserter` — enables `client.inserter()`.
223
191
*`test-util` — adds mocks. See [the example](https://github.com/ClickHouse/clickhouse-rs/tree/main/examples/mock.rs). Use it only in `dev-dependencies`.
224
-
*`watch` — enables `client.watch` functionality. See the corresponding section for details.
225
192
*`uuid` — adds `serde::uuid` to work with [uuid](https://docs.rs/uuid) crate.
226
193
*`time` — adds `serde::time` to work with [time](https://docs.rs/time) crate.
227
194
*`chrono` — adds `serde::chrono` to work with [chrono](https://docs.rs/chrono) crate.
@@ -504,7 +471,7 @@ See also the additional examples:
504
471
* [Variant data type](examples/data_types_variant.rs)
505
472
506
473
## Mocking
507
-
The crate provides utils for mocking CH server and testing DDL, `SELECT`, `INSERT` and `WATCH` queries.
474
+
The crate provides utils for mocking CH server and testing DDL, `SELECT`and `INSERT` queries.
508
475
509
476
The functionality can be enabled with the `test-util` feature. Use it **only** in dev-dependencies.
Copy file name to clipboardExpand all lines: examples/README.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ If something is missing, or you found a mistake in one of these examples, please
8
8
9
9
### General usage
10
10
11
-
-[usage.rs](usage.rs) - creating tables, executing other DDLs, inserting the data, and selecting it back. Additionally, it covers `WATCH` queries. Optional cargo features: `inserter`, `watch`.
11
+
-[usage.rs](usage.rs) - creating tables, executing other DDLs, inserting the data, and selecting it back. Optional cargo features: `inserter`.
-[inserter.rs](inserter.rs) - using the client-side batching via the `inserter` feature. Cargo features: requires `inserter`.
14
14
-[async_insert.rs](async_insert.rs) - using the server-side batching via the [asynchronous inserts](https://clickhouse.com/docs/en/optimize/asynchronous-inserts) ClickHouse feature
@@ -57,7 +57,7 @@ cargo run --package clickhouse --example async_insert
57
57
If a particular example requires a cargo feature, you could run it as follows:
58
58
59
59
```sh
60
-
cargo run --package clickhouse --example usage --features inserter watch
60
+
cargo run --package clickhouse --example usage --features inserter
61
61
```
62
62
63
63
Additionally, the individual examples should be runnable via the IDE such as CLion or RustRover.
0 commit comments