Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why IndexedDB is not available in node.js? [closed]

IndexedDB API on node.js will be very useful for some app.

Why IndexedDB is not available in node.js?

IndexedDB API does not depend on DOM, even though it does use some DOM error and event style.

like image 258
Kyaw Tun Avatar asked May 10 '13 04:05

Kyaw Tun


People also ask

Is IndexedDB deprecated?

The W3C has announced that the Web SQL database is a deprecated local storage specification so web developer should not use this technology any more. indexeddb is an alternative for web SQL data base and more effective than older technologies.

How do I access IndexedDB?

Click the Application tab to open the Application panel. Expand the IndexedDB menu to see which databases are available. notes - https://mdn.github.io represents a database, where notes is the name of the database and https://mdn.github.io is the origin that can access the database. notes is an object store.

Is IndexedDB persistent?

IndexedDB is a way for you to persistently store data inside a user's browser.

Where is IndexedDB stored?

More specifically, IndexedDB data is stored in the browser profile folder.


1 Answers

It's possibly because IndexedDB is part of a different body of standards. Node.js is just ECMAScript (via Google's V8) along with their own API. Also, it may not help that IndexedDB is still in "Draft."

But, more likely it's for the same reason Node.js doesn't offer any database drivers: it's not trying to solve those problems. It's just trying to offer the APIs that assist someone who does want to solve and implement them.

And, for that, it appear at least one such project has already started: indexeddb-js. But, also have a look through IndexedDB in the NPM Registry.

like image 71
Jonathan Lonowski Avatar answered Oct 03 '22 23:10

Jonathan Lonowski