Is there a portabale database much like sql/mysql but that can be accessed through JavaScript? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

Is there a portabale database much like sql/mysql but that can be accessed through JavaScript?

I was coding a wep page based database, getting several inputs, storing them in database and giving back results on search criteria, using php-mysql (xampp server) Now the question: can i create a similar web page based database without the need for a server- i.e. without php, but instead accessing the database directly from - let's say JavaScript? Note: Security is not the issue, as i am more interested in making all of it portable (actually there is no need to be online as well).

16th Nov 2019, 7:31 AM
storm
storm - avatar
3 Answers
+ 7
I recommend to check IndexedDB. Works with Javascript, works offline, the only caveat is that it is NOSQL (object store, not a relational database like Mysql) so its a little different than what you might be used to. https://javascript.info/indexeddb
16th Nov 2019, 7:53 AM
Tibor Santa
Tibor Santa - avatar
16th Nov 2019, 7:35 AM
Gordon
Gordon - avatar
+ 1
Tibor Santa thanks! Will definitely check it out.
16th Nov 2019, 8:03 AM
storm
storm - avatar