rust-store-node 2.1.0 → 2.2.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
@@ -46,7 +46,7 @@ export declare class Registry {
46
46
  * `null` = 单源 Mongo)。SQL 同源跨 namespace 仍下推(qualified JOIN),
47
47
  * Mongo 跨 db 剥离为内存 join。
48
48
  *
49
- * 返回 `{v, kind:"federated", root, sources, join, postprocess, degraded}`;
49
+ * 返回 `{v, kind:"federated", root, sources, join, postprocess, degraded, maxRowsPerSource}`;
50
50
  * 单源(无跨源关系)时 `sources` 仅根单元、`join.edges` 为空。
51
51
  */
52
52
  planFederated(gql: string, params: any, ctx?: any | undefined | null, dsConfig?: any | undefined | null): any
@@ -136,4 +136,11 @@ export declare class Registry {
136
136
  setRequireContext(require: boolean): void
137
137
  /** 「上下文强制」开关当前值 */
138
138
  requireContext(): boolean
139
+ /**
140
+ * 设置查询档位:`"standard"`(默认,功能最大化 + 跨 DB 对齐)/
141
+ * `"text2query"`(功能收缩 + 硬限制)。未知档位抛错(禁静默回落)。
142
+ */
143
+ setProfile(profile: string): void
144
+ /** 当前查询档位字符串(`"standard"` / `"text2query"`) */
145
+ profile(): string
139
146
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rust-store-node",
3
- "version": "2.1.0",
3
+ "version": "2.2.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": "2.1.0",
72
- "rust-store-node-linux-x64-gnu": "2.1.0",
73
- "rust-store-node-linux-arm64-gnu": "2.1.0",
74
- "rust-store-node-darwin-x64": "2.1.0",
75
- "rust-store-node-darwin-arm64": "2.1.0"
71
+ "rust-store-node-win32-x64-msvc": "2.2.0",
72
+ "rust-store-node-linux-x64-gnu": "2.2.0",
73
+ "rust-store-node-linux-arm64-gnu": "2.2.0",
74
+ "rust-store-node-darwin-x64": "2.2.0",
75
+ "rust-store-node-darwin-arm64": "2.2.0"
76
76
  }
77
77
  }
Binary file
Binary file
Binary file
Binary file