ditto/packages/db/DittoDB.ts
2025-02-20 11:26:27 -06:00

15 lines
414 B
TypeScript

import type { Kysely } from 'kysely';
import type { DittoTables } from './DittoTables.ts';
export interface DittoDB extends AsyncDisposable {
readonly kysely: Kysely<DittoTables>;
readonly poolSize: number;
readonly availableConnections: number;
listen(channel: string, callback: (payload: string) => void): void;
}
export interface DittoDBOpts {
poolSize?: number;
debug?: 0 | 1 | 2 | 3 | 4 | 5;
}