-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multi-store transaction #6
Comments
I updated the description for |
I don't understand? IndexedDB allows opening a single transaction over two stores, update both, and then have the transaction commit, it's just that in the previous implementation of |
I'm trying a few implementations of IndexedDB promise-wrappers but I'm currently leaning towards my my own -- the space doesn't seem to have settled enough to have yielded a few that have wide usage (== battle-tested) except dexie, which is pretty large for what I want, and doesn't have async iterators. If you're actively using this lib I'm open to collaborating on it. |
The current implementation leverages the fact that you almost never need to explicitly call I am currently not using this lib because my job doesn't require me to work with IndexedDB anymore, and the job takes up almost all my time. I won't be able to work on it to expand it for the next month. But your gist looks promising though. |
I don't intend to call commit -- hence the
as the transaction will automatically commit at the end of the microtask. But that still leaves the fact that multiple stores can be touched within a single all-or-nothing transaction. |
It doesn't look to be possible to create multi-store transactions.
query
opens a transaction on all stores when called without an argument, but fails on line 32, asobjectStore
doesn't accept an array argument.The text was updated successfully, but these errors were encountered: