Initial commit
This commit is contained in:
29
node_modules/drizzle-orm/expo-sqlite/migrator.d.ts
generated
vendored
Normal file
29
node_modules/drizzle-orm/expo-sqlite/migrator.d.ts
generated
vendored
Normal file
@ -0,0 +1,29 @@
|
||||
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 {};
|
||||
Reference in New Issue
Block a user