Questions tagged [taffydb]

Taffydb is an opensource library that brings database features into your JavaScript applications

TaffyDB is a library to bring powerful database functionality to your javascript applications and rapidly improve the way you work with data inside of JavaScript.

TaffyDB provides:

  • Small file size, extremely fast queries
  • Powerful JavaScript centric data selection engine
  • Database inspired features such as count, update, and insert
  • Robust cross browser support
  • Easily extended with your own functions
  • Compatible with any DOM library (jQuery, YUI, Dojo, etc)
  • Compatible with Server Side JS
64 questions
5
votes
1 answer

dynamically add rows to jquery treetable *not at root*

I'm using the treetable plugin and I want to dynamically load some rows of data from a Taffy db previously populated from an xml file. I've verified that loadBranch works fine on the root of the table using "null" as the node but I can't seem to…
Jake Zieve
  • 455
  • 1
  • 6
  • 14
5
votes
3 answers

Taffydb dynamic like 'and' query

I recently started working with taffydb. Assuming I have this as my data db= TAFFY([ {OrderNo:'prod1',range: 3,description:'one two'}, {OrderNo:'prod2',range: 2,description:'one two three'}, {OrderNo:'prod3',range: 2,description:'one three…
Darksbane
  • 205
  • 1
  • 3
  • 11
4
votes
2 answers

Querying TAFFYDB nested records

I have created a data model using TAFFYDB. Some of the fields have nested records. I am facing difficulties querying and updating the nested records. For example: var friends = TAFFY([ { "id":1, "gender":"M", …
quakes
  • 43
  • 6
4
votes
3 answers

Grouping collection in an AngualJS ng-repeat?

I have a pretty simple scenerio where a collection of records is available and I need to display them in a simple ng-repeat. However I need the records grouped by a property, and my goal is not not have to alter the collection in order to have this…
bryan
  • 1,031
  • 2
  • 17
  • 36
3
votes
2 answers

taffyDB not save the data

I'm using TaffyDB to have a local/offline database but unfortunately - after refreshing the browser tab - it loses the data example: I have this initial variable var clist = TAFFY(); onclick event on button - it execute this…
AboMohsen
  • 109
  • 11
3
votes
1 answer

Non-case sensitive query with TaffyDB (or other JS DB)

I'm using TaffyDB for a "DB" for the website I am working on right now. Its pretty neat, I can do 'like' searches. However, the 'like' search is still case sensitive and that if a record exist: "Banana", a query of "banana" will fail. Anyone…
quarks
  • 33,478
  • 73
  • 290
  • 513
2
votes
1 answer

How can I add structure to an object created as the result of a db query

I have a bit of code that draws from a Taffy db, to create an object that I then iterate through. In previous versions, the order of the elements in the object were consistent in their order (although I realize this is not guaranteed in js), so I…
larkvi
  • 160
  • 8
2
votes
2 answers

How to write a taffyDB query using a variable as an attribute title?

I'm using taffyDB to query my javascript objects. I have a database db(), where each item in the db has an attribute Test Field and an attribute Test_Field. If I want to query all the items in db() for which the value of Test_Field is "test", the…
user95227
  • 1,853
  • 2
  • 18
  • 36
2
votes
0 answers

Select query usingTaffyDB not working

I'm just starting to play around with TaffyDB and it's acting funny...and I don't know if that's because I'm doing something wrong or what.