1.1.1 • Published 3 years ago

indexeddbformat v1.1.1

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

indexeddbformat V1.1.1

基于html5的indexedDB的封装

installation


using npm:

npm install indexeddbformat --save

using yarn:

yarn add indexeddbformat

api 示例

import indexedDbformat from 'indexeddbformat';

/**查询数据
 * @return 返回值是promise对象
 * @param db_name 数据库名
 * @param storeName 表明
 * @param id 数据的索引
*/
indexedDbformat.readData(db_name,storeName, id) 

/** 添加数据
 *  @return 返回值是promise对象
 *  @param db_name 数据库名
 *  @param storeName 表明
 *  @param data 一项数据,限制索引为'id'
*/

indexedDbformat.saveData(db_name,storeName, data) 


/** 清除所有数据
 * @return 返回值是promise对象
 * @param db_name 数据库名
 * @param storeName 表明
 */

indexedDbformat.clearData(db_name,storeName)  

/** 删除指定数据
 * @return 返回值是promise对象
 * @param db_name 数据库名
 * @param storeName 表明
 * @param id 数据的索引
 */

indexedDbformat.removeData(db_name,storeName, id) 
1.1.1

3 years ago

1.1.0

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago