Create a Database Without MySql Server & Insert Data - IndexedDB Database Tutorial
The indexeddb is a new HTML5 concept to store the data inside user's browser. In html4 you can use web sql database. Web SQL is an API which helps developers do some database operations in client side, like: creating databases, opening the transaction, creating tables, inserting values to tables, deleting values, and reading data
But web SQL is deprecated in html5. 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 database and more effective than older technologies.
IndexedDB is a low-level API for client-side storage of significant amounts of structured data, including files/blobs.
Web Storage is useful for storing smaller amounts of data, it is less useful for storing larger amounts of structured data.
We also created a video on web storage if you want to watch that tutorial then you can watch it from the top right corner of the screen.
IndexedDB is a transactional database system, like an SQL-based RDBMS. However, unlike SQL-based RDBMSes, which use fixed-column tables, IndexedDB is a JavaScript-based object-oriented database.
The features of using indexdb database is as following
it stores key-pair values
IndexedDB API is mostly asynchronous
it is not a structured query language
it is not a relational database
it has supported to access the data from same domain
Operations performed using IndexedDB are done asynchronously, so as not to block applications.
To get access to a database, call open() on the indexedDB attribute of a window object. This method returns an IDBRequest object; asynchronous operations communicate to the calling application by firing events on IDBRequest objects.
Learn More From Our Website:-
www.dailywebtuition.com
Attribution
Icon made by monkik from www.flaticon.com
Background Music: https://www.bensound.com
Photos: https://www.pexels.com
If you have any question please comment me on my video or you can write it on channel discussion.
Thank You...!