Basic kysely setup

This commit is contained in:
Dominic Ferrando
2026-07-01 23:16:31 -04:00
parent ab6eb56814
commit 593db80067
6 changed files with 124 additions and 8 deletions
+12
View File
@@ -0,0 +1,12 @@
import { Kysely, PostgresDialect } from 'kysely';
import { type DB } from 'kysely-codegen';
import { Pool } from "pg";
import { env } from '../env';
const db = new Kysely<DB>({
dialect: new PostgresDialect({
pool: new Pool({
connectionString: env.DATABASE_URL,
}),
})
});