Type alias CreateStoreData

CreateStoreData: {
    indexs?: {
        fieldName: string | string[];
        indexName: string;
        params?: IDBIndexParameters;
    }[];
    options?: IDBObjectStoreParameters;
    storeName: string;
}

新建数据表

Type declaration

  • Optional indexs?: {
        fieldName: string | string[];
        indexName: string;
        params?: IDBIndexParameters;
    }[]

    索引配置

  • Optional options?: IDBObjectStoreParameters

    数据表名称

  • storeName: string

    数据表名称