Skip to content

Commit

Permalink
pg commonjs workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
rhyek committed Mar 19, 2024
1 parent e8eb31f commit e6a200e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion projects/scrape-txs/src/lib/db/index.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import { Kysely, PostgresDialect, type InsertObject } from 'kysely';
import { Pool } from 'pg';
import * as pg from 'pg';
import type { DB } from './codegen';

export type { DB, InsertObject };

const { Pool } = pg;

export const db = new Kysely<DB>({
dialect: new PostgresDialect({
pool: new Pool({
Expand Down

0 comments on commit e6a200e

Please sign in to comment.