開発者ツール
SQL方言変換・解析
sql-dialect-converter-analyzer
Use SQL Dialect Converter & Analyzer through the Zavilo SDK. Check input limits, parameters, output and supported modes below.
H · Headless
クイック操作
入力ファイル 0–1出力ファイル 0
入力
この Tool が受け付ける入力形式とファイル数です。
| 入力種類 | file-or-data |
|---|---|
| ファイル数 | 0 – 1 |
| 対応 MIME | text/plain, application/sql |
パラメータ
これらの値は request.options で渡します。
| パラメータ | 型 | 必須 | 既定値 | 許可値 / 範囲 | 説明 |
|---|---|---|---|---|---|
operation |
enum | 任意 | analyze |
convert | analyze | convert performs common rule-based dialect conversion; analyze performs static heuristic analysis without a database connection. |
sourceDialect |
enum | 任意 | — | mysql | postgres | sqlserver | Source SQL dialect. Required when operation=convert. |
targetDialect |
enum | 任意 | — | mysql | postgres | sqlserver | Target SQL dialect. Required when operation=convert. |
出力
処理完了後に返される結果形式です。
| 型 | data |
|---|---|
| ファイル数 | 0 – 0 |
| 出力 MIME | なし |
| Metadata | statement, tables, joins, ctes, warnings, sourceDialect, targetDialect |
| ZIP アーカイブ | 非対応 |
基本例
対応する統合モードを確認し、生成された開始コードをコピーできます。
Headless
const result = await client.run("sql-dialect-converter-analyzer", {
options: { operation: "analyze" }
});
console.log(result.files, result.data, result.metadata);
Embedded
await client.mount({ tool: "sql-dialect-converter-analyzer", target: "#zavilo-tool", mode: "embedded" });
This page is generated from the SDK Tool Definition used by the runtime.