mirror of
https://github.com/kmc7468/arkvault.git
synced 2026-11-04 08:10:28 +09:00
Kysely 및 PostgreSQL 도입 (WiP)
This commit is contained in:
1 parent
0002b4e5f2
commit
63eacbb1b3
10 files changed
+399
-2
No files matched your search
@@ -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