rust-store-node 4.6.2 → 4.7.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/index.d.ts
CHANGED
|
@@ -179,6 +179,20 @@ export declare class Registry {
|
|
|
179
179
|
planExists(model: string, condition: any, routeOverride?: any | undefined | null): any
|
|
180
180
|
planCount(model: string, filter?: any | undefined | null, ctx?: any | undefined | null, routeOverride?: any | undefined | null): any
|
|
181
181
|
sortsByRelation(sort?: any | undefined | null): boolean
|
|
182
|
+
/**
|
|
183
|
+
* 并发领取计划:领取 filter 命中的前 limit 行并写入标记。
|
|
184
|
+
*
|
|
185
|
+
* 返回 `{mode: "atomic_commands", commands: [claim, find]}`——Host 须在同一连接
|
|
186
|
+
* 同一事务内顺序执行,claim 结果集 `_id` 数组回填 find 的 `___claimed_ids___`
|
|
187
|
+
* 占位符;ids 为空时跳过后续命令返回空集。`sort` 缺省 FIFO;`now` 由宿主注入。
|
|
188
|
+
*/
|
|
189
|
+
planClaim(model: string, filter: any | undefined | null, update: any | undefined | null, sort: any | undefined | null, limit: number, now?: number | undefined | null, ctx?: any | undefined | null, routeOverride?: any | undefined | null): any
|
|
190
|
+
/**
|
|
191
|
+
* 比较并写计划:对 filter 命中的行原子写入 update(matched 由宿主从 rowCount
|
|
192
|
+
* 读出)。返回 `{mode: "atomic_commands", commands: [compareAndSet]}`——单命令
|
|
193
|
+
* 也走事务序列,宿主统一在事务包裹内执行。
|
|
194
|
+
*/
|
|
195
|
+
planCompareAndSet(model: string, filter?: any | undefined | null, update?: any | undefined | null, now?: number | undefined | null, ctx?: any | undefined | null, routeOverride?: any | undefined | null): any
|
|
182
196
|
constructor()
|
|
183
197
|
/** 注册 schema(自动派生 `<Name>Deleted` 归档表;`timestamps !== false` 时补时间戳字段) */
|
|
184
198
|
register(defn: any): void
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rust-store-node",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.7.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": "4.
|
|
72
|
-
"rust-store-node-linux-x64-gnu": "4.
|
|
73
|
-
"rust-store-node-linux-arm64-gnu": "4.
|
|
74
|
-
"rust-store-node-darwin-x64": "4.
|
|
75
|
-
"rust-store-node-darwin-arm64": "4.
|
|
71
|
+
"rust-store-node-win32-x64-msvc": "4.7.0",
|
|
72
|
+
"rust-store-node-linux-x64-gnu": "4.7.0",
|
|
73
|
+
"rust-store-node-linux-arm64-gnu": "4.7.0",
|
|
74
|
+
"rust-store-node-darwin-x64": "4.7.0",
|
|
75
|
+
"rust-store-node-darwin-arm64": "4.7.0"
|
|
76
76
|
}
|
|
77
77
|
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|