Louis Chatriot
09c6309c1a
Tests for coherence of hooks done
10 years ago
Louis Chatriot
3e67adc2bb
Check that if one hook is defined the other is too
10 years ago
Louis Chatriot
64e3f1cbce
Serialization hooks well tested
10 years ago
Louis Chatriot
64aa1808a9
persistNewState uses the serialization hook
10 years ago
Louis Chatriot
20d4013f06
Fixed upsert issue with badly formatted update queries
10 years ago
Louis Chatriot
1e482a31b1
Fixed bad upsert behavior
10 years ago
Louis Chatriot
0e26841681
Can deep copy everything except invalid keys
10 years ago
Louis Chatriot
1bee5827bb
Fixed bug in deepCopy thay didnt deep copy array contents
10 years ago
Louis Chatriot
bfca0c4799
Can now have an _id which is 0
10 years ago
Louis Chatriot
c11b363ae5
Fixed
10 years ago
Louis Chatriot
236ee15e64
Reorganized tests accordingly
10 years ago
Louis Chatriot
d5958cce91
mkdirp put in storage module
10 years ago
Louis Chatriot
ef9c238322
First successful test for browser persistence
10 years ago
Louis Chatriot
857d89066f
Externalized ensureFileDoesntExist
10 years ago
Louis Chatriot
b0e3ceb1a6
Forked storage.js
10 years ago
Louis Chatriot
d65e89fb82
Fixed failing test
10 years ago
Louis Chatriot
1a65a51af2
Created _id cannot be equal to another id
10 years ago
Louis Chatriot
2d33839d84
Projections fully tested
10 years ago
Louis Chatriot
547570e9cb
Tested in find
10 years ago
Louis Chatriot
c11128160f
Projection fully tested for cursor
10 years ago
Louis Chatriot
0fb797240e
Real test for empty projection and take-type projections
10 years ago
Louis Chatriot
6841ea862a
Test with no or empty projection
10 years ago
Louis Chatriot
b6fe7c8541
Projection function added to cursor
10 years ago
Louis Chatriot
75ee7a967f
Can specify 2 or 3 args and still get desired results
10 years ago
Louis Chatriot
3b355a630d
Added a test
11 years ago
Jakub Szwacz
c5591bd039
Fix for strange Date behavior in Node Webkit
11 years ago
Paolo Scanferla
26d6ec2bfd
Added support for custom _id-s
...
As per issue #154 , if the document to be inserted
already has an _id property, that _id will be used
instead of an automatically generated one.
I updated tests, browser builds and the README.
11 years ago
Tom V
e7f8209c90
Fix the nextTick(cb) causing event loop starvation
...
If you run more than 1000 lookups (like processing a big directory of
files), you will get lots of warnings from node. Solution is to use
setImmediate(cb) instead.
11 years ago
Louis Chatriot
34d456dd29
Some formatting
11 years ago
Tim Shadel
9a917a6d57
Fix multiple sort criteria
...
With larger datasets, the sorting was incorrect. Now, instead of
sorting the array multiple times, multiple criteria are considered
in a single pass.
11 years ago
Louis Chatriot
5c418952d5
Some styling
11 years ago
Anatoly Pashin
790562c45f
fixed setAutocompactionInterval interval arg
...
if interval is undefined, then it's bigger than 5000
Test case in Chrome console:
```
> var interval
undefined
> (interval < 5000)
false
```
11 years ago
Louis Chatriot
b1b43008c9
Executor bug completely fixed
11 years ago
Louis Chatriot
da1e4dfe13
Fixed this bug
11 years ago
Louis Chatriot
c4b29f789d
Error code works as expected
11 years ago
Louis Chatriot
cf43ec1b6b
One more test
11 years ago
Bryan English
91a23044c7
operator
11 years ago
Louis Chatriot
407a7c1bac
Use cursor for counting documents
11 years ago
Louis Chatriot
1625e79ec9
find and findOne take care of deep copying the returned docs
11 years ago
Louis Chatriot
905a520e0a
Ability to get a cursor from a findOne
11 years ago
Louis Chatriot
e050dcac23
Multiple consecutive sorts are handled
11 years ago
Louis Chatriot
b04a1d23fe
Able to use sync or async API with cursor
11 years ago
Louis Chatriot
b8f641e0fe
Returning cursor conflicts with the executor
11 years ago
Louis Chatriot
83c5b63265
Tested sort with dates, strings and nested fields
11 years ago
Louis Chatriot
35180e800d
Cursor completely tested with sort, limit, skip
11 years ago
Louis Chatriot
4b780652d4
Limit and sort together tested
11 years ago
Louis Chatriot
6c674b7f82
Tested method chaining
11 years ago
Louis Chatriot
14f4b375ec
Added the sort option, first test done
11 years ago
Louis Chatriot
a981aa3675
Use cursor to find documents
11 years ago
Jason Rhodes
b3c69f67aa
Made upsert return reference to created document
...
When upsert is true and it can't find an existing record to match the query, it calls self._insert which will return a ref to the newly created doc as the 2nd param to the callback, but the upsert logic wasn't catching a 2nd param (only the first param: err) so I just added the 2nd param as 'newDoc' and passed it to the upsert callback instead of 'true'.
11 years ago