rust-store-node 5.0.0 → 5.1.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/README.md
CHANGED
|
@@ -47,6 +47,8 @@ Definitions (`collection`, fields, referenced relation fields, computed-column k
|
|
|
47
47
|
Canonicalization (single implementation `core::naming`, re-exported by the bindings; hosts must not re-implement it): split on `_`, `-`, `.`, space and at lower/digit-to-upper boundaries; a trailing uppercase in a run followed by a lowercase starts the next token (`HTTPServer` -> `[http, server]`, `userID` -> `[user, id]`); digits stay inside a token (`order2Items` -> `[order2, items]`). Reassembly: snake = `t1_t2`, camel = `t1T2`, pascal = `T1T2`.
|
|
48
48
|
|
|
49
49
|
Two logical names in one schema that canonicalize equal (`orderTotal` vs `order_total`) is an error `ERR_NAME_CONFLICT:` and the service does not start (never silently overwritten). The `fields` key space is fully open — no field name is reserved: contract keys (`type`, `default`, ...) live inside a field's definition object at a different level, so `fields: { type: { type: "string" } }` is valid. Literal reserved names are only `_id` (framework primary key) and `_score` (vector score column).
|
|
50
|
+
|
|
51
|
+
Conflict detection is per group: duplicates inside `fields`, inside `relations`, inside `computes`, plus `fields` ∩ `relations` and `relations` ∩ `computes`, are all errors. **`fields` ∩ `computes` is allowed** — a computed column may override a stored field of the same name: on reads the computed value owns the output key (evaluated after the stored value is fetched / defaults are filled, so it overwrites it), while the `fields` declaration is kept for write validation, DDL and native incremental updates (`$inc`, `$set`). The two declarations serve different layers; neither is removed. `_score` remains forbidden in all three namespaces.
|
|
50
52
|
<!-- SPEC:NAMING-STYLE:END -->
|
|
51
53
|
|
|
52
54
|
<!-- SPEC:FNREF:BEGIN -->
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rust-store-node",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.1.0",
|
|
4
4
|
"description": "Node.js binding (napi-rs) for the rust-store multi-backend data engine: GQL parsing, permissions, computed columns and SQL dialect translation for MongoDB, MySQL, SQLite and PostgreSQL",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -68,10 +68,10 @@
|
|
|
68
68
|
"sql.js": "^1.8.0"
|
|
69
69
|
},
|
|
70
70
|
"optionalDependencies": {
|
|
71
|
-
"rust-store-node-win32-x64-msvc": "5.
|
|
72
|
-
"rust-store-node-linux-x64-gnu": "5.
|
|
73
|
-
"rust-store-node-linux-arm64-gnu": "5.
|
|
74
|
-
"rust-store-node-darwin-x64": "5.
|
|
75
|
-
"rust-store-node-darwin-arm64": "5.
|
|
71
|
+
"rust-store-node-win32-x64-msvc": "5.1.0",
|
|
72
|
+
"rust-store-node-linux-x64-gnu": "5.1.0",
|
|
73
|
+
"rust-store-node-linux-arm64-gnu": "5.1.0",
|
|
74
|
+
"rust-store-node-darwin-x64": "5.1.0",
|
|
75
|
+
"rust-store-node-darwin-arm64": "5.1.0"
|
|
76
76
|
}
|
|
77
77
|
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|