Correct way of using "attachDatabasePool" from "@vercel functions"

Vercel introduced a way to share connection pool recently. Does someone know if we can just attach it like shown in the docs and the connection release will be handled correctly with the pool? https://vercel.com/guides/connection-pooling-with-functions
Connecting to Relational Databases with Vercel Functions
Learn best practices for connecting to relational databases with Vercel Functions and Fluid compute
7 Replies
Arthur
Arthur3w ago
is there smth similar with drizzle?
No description
Arthur
Arthur3w ago
maybe @S. Reka can help us, thks!
Ling Mai Jiānguǒ
I believe we don't yet have it, but will very likely implement that soon
alexblokh
alexblokh3w ago
nah, sorry, we have support for that
alexblokh
alexblokh3w ago
Drizzle ORM - PostgreSQL
Drizzle ORM is a lightweight and performant TypeScript ORM with developer experience in mind.
No description
alexblokh
alexblokh3w ago
just pass a driver to drizzle
Arthur
Arthur3w ago
thks!

Did you find this page helpful?