TenantAtlas/apps/platform/.pnpm-store/v10/files/17/426018b1cc825f08f926395e59cd5d5a6cc73986bdc09af2e6193666908bcd2c8043e8f94a2785701f560709f121eaee816bdd2fd9c4f6ae2ef3ad1eb87a2b
Ahmed Darrazi 9f74f7a658
Some checks failed
PR Fast Feedback / fast-feedback (pull_request) Failing after 51s
feat: compress governance operator outcomes
2026-04-19 14:15:11 +02:00

30 lines
799 B
Plaintext

import type { OPSQLiteDatabase } from "./driver.js";
interface MigrationConfig {
journal: {
entries: {
idx: number;
when: number;
tag: string;
breakpoints: boolean;
}[];
};
migrations: Record<string, string>;
}
export declare function migrate<TSchema extends Record<string, unknown>>(db: OPSQLiteDatabase<TSchema>, config: MigrationConfig): Promise<void>;
interface State {
success: boolean;
error?: Error;
}
export declare const useMigrations: (db: OPSQLiteDatabase<any>, migrations: {
journal: {
entries: {
idx: number;
when: number;
tag: string;
breakpoints: boolean;
}[];
};
migrations: Record<string, string>;
}) => State;
export {};