dphelper 3.5.5 → 3.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -21
- package/index.cjs +1 -1
- package/index.js +1 -1
- package/package.json +4 -6
- package/types/dphelper.d.ts +0 -15
package/README.md
CHANGED
|
@@ -76,27 +76,6 @@ If you need to use state management please consider:
|
|
|
76
76
|
|
|
77
77
|
---
|
|
78
78
|
|
|
79
|
-
## 💾 IndexedDB Module
|
|
80
|
-
|
|
81
|
-
```javascript
|
|
82
|
-
// Open/create database
|
|
83
|
-
const db = await dphelper.idb.open('mydb', 1, { users: 'id++,name,email' });
|
|
84
|
-
|
|
85
|
-
// Add record
|
|
86
|
-
await dphelper.idb.put('mydb', 'users', { name: 'John', email: 'john@example.com' });
|
|
87
|
-
|
|
88
|
-
// Query records
|
|
89
|
-
const users = await dphelper.idb.getAll('mydb', 'users');
|
|
90
|
-
|
|
91
|
-
// Query by index
|
|
92
|
-
const johns = await dphelper.idb.query('mydb', 'users', 'name', 'John');
|
|
93
|
-
|
|
94
|
-
// Bulk operations
|
|
95
|
-
await dphelper.idb.bulkPut('mydb', 'users', [{name: 'A'}, {name: 'B'}]);
|
|
96
|
-
```
|
|
97
|
-
|
|
98
|
-
---
|
|
99
|
-
|
|
100
79
|
## ⚙️ Web Worker Module
|
|
101
80
|
|
|
102
81
|
```javascript
|