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
DYELbrah2y ago
@shadizx did you find an answer for this, I can't pass in an instance of the Pool class (from 'pg') either.
shadi
shadiOP2y ago
nah bro just ended up doing what i was doing before

Did you find this page helpful?