New neon http driver not working with pooled connections

is the new { drizzle } from "drizzle-orm/neon-http" not compatible with pooled connections? Getting error when I do:
const pool = new Pool({ connectionString: env.DATABASE_URL });
export const db = drizzle(pool);
const pool = new Pool({ connectionString: env.DATABASE_URL });
export const db = drizzle(pool);
but works when
const pool = neon(env.DATABASE_URL);
export const db = drizzle(pool);
const pool = neon(env.DATABASE_URL);
export const db = drizzle(pool);
2 Replies
DYELbrah
DYELbrah14mo ago
@shadizx did you find an answer for this, I can't pass in an instance of the Pool class (from 'pg') either.
shadi
shadi14mo ago
nah bro just ended up doing what i was doing before
Want results from more Discord servers?
Add your server