From b762d65bdb5b8a09a8d28d5e79f99a22934f2c71 Mon Sep 17 00:00:00 2001 From: Chidam Date: Wed, 31 May 2023 19:51:16 +0530 Subject: [PATCH] Updated drizzle.md connectionpool (#679) --- documentation/content/main/adapters/drizzle.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/documentation/content/main/adapters/drizzle.md b/documentation/content/main/adapters/drizzle.md index 6743ac34f..c9a178e97 100644 --- a/documentation/content/main/adapters/drizzle.md +++ b/documentation/content/main/adapters/drizzle.md @@ -78,7 +78,7 @@ const connectionPool = mysql.createPool({ // ... }); -const db = drizzle(poolConnection); +const db = drizzle(connectionPool); const auth = lucia({ adapter: mysql2(connectionPool) @@ -167,10 +167,11 @@ import lucia from "lucia-auth"; import { pg } from "@lucia-auth/adapter-postgresql"; const connectionPool = new postgres.Pool({ + connectionString: CONNECTION_URL // ... }); -const db = drizzle(poolConnection); +const db = drizzle(connectionPool); const auth = lucia({ adapter: pg(connectionPool)