mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
14 lines
347 B
TypeScript
14 lines
347 B
TypeScript
import { DittoConf } from '@ditto/conf';
|
|
|
|
import { DittoStorages } from '../packages/ditto/DittoStorages.ts';
|
|
|
|
const conf = new DittoConf(Deno.env);
|
|
const storages = new DittoStorages(conf);
|
|
|
|
// This migrates kysely internally.
|
|
const kysely = await storages.kysely();
|
|
|
|
// Close the connection before exiting.
|
|
await kysely.destroy();
|
|
|
|
Deno.exit();
|