Overview
This basic wrapper is designed to:
-
Leverage the power of reasondb
-
Handle and simplify complex cursor operations, including field filtering and metadata generation
-
Simplify query building
-
Add a little Syntactic sugar into the mix
Setup
Run [sudo] npm install reasondb-wrapper --save
Setup with Redis
'use strict' const RDBWrapper = const db = root: './db' key: '@key' clear: false active: true redis: enabled: true port: 6379 host: '127.0.0.1' detect_buffers: true async: true
Setup without Redis
'use strict' const RDBWrapper = const db = root: './db' key: '@key' clear: false active: true async: true // store: RDBWrapper.JSONBlockStore // Should pull list from reasondb
Inserting a record
{ thisname = name thisbirthday = birthday } let person = "Joe" "1960-01-16" db
Getting records
{ thisname = name thisbirthday = birthday } db
Pagination and limiting records
{ thisname = name thisbirthday = birthday } db
Roadmap
Connection configurationCreate DB directory and missing Primative directoriesCleans dataAbility to specify type of fallbackAbility to POST dataGET dataPaginate resultsSpecify fields to returnDELETE data- Metadata in results (part complete)
- Optional document schema for nested Reference documents
- Query builder (filter parameter)