mirror of
https://github.com/aljazceru/ditto.git
synced 2025-12-17 13:34:24 +01:00
10 lines
207 B
TypeScript
10 lines
207 B
TypeScript
import { DittoDB } from '@/db/DittoDB.ts';
|
|
|
|
// This migrates kysely internally.
|
|
const { kysely } = await DittoDB.getInstance();
|
|
|
|
// Close the connection before exiting.
|
|
await kysely.destroy();
|
|
|
|
Deno.exit();
|