mirror of
https://github.com/kmc7468/arkvault.git
synced 2025-12-16 15:08:46 +00:00
Kysely 및 PostgreSQL 도입 (WiP)
This commit is contained in:
15
src/lib/server/db/kysely.ts
Normal file
15
src/lib/server/db/kysely.ts
Normal 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;
|
||||
Reference in New Issue
Block a user