mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
15 lines
395 B
TypeScript
15 lines
395 B
TypeScript
import { Kysely } from 'kysely';
|
|
|
|
import { DittoTables } from '@/db/DittoTables.ts';
|
|
|
|
export interface DittoDatabase {
|
|
readonly kysely: Kysely<DittoTables>;
|
|
readonly poolSize: number;
|
|
readonly availableConnections: number;
|
|
listen(channel: string, callback: (payload: string) => void): void;
|
|
}
|
|
|
|
export interface DittoDatabaseOpts {
|
|
poolSize?: number;
|
|
debug?: 0 | 1 | 2 | 3 | 4 | 5;
|
|
}
|