Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
30 lines
805 B
Plaintext
30 lines
805 B
Plaintext
import type { ExpoSQLiteDatabase } 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: ExpoSQLiteDatabase<TSchema>, config: MigrationConfig): Promise<void>;
|
|
interface State {
|
|
success: boolean;
|
|
error?: Error;
|
|
}
|
|
export declare const useMigrations: (db: ExpoSQLiteDatabase<any>, migrations: {
|
|
journal: {
|
|
entries: {
|
|
idx: number;
|
|
when: number;
|
|
tag: string;
|
|
breakpoints: boolean;
|
|
}[];
|
|
};
|
|
migrations: Record<string, string>;
|
|
}) => State;
|
|
export {};
|