This commit is contained in:
Alex Gleason 2024-06-15 12:36:46 -05:00
parent f7e9cd235c
commit 8aaba6c19d
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7

View file

@ -1,5 +1,5 @@
import { Kysely, PostgresDialect } from 'kysely'; import { Kysely, PostgresDialect } from 'kysely';
import * as pg from "node-pg"; import * as pg from 'node-pg';
import { Conf } from '@/config.ts'; import { Conf } from '@/config.ts';
import { DittoTables } from '@/db/DittoTables.ts'; import { DittoTables } from '@/db/DittoTables.ts';
import { KyselyLogger } from '@/db/KyselyLogger.ts'; import { KyselyLogger } from '@/db/KyselyLogger.ts';
@ -12,8 +12,8 @@ export class DittoPostgres {
this.db = new Kysely({ this.db = new Kysely({
dialect: new PostgresDialect({ dialect: new PostgresDialect({
pool: new pg.default.Pool({ pool: new pg.default.Pool({
connectionString: Conf.databaseUrl connectionString: Conf.databaseUrl,
}) }),
}), }),
log: KyselyLogger, log: KyselyLogger,
}); });