holding repo for nedb typescript conversion
- Index field with an array value are explicitly not supported.
- Inserting a duplicate key will overwrite the existing key.
- Keys must all be the same data type.
- Retrocompatibility with v0.6 of NeDB and before have been removed
- If a document fails, the old version should be restored. If isUniqueKeys is false and doc 1 and 2 succeed, unique , and #3 fails, docs 1 and 2 are just lost despite already.
- Sparse is no longer an option internally. It was not being used on datastore anyway.
- TODO: Ensure keys are idempotent - even better, make sure the entire record is idempotent
NOTES: Implicit params: https://www.codeproject.com/Tips/1221966/JavaScript-Functions-Implicit-Parameters