Skip to content

Commit

Permalink
Updated drizzle.md connectionpool (#679)
Browse files Browse the repository at this point in the history
  • Loading branch information
chidam333 committed May 31, 2023
1 parent eedcd60 commit b762d65
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions documentation/content/main/adapters/drizzle.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ const connectionPool = mysql.createPool({
// ...
});

const db = drizzle(poolConnection);
const db = drizzle(connectionPool);

const auth = lucia({
adapter: mysql2(connectionPool)
Expand Down Expand Up @@ -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)
Expand Down

1 comment on commit b762d65

@vercel
Copy link

@vercel vercel bot commented on b762d65 May 31, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.