fix: fix several different data parsing issues

This commit is contained in:
2026-04-18 14:47:06 +00:00
parent 5141ed20f9
commit f91d8debcb
16 changed files with 632 additions and 49 deletions
+17
View File
@@ -0,0 +1,17 @@
import { Client } from "pg";
const url = process.env.DATABASE_URL ?? "postgresql://optima:123web123@localhost:5432/optima";
const c = new Client(url);
await c.connect();
const r = await c.query(
"SELECT column_name, is_nullable, column_default FROM information_schema.columns WHERE table_name = 'Opportunity' ORDER BY ordinal_position"
);
console.log("Opportunity columns:");
for (const row of r.rows) {
const nullable = row.is_nullable === "YES" ? "nullable" : "NOT NULL";
console.log(` ${row.column_name}: ${nullable}${row.column_default ? ` (default: ${row.column_default})` : ""}`);
}
await c.end();