drizzle queries won't resolve

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(sqlselect 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?
1 Reply
Luciano
LucianoOP4w ago
I just confirmed my issue only happens within the Workers code. That sucks :/
Want results from more Discord servers?
Add your server