+ 2

How to open a database in javascript?

I recently viewed a video in which they created a database in a js file using the function openDatabase(), but it didn't work with me. why? https://youtu.be/aJuGNkCetUE

6th Aug 2018, 1:36 PM
Taki BMD
Taki BMD - avatar
3 Answers
+ 1
Web SQL is obsolated. Use IndexedDb for client database. Learn more from https://developers.google.com/web/ilt/pwa/working-with-indexeddb
6th Aug 2018, 2:00 PM
CalviŐ˛
CalviŐ˛ - avatar
+ 1
CalviŐ˛ thank you for answering my question but I'd like to know the problem. That's all!
6th Aug 2018, 2:02 PM
Taki BMD
Taki BMD - avatar
+ 1
Obsoleted code means it does not work on some of the new browsers.
6th Aug 2018, 2:13 PM
CalviŐ˛
CalviŐ˛ - avatar