Does drizzle manage client connections internally?

Hi I have question for drizzle() method with STRING argument It is not clear in the documentation, but if I use string as an argument and call the method twice, does it create 2 connections/clients to the db or does it internally manage it to use the same connection/client?
const db = drizzle(process.env.DATABASE_URL); // connection 1

const db2 = drizzle(process.env.DATABASE_URL); // connection 2
const db = drizzle(process.env.DATABASE_URL); // connection 1

const db2 = drizzle(process.env.DATABASE_URL); // connection 2
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?