@rex0220/kintone-sql-tools 2.17.0 → 3.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 +5 -1
- package/dist-cli/ksql.js +2152 -310
- package/dist-mcp/ksql-mcp.js +2169 -319
- package/dist-mcpb/ksql-mcp.mcpb +0 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -11,6 +11,7 @@ kintone アプリを SQL 風の構文で操作するツールセットです。
|
|
|
11
11
|
- `SELECT`(JOIN/GROUP BY/HAVING/CTE/UNION)
|
|
12
12
|
- `INSERT` / `UPDATE` / `UPDATE ... FROM` / `UPSERT` / `DELETE` / `REORDER`(`--allow-dml` 必須)
|
|
13
13
|
- `EXPLAIN`
|
|
14
|
+
- **型付きcanonical `ORDER BY`とkintone固有順を選ぶ`KORDER BY`**(v3.0.0)
|
|
14
15
|
- **バッチ実行(`;` 区切りの複文)と一時テーブル `CREATE TEMP TABLE #t AS SELECT ...`**(v1.4.0)
|
|
15
16
|
- CLI / MCP: read-only バッチ + DML バッチ(一時テーブル経由の `INSERT ... SELECT` を含む)
|
|
16
17
|
- プラグイン: read-only バッチのみ(最終結果を表示)
|
|
@@ -25,6 +26,8 @@ kintone アプリを SQL 風の構文で操作するツールセットです。
|
|
|
25
26
|
- `allowPhysicalAppRefs: false` で、その profile の物理 `APPxxx` 直接参照を禁止可能
|
|
26
27
|
- `FROM` 省略 SELECT(例: `SELECT 'xxx' AS a`)
|
|
27
28
|
|
|
29
|
+
> **v3.0.0は比較・ORDER BY意味論を変更するmajor releaseです。** 数字だけの文字列、`#err`数値列の非数値、取得上限時のlocal top-N、`KORDER`予約語、EXPLAINのmetadata API利用について、[v3.0.0 移行ガイド](docs/ksql_v3_migration_guide.md)を確認してください。
|
|
30
|
+
|
|
28
31
|
## インストール
|
|
29
32
|
|
|
30
33
|
## npm(グローバル)
|
|
@@ -159,11 +162,12 @@ Options:
|
|
|
159
162
|
(batch + json: prints one JSON envelope for the whole batch)
|
|
160
163
|
--max-records <n> Max records to fetch (default: 500)
|
|
161
164
|
--fetch-parallel <n> Parallel page fetches per query: 1-10 (default: 3)
|
|
162
|
-
--on-limit <mode> On record limit: error | truncate
|
|
165
|
+
--on-limit <mode> On record limit: error | truncate (local ORDER BY needs complete input)
|
|
163
166
|
--temp-table-max-rows <n> Max rows per temp table (default: 10000, always errors on overflow)
|
|
164
167
|
--timeout <ms> Request timeout in milliseconds (default: 30000)
|
|
165
168
|
--max-concurrent <n> Max concurrent kintone requests: 1-50 (default: 10)
|
|
166
169
|
(process-wide; fixed at first resolution; KSQL_MAX_CONCURRENT wins)
|
|
170
|
+
--cursor-max-active <n> Max active cursors per host: 1-5 (default: 2; KSQL_CURSOR_MAX_ACTIVE wins)
|
|
167
171
|
--retry <n> GET retry count: 0-10, 0 disables (default: 3; KSQL_RETRY wins)
|
|
168
172
|
--retry-base-delay <ms> GET retry backoff base delay (default: 500)
|
|
169
173
|
--retry-max-delay <ms> GET retry backoff max delay (default: 8000)
|