Spaces:
Running
Running
File size: 353 Bytes
5012205 |
1 2 3 4 5 6 7 8 9 10 11 |
import { drizzle } from "drizzle-orm/neon-serverless";
import { Pool } from "@neondatabase/serverless";
import * as schema from "./schema";
// Initialize the connection pool
const pool = new Pool({
connectionString: process.env.DATABASE_URL,
});
// Initialize Drizzle with the connection pool and schema
export const db = drizzle(pool, { schema }); |