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
10 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
Louis Chatriot
3a2db5f56e
Handle errors in autoload
11 years ago
Louis Chatriot
e6cc5242f4
Fixed EXDEV issue in NW apps
11 years ago
Louis Chatriot
03f68398e6
Can remove an index
11 years ago
Louis Chatriot
0a1d4cac78
Created function to remove an index
11 years ago
Louis Chatriot
878082f38d
Remember an index upon any reload
11 years ago
Louis Chatriot
34a3ba2046
Made treatRawData tests pass
11 years ago
Louis Chatriot
8040655c6e
All tests except persistence pass
11 years ago
Louis Chatriot
8a5372f3cb
Detect array-specific comparison functions
11 years ago
Louis Chatriot
bbbc18137c
Renames queryOperatorArray
11 years ago
Louis Chatriot
5c2e44ea69
Renames queryOperatorArray
11 years ago
Louis Chatriot
74ac0bae62
Dot notation is now able to go inside arrays and array indexes
11 years ago
Louis Chatriot
4ff94fa1bf
Stashing tests on
11 years ago
Louis Chatriot
7ea00ef9cb
Added comment
11 years ago
Louis Chatriot
4776c988ec
Use a more robust persistence scheme, thanks spolu and szawcz
11 years ago
Louis Chatriot
35b46c286b
All tests including the crash one pass
11 years ago
Louis Chatriot
d5ec5185eb
Basic test for persistCachgedDatabase
11 years ago
Louis Chatriot
2a4f55504d
loadDatabase now uses ensureDatafileIntegroty
11 years ago