2
0
Files
cal/calcom/packages/kysely/index.ts
2024-08-09 00:39:27 +02:00

21 lines
361 B
TypeScript

import { Kysely, PostgresDialect } from "kysely";
import { Pool } from "pg";
import type { DB } from "./types.ts";
const dialect = new PostgresDialect({
pool: new Pool({
database: "calendso",
host: "localhost",
user: "postgres",
password: "postgres",
port: 5450,
}),
});
const db = new Kysely<DB>({
dialect,
});
export default db;