Some checks failed
Deploy to GitHub Pages / build_site (push) Failing after 13s
16 lines
333 B
TypeScript
16 lines
333 B
TypeScript
import { drizzle } from "drizzle-orm/node-postgres";
|
|
import pg from "pg";
|
|
import * as schema from "./schema.ts";
|
|
|
|
// Use pg driver.
|
|
const { Pool } = pg;
|
|
|
|
// Instantiate Drizzle client with pg driver and schema.
|
|
export const db = drizzle({
|
|
client: new Pool({
|
|
connectionString: Deno.env.get("DATABASE_URL"),
|
|
}),
|
|
schema,
|
|
});
|
|
|