Skip to content

Commit

Permalink
db Connection -> Client
Browse files Browse the repository at this point in the history
  • Loading branch information
iamtouha committed Feb 23, 2024
1 parent e70e266 commit b16e478
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/server/db/index.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { drizzle } from "drizzle-orm/planetscale-serverless";
import { Connection } from "@planetscale/database";
import { Client } from "@planetscale/database";

import { env } from "@/env";
import * as schema from "./schema";

export const connection = new Connection({ url: env.DATABASE_URL });
export const connection = new Client({ url: env.DATABASE_URL });

export const db = drizzle(connection, { schema });

0 comments on commit b16e478

Please sign in to comment.