11 lines
233 B
TypeScript
11 lines
233 B
TypeScript
import { Kysely, PostgresDialect } from "kysely";
|
|
import { Pool } from "pg";
|
|
|
|
const pool = new Pool({
|
|
connectionString: process.env.PACKAGES_DB_URL,
|
|
});
|
|
|
|
export const db = new Kysely({
|
|
dialect: new PostgresDialect({ pool }),
|
|
});
|