I’ve been playing around with indexed_db a bit, and it looks fairly impressive thus far.
I’m having a problem selecting a single record however, and the only way that I could get it to work is to select the whole “table” and process it until I encounter the key that I require. (objectStore.openCursor()). I presume that index.getKey() can be used in some way, but I couldn’t find out how to make this work. The other thing I attempted was index.openCursor().
Could someone please post a working example of how to do this? (Select a single “record” by key).
Try something like this:
References:
I used this github code from todo MVC example, and these MDN docs to understand IndexedDB (and Dart SDK + Editor 17463)