Basic kysely setup
This commit is contained in:
@@ -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,
|
||||
}),
|
||||
})
|
||||
});
|
||||
Reference in New Issue
Block a user