Kysely 및 PostgreSQL 도입 (WiP)

This commit is contained in:
static
2025-01-20 10:56:58 +09:00
parent 0002b4e5f2
commit 63eacbb1b3
10 changed files with 399 additions and 2 deletions

View File

@@ -0,0 +1,15 @@
import { Kysely, PostgresDialect } from "kysely";
import { Pool } from "pg";
import type { Database } from "./schema";
const dialect = new PostgresDialect({
pool: new Pool({
// TODO
}),
});
const db = new Kysely<Database>({ dialect });
// TODO: Migration
export default db;