8 lines
221 B
TypeScript
8 lines
221 B
TypeScript
import { drizzle } from "drizzle-orm/postgres-js";
|
|
import postgres from "postgres";
|
|
import * as schema from "./schema";
|
|
|
|
const client = postgres(process.env.POSTGRES_URL!);
|
|
export const db = drizzle(client, { schema });
|
|
|