mirror of
https://github.com/aljazceru/ditto.git
synced 2025-12-17 05:24:22 +01:00
Simplify database interfaces, make tests use pglite
This commit is contained in:
@@ -1,11 +1,4 @@
|
||||
import { Conf } from '@/config.ts';
|
||||
import { DittoDB } from '@/db/DittoDB.ts';
|
||||
import { sleep } from '@/test.ts';
|
||||
|
||||
if (Deno.env.get('CI') && Conf.db.dialect === 'postgres') {
|
||||
console.info('Waiting 1 second for postgres to start...');
|
||||
await sleep(1_000);
|
||||
}
|
||||
|
||||
// This migrates kysely internally.
|
||||
const { kysely } = await DittoDB.getInstance();
|
||||
|
||||
Reference in New Issue
Block a user