@voltro/plugin-clickhouse 0.32.0 → 0.34.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +2006 -0
- package/THIRD-PARTY-NOTICES.md +1 -29
- package/dist/index.d.ts +7 -2
- package/dist/index.js +4 -4
- package/package.json +5 -4
package/THIRD-PARTY-NOTICES.md
CHANGED
|
@@ -5,7 +5,7 @@ property of its respective copyright holders and is used under the terms of
|
|
|
5
5
|
its license. This file is provided for attribution; it grants no rights in
|
|
6
6
|
@voltro/plugin-clickhouse itself, which is proprietary (see LICENSE).
|
|
7
7
|
|
|
8
|
-
Generated from the resolved runtime dependency closure (
|
|
8
|
+
Generated from the resolved runtime dependency closure (52 packages).
|
|
9
9
|
|
|
10
10
|
---
|
|
11
11
|
|
|
@@ -247,34 +247,6 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
|
247
247
|
SOFTWARE.
|
|
248
248
|
```
|
|
249
249
|
|
|
250
|
-
## @effect/opentelemetry@0.64.0
|
|
251
|
-
|
|
252
|
-
License: MIT
|
|
253
|
-
|
|
254
|
-
```
|
|
255
|
-
MIT License
|
|
256
|
-
|
|
257
|
-
Copyright (c) 2020-present The Contributors
|
|
258
|
-
|
|
259
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
260
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
261
|
-
in the Software without restriction, including without limitation the rights
|
|
262
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
263
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
264
|
-
furnished to do so, subject to the following conditions:
|
|
265
|
-
|
|
266
|
-
The above copyright notice and this permission notice shall be included in all
|
|
267
|
-
copies or substantial portions of the Software.
|
|
268
|
-
|
|
269
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
270
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
271
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
272
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
273
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
274
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
275
|
-
SOFTWARE.
|
|
276
|
-
```
|
|
277
|
-
|
|
278
250
|
## @effect/platform-node@0.108.0
|
|
279
251
|
|
|
280
252
|
License: MIT
|
package/dist/index.d.ts
CHANGED
|
@@ -70,8 +70,13 @@ export declare const EVENTS_TABLE_DDL: (database: string, table: string) => stri
|
|
|
70
70
|
* gives idempotent upserts — re-inserting the same row with a newer
|
|
71
71
|
* `version` collapses to the latest on merge. Deletes insert a tombstone
|
|
72
72
|
* (`is_deleted = 1`); queries filter `is_deleted = 0` (or use the
|
|
73
|
-
* `FINAL` modifier).
|
|
74
|
-
*
|
|
73
|
+
* `FINAL` modifier).
|
|
74
|
+
*
|
|
75
|
+
* `version` is the framework's per-change ordering token
|
|
76
|
+
* (`MirrorVersion`), assigned in COMMIT order and carried on the write.
|
|
77
|
+
* It is never read from a clock inside this sink — that is what makes
|
|
78
|
+
* "a later write always wins" true of the later COMMIT rather than of
|
|
79
|
+
* whichever HTTP request happened to arrive last.
|
|
75
80
|
*/
|
|
76
81
|
export declare const MIRROR_TABLE_DDL: (database: string, sourceTable: string) => string;
|
|
77
82
|
|
package/dist/index.js
CHANGED
|
@@ -138,20 +138,20 @@ var a = r({ scope: "@voltro/plugin-clickhouse" }), o = "clickhouse", s = (e) =>
|
|
|
138
138
|
return {
|
|
139
139
|
tables: e.mirrorTables,
|
|
140
140
|
primaryKey: e.mirrorPrimaryKey,
|
|
141
|
-
upsert: (r, i) => t.gen(function* () {
|
|
141
|
+
upsert: ({ table: r, row: i, version: a }) => t.gen(function* () {
|
|
142
142
|
let t = String(i[e.mirrorPrimaryKey]);
|
|
143
143
|
yield* n(r, {
|
|
144
144
|
id: t,
|
|
145
145
|
data: JSON.stringify(i),
|
|
146
|
-
version:
|
|
146
|
+
version: a,
|
|
147
147
|
is_deleted: 0
|
|
148
148
|
});
|
|
149
149
|
}).pipe(d("mirror.upsert")),
|
|
150
|
-
remove: (e, r) => t.gen(function* () {
|
|
150
|
+
remove: ({ table: e, primaryKeyValue: r, version: i }) => t.gen(function* () {
|
|
151
151
|
yield* n(e, {
|
|
152
152
|
id: String(r),
|
|
153
153
|
data: "{}",
|
|
154
|
-
version:
|
|
154
|
+
version: i,
|
|
155
155
|
is_deleted: 1
|
|
156
156
|
});
|
|
157
157
|
}).pipe(d("mirror.remove"))
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voltro/plugin-clickhouse",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.34.0",
|
|
4
4
|
"description": "ClickHouse AnalyticsSink. Native HTTP ingest into a ClickHouse cluster — self-hosted OR ClickHouse Cloud. Production-grade OLAP for high-cardinality events with millisecond aggregate queries over billions of rows.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"voltro",
|
|
@@ -22,7 +22,8 @@
|
|
|
22
22
|
"types": "./dist/index.d.ts",
|
|
23
23
|
"import": "./dist/index.js",
|
|
24
24
|
"default": "./dist/index.js"
|
|
25
|
-
}
|
|
25
|
+
},
|
|
26
|
+
"./package.json": "./package.json"
|
|
26
27
|
},
|
|
27
28
|
"main": "./dist/index.js",
|
|
28
29
|
"module": "./dist/index.js",
|
|
@@ -33,8 +34,8 @@
|
|
|
33
34
|
},
|
|
34
35
|
"dependencies": {
|
|
35
36
|
"@clickhouse/client": "^1.23.1",
|
|
36
|
-
"@voltro/logger": "0.
|
|
37
|
-
"@voltro/runtime": "0.
|
|
37
|
+
"@voltro/logger": "0.34.0",
|
|
38
|
+
"@voltro/runtime": "0.34.0"
|
|
38
39
|
},
|
|
39
40
|
"peerDependencies": {
|
|
40
41
|
"effect": "^3.22.0"
|