Skip to content

Commit 9fa64f6

Browse files
authored
Merge pull request #34 from MapleTechLabs/changeset-release/main
chore: version packages
2 parents 4b2cadf + 5408df6 commit 9fa64f6

4 files changed

Lines changed: 18 additions & 21 deletions

File tree

‎.changeset/clickhouse-http-and-spans.md‎

Lines changed: 0 additions & 9 deletions
This file was deleted.

‎.changeset/pull-clickhouse.md‎

Lines changed: 0 additions & 11 deletions
This file was deleted.

‎CHANGELOG.md‎

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,22 @@
11
# @maple-dev/effect-orm
22

3+
## 0.7.0
4+
5+
### Minor Changes
6+
7+
- 8ee504e: A ClickHouse client for Cloudflare Workers and any `fetch` runtime, and OpenTelemetry-shaped spans for every statement.
8+
9+
- `@maple-dev/effect-orm/clickhouse-http` is a ClickHouse `SqlClient` over Effect's `HttpClient`, so `Database` runs where `@effect/sql-clickhouse` (Node only) cannot. Interrupting a statement aborts its request and sends `KILL QUERY` for its `query_id`; failures carry the same `SqlError` reasons as Effect's driver; credentials travel in a header; `asCommand`, `withQueryId` and `withSettings` work as there.
10+
- `Database` opens one client span per statement, named and attributed per the OpenTelemetry database conventions: `db.system.name`, `db.operation.name`, `db.collection.name`, `db.query.summary`, `db.response.returned_rows` and `error.type`. `withQuerySummary(name)` names the statements an effect runs.
11+
- `CompiledQuery.collection` is the table a statement targets: a SELECT's `FROM` table, or the table a write changes.
12+
- 6792323: `effect-orm pull` writes table definitions from an existing ClickHouse database, so adopting effect-orm on a database that already has tables no longer means writing every `CH.table` by hand.
13+
14+
- It reads the database the config's `driver` connects to and writes one `CH.table` per table: engine and arguments, keys as declared, partition key, TTL, settings, comments, column defaults, codecs and skipping indexes. The definitions yield exactly what the database holds, so `generate --baseline` adopts them and the next `generate` has nothing to do.
15+
- Column types map to the built-ins that write the same SQL; others become `CH.custom` with a fitting schema (`UUID`, `Date`, `Decimal`, `Enum8`, …) or `CH.untyped`. Views and non-MergeTree tables are written as `external: true`. Materialized views, `SAMPLE BY` and `EPHEMERAL` columns are listed for review in the file's header.
16+
- `pull` is also exported from `/kit`.
17+
18+
`verify` reads a table's sorting and primary keys as declared. It had compared `system.tables.sorting_key`, which has a `VersionedCollapsingMergeTree`'s version column appended, so such a table always showed drift.
19+
320
## 0.6.2
421

522
### Patch Changes

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@maple-dev/effect-orm",
3-
"version": "0.6.2",
3+
"version": "0.7.0",
44
"description": "Type-safe ClickHouse and Postgres queries, result decoding, and reproducible benchmarks for Effect and TypeScript",
55
"keywords": [
66
"clickhouse",

0 commit comments

Comments
 (0)