mirror of
https://github.com/Kaelio/ktx.git
synced 2026-06-13 08:15:14 +02:00
rename klo to ktx
This commit is contained in:
parent
1a42152e6f
commit
3ce510b55b
704 changed files with 10205 additions and 10255 deletions
|
|
@ -9,14 +9,14 @@ import type {
|
|||
SqlAnalysisPort,
|
||||
} from './ports.js';
|
||||
|
||||
export type KloSqlAnalysisHttpJsonRunner = (
|
||||
export type KtxSqlAnalysisHttpJsonRunner = (
|
||||
path: string,
|
||||
payload: Record<string, unknown>,
|
||||
) => Promise<Record<string, unknown>>;
|
||||
|
||||
export interface HttpSqlAnalysisPortOptions {
|
||||
baseUrl: string;
|
||||
requestJson?: KloSqlAnalysisHttpJsonRunner;
|
||||
requestJson?: KtxSqlAnalysisHttpJsonRunner;
|
||||
}
|
||||
|
||||
function normalizedBaseUrl(baseUrl: string): string {
|
||||
|
|
@ -31,7 +31,7 @@ function parseJsonObject(raw: string, path: string): Record<string, unknown> {
|
|||
return parsed as Record<string, unknown>;
|
||||
}
|
||||
|
||||
function postJson(baseUrl: string): KloSqlAnalysisHttpJsonRunner {
|
||||
function postJson(baseUrl: string): KtxSqlAnalysisHttpJsonRunner {
|
||||
return async (path, payload) =>
|
||||
new Promise((resolve, reject) => {
|
||||
const target = new URL(path.replace(/^\//, ''), normalizedBaseUrl(baseUrl));
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
export { createHttpSqlAnalysisPort } from './http-sql-analysis-port.js';
|
||||
export type { HttpSqlAnalysisPortOptions, KloSqlAnalysisHttpJsonRunner } from './http-sql-analysis-port.js';
|
||||
export type { HttpSqlAnalysisPortOptions, KtxSqlAnalysisHttpJsonRunner } from './http-sql-analysis-port.js';
|
||||
export type {
|
||||
SqlAnalysisDialect,
|
||||
SqlAnalysisFingerprintResult,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue