fix: add DB migration to add workspace (#3115)

This commit is contained in:
Peng Xiao authored and GitHub committed 2023-07-10 08:03:18 +00:00
1 parent 812e0e9c9a
commit dac4e390aa
14 files changed
+213 -28

No files matched your search

+9 -2
View File
@@ -7,7 +7,7 @@ export interface WatchOptions {
recursive?: boolean;
}
/** Watcher kind enumeration */
export const enum WatcherKind {
export enum WatcherKind {
/** inotify backend (linux) */
Inotify = 'Inotify',
/** FS-Event backend (mac) */
@@ -38,6 +38,12 @@ export interface InsertRow {
docId?: string;
data: Uint8Array;
}
export enum ValidationResult {
MissingTables = 0,
MissingDocIdColumn = 1,
GeneralError = 2,
Valid = 3,
}
export class Subscription {
toString(): string;
unsubscribe(): void;
@@ -71,5 +77,6 @@ export class SqliteConnection {
): Promise<void>;
close(): Promise<void>;
get isClose(): boolean;
static validate(path: string): Promise<boolean>;
static validate(path: string): Promise<ValidationResult>;
migrateAddDocId(): Promise<void>;
}