@rex0220/kintone-sql-tools 3.27.0 → 3.29.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 +8 -2
- package/dist-cli/ksql.js +703 -166
- package/dist-engine/batch.d.ts +13 -0
- package/dist-engine/errors.d.ts +5 -0
- package/dist-engine/index.cjs +11 -11
- package/dist-engine/index.d.ts +3 -2
- package/dist-engine/index.mjs +11 -11
- package/dist-engine/ksql-engine.umd.js +11 -11
- package/dist-engine/meta/bundle-baseline.json +10 -10
- package/dist-engine/meta/cjs.json +154 -42
- package/dist-engine/meta/esm.json +154 -41
- package/dist-engine/meta/umd.json +156 -44
- package/dist-engine/publicTypes.d.ts +73 -0
- package/dist-engine/query.d.ts +8 -0
- package/dist-mcp/ksql-mcp.js +716 -178
- package/dist-mcpb/ksql-mcp.mcpb +0 -0
- package/package.json +4 -3
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { BatchResult, RunBatchOptions } from "./publicTypes";
|
|
2
|
+
/**
|
|
3
|
+
* Executes a read-only multi-statement batch.
|
|
4
|
+
*
|
|
5
|
+
* In addition to the row-returning statements accepted by runQuery, this API
|
|
6
|
+
* accepts CREATE/DROP TEMP TABLE, SET, DECLARE, ASSERT, and EXPLAIN. IMPORT,
|
|
7
|
+
* APPLY, DML VALIDATE ONLY, and writing DML remain outside the library boundary.
|
|
8
|
+
*
|
|
9
|
+
* If any statement fails, this function throws KsqlEngineError without
|
|
10
|
+
* returning partial results. statementIndex and statementType identify the
|
|
11
|
+
* failed statement.
|
|
12
|
+
*/
|
|
13
|
+
export declare function runBatch(sql: string, options: RunBatchOptions): Promise<BatchResult>;
|
package/dist-engine/errors.d.ts
CHANGED
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
export declare class KsqlEngineError extends Error {
|
|
2
2
|
readonly code: "PARSE_ERROR" | "READ_ONLY_VIOLATION" | "SEARCH_ABORTED" | "FETCH_LIMIT_EXCEEDED" | "CLIENT_ERROR" | "EXECUTION_ERROR";
|
|
3
3
|
readonly cause?: unknown;
|
|
4
|
+
/** Zero-based index of the failed statement when raised by runBatch. */
|
|
5
|
+
readonly statementIndex?: number;
|
|
6
|
+
/** Parser statement type of the failed statement when raised by runBatch. */
|
|
7
|
+
readonly statementType?: string;
|
|
4
8
|
constructor(code: KsqlEngineError["code"], message: string, cause?: unknown);
|
|
5
9
|
}
|
|
10
|
+
export declare function withStatementDiagnostic(error: KsqlEngineError, statementIndex: number, statementType: string): KsqlEngineError;
|
|
6
11
|
export declare function readOnlyViolation(message: string): KsqlEngineError;
|
|
7
12
|
export declare function parseError(message: string, cause?: unknown): KsqlEngineError;
|
|
8
13
|
export declare function searchAborted(): KsqlEngineError;
|