IndexedDB Part 3 - get and getAll

preview_player
Показать описание
This is the third video in my series on learning IndexedDB with vanilla JS and the built-in indexedDB API.
This episode covers how you can retrieve a single record or a collection of records from your database store.

Рекомендации по теме
Комментарии
Автор

Fantastic video. It was exactly what I needed. Nice Job!!!

rafaelfgyn
Автор

This is REALLY instructive and i'm trying to use it as a model for some code that i am writing, but i'm coming up short in applying it. Can anyone address whether at the 11:56 mark that "whiskey" value is a reference to something or is it a name pulled out of thin air? Could the value of the variable have been 'bob' (for example) at line 89? I'm working thru an example (using my own objects and data of course) and when i reference the variable name in my 'return `<li>` statements, i keep getting 'Undefined'. In the example, the author has declared a type above on line 46 called 'whiskey' and i'm wondering if that object is related to the map or if those variables just have coincindentally been named the same thing.

jimlanpheer
Автор

Dude you fucking saved my ass, the docs were not helpful with fetching

prajwolkoirala
Автор

line 103 li.getAttribute('data-key') returns null for me.
instead I used: let id = li.dataset.key

arlozorov
join shbcf.ru