mehdi
fcd1546220
add typings
3 years ago
mehdi
2230f6c1e4
jsdoc details + timeout
3 years ago
Timothée Rebours
de162b0b16
stop using util
4 years ago
Timothée Rebours
e8cba5273a
cleanup code
4 years ago
Timothée Rebours
5c6561307d
remove underscore
4 years ago
Timothée Rebours
a4cd69f5c6
re-make the build process with webpack, swicth to Karma for the browser tests, bumps all dependencies except , remove bower.json, remove browser build from repo (will be published on npm though)
4 years ago
Timothée Rebours
185ae680b8
standard everything except browser-version
4 years ago
Louis Chatriot
cadf4ef434
Updated browser tests
9 years ago
Louis Chatriot
4adf9c8491
Clean update callback signature and tests
9 years ago
Louis Chatriot
65cc00b6d4
createdAt kept during any kind of update
9 years ago
Louis Chatriot
7c25401f16
TTL indexes tested
9 years ago
Louis Chatriot
645d87504d
getCandidates is now async
9 years ago
Louis Chatriot
65024439c6
Typo
9 years ago
Lukas Bestle
27b732ee9b
Fix a bug with the new EventEmitter inheritance
...
See https://travis-ci.org/lukasbestle/newdb/jobs/103116844 . The build failed for Node 0.10.
This fixes it by using a syntax that is supported in all supported Node versions, including v0.10.
9 years ago
Louis Chatriot
20eceff265
Created event compaction.done fired by datastore after a compaction operation is complete
9 years ago
Louis Chatriot
cd80806d24
CCan specify custom string comparison function
9 years ago
Louis Chatriot
6ea34ee6ae
Return updated docs tested
9 years ago
James M. Greene
aefe40d0a5
Housekeeping!
9 years ago
Louis Chatriot
3daa3b9457
Bump version
9 years ago
Louis Chatriot
94f7caf0b8
Chmod
9 years ago
Louis Chatriot
e77c4a84c6
Update function updates updatedAt field if necessary
9 years ago
Louis Chatriot
5afa535c0e
Add timestamp if required during document insertion
9 years ago
Louis Chatriot
7b3f3c2868
Fixed side effect bug
9 years ago
Louis Chatriot
ef8905adf0
createdAt timestamp
9 years ago
Louis Chatriot
51ef65be17
Can now prevent loading of the database if too much data is corrupt
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
bfca0c4799
Can now have an _id which is 0
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
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
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
Louis Chatriot
da1e4dfe13
Fixed this bug
11 years ago
Louis Chatriot
c4b29f789d
Error code works as expected
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
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