cvsa/packages/crawler/db/init.ts
2025-03-29 18:13:57 +08:00

7 lines
186 B
TypeScript

import { Pool } from "https://deno.land/x/postgres@v0.19.3/mod.ts";
import { postgresConfig } from "db/pgConfig.ts";
const pool = new Pool(postgresConfig, 12);
export const db = pool;