Kysely 및 PostgreSQL 도입 (WiP)

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

No files matched your search

+15
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;