shadi
shadi
Explore posts from servers
DTDrizzle Team
Created by shadi on 7/10/2023 in #help
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);
4 replies