Guys, I am completely stuck with something after upgrading my drizzle-orm libraru version.
This is the code I am testing:
import type { DrizzleConfig } from 'drizzle-orm'; import { drizzle } from 'drizzle-orm/node-postgres'; import { Pool } from 'pg';
... const pool = new Pool({ connectionString: ctx.env.dbUrl }) // testing direct connect const client = await pool.connect() const result = await client.query('select 2') console.log(result) // That works
const db = drizzle(pool, { schema, logger: true })
await db.execute(sql
select 1
select 1
) // that just get stuck forever and won't resolve, no errors. It logs the query though.
This is inside a cloudflare worker function, so this is unfortunately pretty hard to debug.
I am using "pg": "^8.13.1", and "drizzle-orm": "^0.35.1". I tried 0.36 and the problem is the same. Does anyone had an issue like this before or know what hint I should follow?