import { drizzle } from "drizzle-orm/node-postgres";
export const db = await drizzle({
schema: schema,
connection: {
// ...
},
});
In tests i need to close the connection but there's no function called end in db.$client.end(). It's only exposed when manually creating pg Pool. Drizzle is not creating pool by itself?
What version of
drizzle-orm
are you using?0.36.0
What version of
drizzle-kit
are you using?0.27.1
Describe the Bug
Give this code
In tests i need to close the connection but there's no function called
end
indb.$client.end()
. It's only exposed when manually creatingpg
Pool. Drizzle is not creating pool by itself?Expected behavior
It should expose
end
functionEnvironment & setup
No response