godcrm/query-tool-names.mjs
GOD CRM Release f89e074dd1
Some checks failed
CI / Lint / Typecheck / Test / Build (push) Has been cancelled
CI / PostgreSQL Integration Tests (push) Has been cancelled
GOD CRM — public scrubbed snapshot
Governed substrate for autonomous agents: scoped identity (passports),
audited actions, MCP workspace. Infra IPs and secrets redacted for public release.
2026-08-10 04:01:45 +03:00

22 lines
543 B
JavaScript

import pg from 'pg';
const pool = new pg.Pool({
user: 'godcrm',
host: 'localhost',
database: 'godcrm_prod',
password: 'strong_password_here',
port: 5432
});
async function run() {
const ids = [22310, 22312, 22313, 22314, 22315, 22317, 22321];
const result = await pool.query(
`SELECT id, data->>'name' as tool_name FROM table_rows WHERE id = ANY($1::int[])`,
[ids]
);
console.log('Tool Names for IDs:');
console.table(result.rows);
await pool.end();
}
run().catch(e => { console.error(e); process.exit(1); });