+ 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).
3 ответов
+ 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
+ 4
+ 1
Tibor Santa thanks! Will definitely check it out.