cmrtk
cmrtk
DTDrizzle Team
Created by cmrtk on 12/19/2024 in #help
Driver error callback
I'm trying to upgrade to 0.3.4 with the new drizzle client and am wondering how you are supposed to access driver callback events like 'error' or 'end'. My current code looks like this:
const pg = new pg.Client(...);
const db = drizzle(pg, { schema });
pg.on("error", () => ...)
const pg = new pg.Client(...);
const db = drizzle(pg, { schema });
pg.on("error", () => ...)
2 replies