Storing data locally in your JS app with IndexedDB

preview_player
Показать описание


Icons by Freepik - Flaticon
Creative Commons CC BY-SA 3.0

Timestamps:
00:00 - Intro
00:30 - Why not localStorage?
01:50 - Time for IndexedDB
02:26 - Opening the database
03:11 - Upgrades
04:00 - Adding data
07:00 - Indexing
08:10 - Cursors
09:41 - Wrappers
10:10 - idb
Рекомендации по теме
Комментарии
Автор

Great explanation, really helps to understand how to work with IndexedDB. Thank you!

bartoszkrawczyk
Автор

thank you for the information,
I just wanted to add @10:15, the promise object uses the callbacks for you exepct it duplicates the context (that's how js classes work ofc) and im sure you know async await is some synax for .then and .catch which you pass those pesky callbacks from 20 years ago which actually work pretty good with GC beecause the context is bounded to the function! But i understand it's pretty easy to leak memory working with nested CBs.
and for Dexie !! I just don't understand why on earth you would parse your query with REGEX :O

amazing content tho, thank you again!

Pigeon-
welcome to shbcf.ru