orbitjs / orbit

Composable data framework for ambitious web applications.
https://orbitjs.com
MIT License
2.33k stars 133 forks source link

IndexedDBCache: Provide a naive, idempotent default implementation of `migrateDB` #881

Closed dgeb closed 3 years ago

dgeb commented 3 years ago

By default IndexedDBCache#migrateDB will now call createDB, which idempotently creates object stores as needed.

Also, introduces IndexedDBCache#createTransaction to DRY up the implementation.