天天看點

LinvoDB —— 用于 Node 的嵌入式文檔資料庫

linvodb 是一個 node.js/nw.js 的嵌入式資料庫引擎,類似 mongodb 和類 mongoose 資料庫,提供類似的接口,基于 nedb 開發。

特性:

類 mongodb 的查詢引擎

基于 levelup 的持久化,可選擇不同後端

nw.js 友好 - js-only backend is medea

高性能 - steady performance unaffected by db size - queries are always indexed

自動索引

live queries - make the query, get constantly up-to-date results

schemas - built-in schema support

efficient map / reduce / limit

示例代碼:

插入資料: