switch to deno.land/postgresjs for free 4x speed increase

This commit is contained in:
Siddharth Singh
2024-07-01 21:42:50 +05:30
parent ae140933f5
commit 98aaab8e51
4 changed files with 10 additions and 2 deletions

View File

@@ -1,4 +1,10 @@
import { DittoDB } from '@/db/DittoDB.ts';
import { delay } from '@/test.ts';
if (Deno.env.get('CI') && Deno.env.get('DATABASE_URL')?.startsWith('postgres')) {
console.info('Waiting 15 seconds for postgres to start...');
await delay(15000);
}
const kysely = await DittoDB.getInstance();
await kysely.destroy();