feat: add AI catalog description generation

This commit is contained in:
Codex
2026-08-29 16:42:56 +02:00
parent b0afba81ca
commit 376dd5a09d
76 changed files with 14860 additions and 102 deletions
+5 -1
View File
@@ -180,13 +180,17 @@ export class ConcreteCatalogPostgresAccess implements CatalogPostgresAccess {
materialized.release();
};
const abort = () => { void close(); };
signal.addEventListener("abort", abort, { once: true });
try {
if (signal.aborted) throw new CatalogConnectorError("PostgreSQL connector aborted");
const passwordFile = materialized.files.get(CATALOG_SECRET_IDS.password);
if (!passwordFile) throw new CatalogConnectorError("Database password is not configured");
const password = await readFile(passwordFile, "utf8");
if (signal.aborted) throw new CatalogConnectorError("PostgreSQL connector aborted");
const tlsCaFile = materialized.files.get(CATALOG_SECRET_IDS.tlsCa);
const tlsCa = tlsCaFile ? await readFile(tlsCaFile, "utf8") : undefined;
if (signal.aborted) throw new CatalogConnectorError("PostgreSQL connector aborted");
let host: string;
let port: number;
@@ -243,8 +247,8 @@ export class ConcreteCatalogPostgresAccess implements CatalogPostgresAccess {
connectionTimeoutMillis: this.connectTimeoutMs,
...(stream ? { stream: () => stream } : {}),
});
signal.addEventListener("abort", abort, { once: true });
await client.connect();
if (signal.aborted) throw new CatalogConnectorError("PostgreSQL connector aborted");
return {
query: async (sql, values) => await client!.query(sql, [...values]),
end: close,