techfort / LokiJS

javascript embeddable / in-memory database
http:/techfort.github.io/LokiJS
MIT License
6.71k stars 478 forks source link

[Question] Where is data stored when using LokiIndexedDBAdapter? #888

Closed robertdavid010 closed 2 years ago

robertdavid010 commented 3 years ago

I am using this adapter to persist data from a browser extension/plugin instance of LokiJS. There is only 1 table in the indexedDB "LokiCatalog" when I explore it using dev tools (Application/Storage/IndexedDB. There records are the instance configuration within which the first key/value pair is "filename": "loki.db" which leads me to think that the data (which I can still persist/query using the adapted db) is still being stored in a file?

Images:

Application tab in Devtools

image

Showing persisted record in console

image

What should I expect to see when inspecting the Application -> Storage -> IndexedDB when using the IndexedDB adapter to persist data using LokiJS?

cepm-nate commented 2 years ago

In your first screenshot it should be within the 'val' field. Here's what my paged storage looks like: image

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.