Simplify database interfaces, make tests use pglite

This commit is contained in:
Alex Gleason
2024-09-11 11:48:31 -05:00
parent dc8d09a9da
commit f3ae200833
25 changed files with 117 additions and 193 deletions

View File

@@ -9,8 +9,8 @@ import { nip19 } from 'nostr-tools';
import { DittoDB } from '@/db/DittoDB.ts';
import { EventsDB } from '@/storages/EventsDB.ts';
const db = await DittoDB.getInstance();
const eventsDB = new EventsDB(db);
const { kysely } = await DittoDB.getInstance();
const eventsDB = new EventsDB(kysely);
interface ImportEventsOpts {
profilesOnly: boolean;