@reddb-io/cli 1.2.0 → 1.2.3
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/README.md +6 -6
- package/drivers/js/package.json +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -41,7 +41,7 @@ that data lives.
|
|
|
41
41
|
INSERT INTO users (name, email) VALUES ('Alice', 'alice@co.com')
|
|
42
42
|
|
|
43
43
|
-- JSON documents
|
|
44
|
-
INSERT INTO logs DOCUMENT (body) VALUES ({"level":"info","msg":"login"})
|
|
44
|
+
INSERT INTO logs DOCUMENT (body) VALUES ('{"level":"info","msg":"login"}')
|
|
45
45
|
|
|
46
46
|
-- Graph edges
|
|
47
47
|
INSERT INTO network EDGE (label, from_rid, to_rid) VALUES ('CONNECTS', 102, 103)
|
|
@@ -50,15 +50,14 @@ INSERT INTO network EDGE (label, from_rid, to_rid) VALUES ('CONNECTS', 102, 103)
|
|
|
50
50
|
SEARCH SIMILAR TEXT 'anomaly detected' COLLECTION events
|
|
51
51
|
|
|
52
52
|
-- Key-value
|
|
53
|
-
PUT config.theme = 'dark'
|
|
53
|
+
KV PUT config.theme = 'dark'
|
|
54
54
|
|
|
55
55
|
-- Time-series metrics (with retention & downsampling)
|
|
56
56
|
CREATE TIMESERIES cpu_metrics RETENTION 90 d
|
|
57
57
|
INSERT INTO cpu_metrics (metric, value, tags) VALUES ('cpu.idle', 95.2, {"host":"srv1"})
|
|
58
58
|
|
|
59
59
|
-- Hypertables + partition TTL + continuous aggregates (logs / events / telemetry)
|
|
60
|
-
CREATE HYPERTABLE access_log
|
|
61
|
-
CHUNK_INTERVAL '1 day' WITH (ttl = '90d');
|
|
60
|
+
CREATE HYPERTABLE access_log TIME_COLUMN ts CHUNK_INTERVAL '1d' TTL '90d'
|
|
62
61
|
|
|
63
62
|
-- Append-only tables (audit, ledger, immutable events)
|
|
64
63
|
CREATE TABLE audit_log (id BIGINT, action TEXT) APPEND ONLY
|
|
@@ -491,7 +490,7 @@ ceremony.
|
|
|
491
490
|
|
|
492
491
|
| Language | Package | Install | Backends |
|
|
493
492
|
|-------------------|------------------|--------------------------------|-------------------------------------|
|
|
494
|
-
| Rust | `reddb-client`
|
|
493
|
+
| Rust | `reddb-io-client` | `cargo add reddb-io-client` | embedded ✅ · gRPC ✅ · HTTP ✅ |
|
|
495
494
|
| Node / Bun / Deno | `@reddb-io/sdk` (npm) | `pnpm add @reddb-io/sdk` | stdio subprocess ✅ |
|
|
496
495
|
| Python | `reddb` (PyPI) | `pip install reddb` *(soon)* | embedded ✅ · gRPC ✅ · wire ✅ |
|
|
497
496
|
|
|
@@ -535,7 +534,7 @@ Driver docs live in `crates/reddb-client/README.md`, `drivers/js/README.md`, and
|
|
|
535
534
|
For JavaScript and TypeScript, RedDB ships three packages under the
|
|
536
535
|
`@reddb-io/` scope. Pick the one that matches your scenario — see the
|
|
537
536
|
[JavaScript / TypeScript driver guide](./docs/guides/javascript-typescript-driver.md#package-matrix)
|
|
538
|
-
for the full matrix and [ADR 0007](
|
|
537
|
+
for the full matrix and [ADR 0007](./.red/adr/0007-npm-package-matrix.md)
|
|
539
538
|
for the rationale.
|
|
540
539
|
|
|
541
540
|
```bash
|
|
@@ -631,6 +630,7 @@ RedDB from another Rust project.
|
|
|
631
630
|
- [npm CLI launcher](https://www.npmjs.com/package/@reddb-io/cli)
|
|
632
631
|
- [Releases](https://github.com/reddb-io/reddb/releases)
|
|
633
632
|
- [Workspace migration guide](./docs/migration/workspace-split.md)
|
|
633
|
+
- [Public Contract Matrix](./docs/reference/contract-matrix.md) — every doc'd promise mapped to a test or a planned-status note
|
|
634
634
|
|
|
635
635
|
---
|
|
636
636
|
|
package/drivers/js/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reddb-io/sdk",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.3",
|
|
4
4
|
"description": "Official embedded RedDB SDK — launches a local red binary over stdio JSON-RPC. Use @reddb-io/client for remote HTTP, gRPC, and RedWire.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.js",
|