Skip to content

Commit 0b8094c

Browse files
committed
Add note about mixing root entries and named databases, #234
1 parent 656f81d commit 0b8094c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,8 @@ rootDB.transaction(() => {
315315
});
316316
```
317317

318+
It is important to note that named databases will be added as entries to the root database. Consequently adding entries to the root database will be in the same key-value space as the metadata for named databases, and which can be confusing and mixing usage of entries in the root database with named databases is not recommended.
319+
318320
### `getLastVersion(): number`
319321
This returns the version number of the last entry that was retrieved with `get` (assuming it was a versioned database). If you are using a database with `cache` enabled, use `getEntry` instead.
320322

0 commit comments

Comments
 (0)