refactor: remove legacy historic sql pipeline

This commit is contained in:
Andrey Avtomonov 2026-05-11 19:06:08 +02:00
parent b3ebba9f88
commit d47826a234
31 changed files with 332 additions and 5419 deletions

View file

@ -226,7 +226,7 @@ async function defaultHistoricSqlProbe(input: KtxSetupHistoricSqlProbeInput): Pr
const project = await loadKtxProject({ projectDir: input.projectDir });
const connection = project.config.connections[input.connectionId];
const [{ PostgresPgssQueryHistoryReader }, { KtxPostgresHistoricSqlQueryClient, isKtxPostgresConnectionConfig }] =
const [{ PostgresPgssReader }, { KtxPostgresHistoricSqlQueryClient, isKtxPostgresConnectionConfig }] =
await Promise.all([import('@ktx/context/ingest'), import('@ktx/connector-postgres')]);
const postgresConnection = connection as Parameters<typeof isKtxPostgresConnectionConfig>[0];
@ -242,7 +242,7 @@ async function defaultHistoricSqlProbe(input: KtxSetupHistoricSqlProbeInput): Pr
connection: postgresConnection,
});
try {
const result = await new PostgresPgssQueryHistoryReader().probe(client);
const result = await new PostgresPgssReader().probe(client);
return {
ok: true,
lines: [