fork-archive-hub / db

holding repo for nedb typescript conversion

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

db

holding repo for nedb typescript conversion

Differences from NeDB

  • 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.

Notes:

  • Retrocompatibility with v0.6 of NeDB and before have been removed

Issues

Indexes

  • 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

About

holding repo for nedb typescript conversion

License:MIT License


Languages

Language:TypeScript 100.0%