rename klo to ktx

This commit is contained in:
Andrey Avtomonov 2026-05-10 23:51:24 +02:00
parent 1a42152e6f
commit 3ce510b55b
704 changed files with 10205 additions and 10255 deletions

View file

@ -1,14 +1,14 @@
import { describe, expect, it, vi } from 'vitest';
import { KloPostgresHistoricSqlQueryClient } from './historic-sql-query-client.js';
import type { KloPostgresPoolConfig, KloPostgresPoolFactory } from './connector.js';
import { KtxPostgresHistoricSqlQueryClient } from './historic-sql-query-client.js';
import type { KtxPostgresPoolConfig, KtxPostgresPoolFactory } from './connector.js';
describe('KloPostgresHistoricSqlQueryClient', () => {
describe('KtxPostgresHistoricSqlQueryClient', () => {
it('executes parameterized read-only SQL through the native Postgres connector pool', async () => {
const queryCalls: Array<{ sql: string; params?: unknown[] }> = [];
const release = vi.fn();
const end = vi.fn(async () => {});
const poolFactory: KloPostgresPoolFactory = {
createPool(_config: KloPostgresPoolConfig) {
const poolFactory: KtxPostgresPoolFactory = {
createPool(_config: KtxPostgresPoolConfig) {
return {
async connect() {
return {
@ -26,7 +26,7 @@ describe('KloPostgresHistoricSqlQueryClient', () => {
};
},
};
const client = new KloPostgresHistoricSqlQueryClient({
const client = new KtxPostgresHistoricSqlQueryClient({
connectionId: 'warehouse',
connection: {
driver: 'postgres',