The majority of web applications contain one or more databases in their structure. For example, content management systems use a database in order to separate the content from page layout. In this case, the data is managed on the server side. Regarding the particular situation of AJAX applications, the data management could be a challenging problem.
One possible solution for data manipulation on client side is represented by Taffy DB. It is a free Javascript library, having a lightweight character (less than 10 KB in size). It has the next functioning principle: it makes a data layer inside your Web 2.0 or AJAX application. Practically, Taffy DB Javascript database can be included in any type of web application that require the data management on the client side.
Taffy DB provides compatibility with all major AJAX frameworks like Dojo, Prototype, JQuery and so on. The data manipulation will be performed directly in web browser through Javascript code directives. You will be able to add, remove, update, delete and search data like in a SQL database. Taffy DB also allows you to perform advanced search queries with filters that will narrow the search results. There are indeed many similarities between this Javascript database layer and SQL databases.
For example, after you define a Taffy collection as an array of objects, you can find, update, insert, sort, remove or order data through a code having a simple and direct syntax: if the variable containing the array of data is called test, an object having the name X1 can be removed by using the next query: