/** * @key name 列名 * @key keyPath 缺省使用 name * @key options */ export interface IAppStackDBColumn { name: string; keyPath?: string | string[]; options?: IDBIndexParameters; } /** * @key databaseName 数据库名 * @key tableName 表名 * @key keyPath 主键 * @key columns 表列 */ export interface IAppStackDB { databaseName: string; tableName: string; primaryKey: string; columns: IAppStackDBColumn[]; } export declare class AppStackDB { static connect(options: IAppStackDB): AppStackDB; options: IAppStackDB; database: IDBDatabase; isConnecting: boolean; private constructor(); disconnect(): void; checkStore(needUpgrade: boolean, callback?: () => void): void; getTable(): Promise; insert(data: any): Promise; delete(name: string): Promise; update(data: any): Promise; get(name: string): Promise; set(data: any): Promise; } export declare const AppOrchestration: IAppStackDB; export declare const OrchestrationTemp: IAppStackDB;