TaffyDB is a javascript class library that helps you access JSON data in a database.

Source: Internet
Author: User

Is it very convenient to process JSON object data like a database? Today, we will introduce TaffyDB, a great javascript class library, which can help you process JSON objects in the same way as databases.
Main features
The class library is very small and has good performance.
Powerful data selection Engine
Supports different database operations, such as insert, update, and delete.
Support various browsers
Compatible with other JS Class Libraries
You can easily develop and expand applications.
Chain operations are supported, and cool and super convenient
How to Use
The JSON object is as follows:
Var sites = TAFFY ([
{
Sitename: "GBin1.com ",
Url: http://www.gbin1.com"
},
{
Sitename: "Baidu.com ",
Url: http://www.baidu.com"
},
{
Sitename: "Google.com ",
Url: http://www.google.com"
}
])
Insert data:
Sites. insert ({sitename: "GBtags.com", url: "http://www.gbtags.com "});
Retrieve Data:
Sites (). order ("sitename"). each (function (item ){
$ ('# Demo '). append ('<li> <a href = "' + item. url + '">' + item. sitename + '</a> </li> ');
});
Is it very convenient, and you can use chained operations in js Code, so that the code is more concise. I hope you like this JS class library. If you have any questions, please leave us a message. Thank you!
Source: TaffyDB, a javascript class library that helps you access JSON data in a database

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.