@tanshenghu/web-utils
Version:
web公共方法
24 lines (22 loc) • 618 B
TypeScript
/**
* 客户端indexDB 操作
* @param {string} dbName - 数据库名称
* @param {string|array} createTable - 数据库里面的表名称
* @param {number} [version = 1] - 数据库版本号
*/
declare class database {
constructor(dbName: string, createTable: string | {tableName: string, conf: object}[], version?: number);
update: Function;
insert: Function;
delete: Function;
select: Function;
connction: Function;
IDB: any;
dbConnect: any;
getCreateObjectStore: Function;
truncate: Function;
dropTable: Function;
dropDatabase: Function;
close: Function;
}
export default database;