JKHeadley/rest-hapi

NeDB Support

開放

#170 建立於 2019年4月7日

 (5 則留言) (0 個反應) (0 位負責人)JavaScript (155 個分叉)batch import
enhancementhelp wanted

倉庫指標

星標
 (1,181 顆星)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

Is your feature request related to a problem? Please describe. For smaller projects where a full mongodb server is overkill, it would be great to use rest-hapi with NeDB: https://github.com/louischatriot/nedb

Describe the solution you'd like Rather than providing a mongo URI, we could pass in an object that maps model name keys to NeDB datastore instances (i.e., mongo collections).

Describe alternatives you've considered TingoDB, but it appears to be abandoned.

Additional context I haven't looked in detail yet to see if rest-hapi uses any parts of the mongo API that NeDB does not support.

If this seems possible, I can help with the code changes.

貢獻者指南