TaffyDB

TaffyDB

Language
JavaScript
Category
4
Version
2.7.3
Authors
typicaljoe
Description
TaffyDB is an open source JavaScript library that provides powerful in-memory database capabilities to both browser and server applications.
Install Instructions
npm install --production taffy
Usage
TAFFY = require( 'taffy' ).taffy;
// where item is equal to 1
var item1 = products({item:1});
// where price is less than 100
var lowPricedItems = products({price:{lt:100}});
// where name is like "Blue Ray"
var blueRayPlayers = products({name:{like:"Blue Ray"}});
// get first record
products().first();
// get last record
products().last();
Links