DEV Community


Discussion on: A stable alternative to SQLite for offline desktop app?

sirluky profile image
Lukáš Kovář

NeDB Is still ok

alexleung profile image
Alex Leung

NeDB keeps everything in-memory which makes it a no-go for me.

patarapolw profile image
Pacharapol Withayasakpunt Author • Edited

NeDB doesn't support TypeScript as good as @types/lokijs.

Also, far less consistency guaranteed than SQLite.

  • Multiple column unique indices
  • Foreign key integrity
  • Not Null

Not that lokijs or @lokidb/lokidb is better. However, lokijs seems to be one-man's work, yet recently updated in < 1 month. (vs NeDB.)

As I have destroyed my database with lokijs before (i.e. cannot read anymore), I cannot be sure about NeDB -- especially on ACID guarantee.