Free JavaScript database for your browser, Taffy DB

Advertisement
Post Pic

Taffy DB, which is well known JavaScript database for your browser, and which is a free and opensource JavaScript Library which acts as a thin layer inside Web 2.0 and Ajax applications.
Unique features are:

* Under 10K!
* Simple, JavaScript Centric Syntax
* Fast
* Easy to include in any web application
* Compatible with major Ajax libraries: YUI, JQuery, Dojo, Prototype, EXT, etc
* CRUD Interface (Create, Read, Update, Delete)
* Sorting
* Looping
* Advanced Queries

We can think this as a SQL database in our web browser. If you would like to know more about the same then please do have a look at here – Getting Started
Below are the few example snippets on how we are going to implement and utilize the same:
Example #1:
Let’s say you have a collection of products and you want to find every product that costs less $10 and is a book. Simple, just write some JavaScript:

1
products.find({price:{lessthan:10},type:"Book"}});

Example #2:
Let’s say you want to update every product from XZYDesign and set the status to not available:

1
products.update({status:"NA"},{manufacturer:"XZYDesign"});

Example #3:
Let’s say you want to sort your products based on type, price descending, and quantity descending:

1
products.orderBy(["type",{"price":"desc"},{"quantity":"desc"}]);

If you would like to know more about the same then please do have a look at here – Getting Started

Download Taffy DB
Feedback/Bugs
FAQ

Articles which you would like to read:
System Error: -1072896658 in IE
Simple steps to develop AJAX Website � DeveloperSnippets
Snippet Code for Simple Ajax Tabs with cool CSS Styles
A simple snippet code to learn basics of Ajax

Related Entries...

Articles which you would like to read:

You Might Like:

Advertisement

Please let us know your feedback about the article through the comments section below, we want to hear from you about our website. And your comment / advice may help us to serve you better in upcoming articles.

Thank You!
Vivekanand [Founder of DeveloperSnippets]

One Response

Free JavaScript database for your browser, Taffy DB | Rapid Prototype Info Blog
10.19.08

[...] View post:� Free JavaScript database for your browser, Taffy DB [...]

Leave Your Response