In this video, learn how to use three different libraries for interacting with IndexedDB, Dexie, PouchDB, and localForage with an explanation of the reasons to use each.
- Let's look at how some common libraries … work with indexedDB. … First off is Dexie.js. … Dexie is an object orientated wrapper for index DB, … which is extremely lightweight and easy to get started with … to create a new database using Dexie. … We just call new Dexie and pass it … the name of our database. … This will return the database objects for us to … interact with. Once database is created, … we can specify the object stores or tables for this … we first must specify the version of the database we are … working with. This is because once the schema is set, … you cannot change it. … Instead you create a new version of the database … with a different schema. … This is just how indexDB works. … So first we call db.version and give it a version number. … Then we call .stores, which takes an object. … Each key in the object will create a new object store. … The value of which is the list of indexes for that object … store. Unlike an RDBMS, … we do not have to specify all the fields here, …
Skill Level Advanced
Web Programming Foundationswith Morten Rand-Hendriksen58m 44s Beginner
1. Front-End Performance Tools
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.