Victoria
Simple object-hash relational mapper library for Redis, targeting Node.js 6 and above.
This project is a work in progress
Be aware! Before the project reaches its first release-candidate version, APIs may change without warning and documentation may differ from the actual code base.
Usage
const Database = db = db db // create record db // fetch record with id db // query records db const search = 'adam' db
Installation
With npm:
npm install victoria
Credits
victoria
borrows concepts and inspiration from Michel Martens' ohm.
Topics (to be explained later)
- Model functionality
- Serialization & private fields (
toObject()
,toJSON()
,select()
) - Update data
- Validation
- Setters
- Getters
- Dynamic defaults
- Serialization & private fields (
- Indices
- References & population
- Record creation
- Querying
- CLI (coming soon)
Todo
- General field list parsing & cache
- Better structure to cover Redis data types:
Model
Hash
(extract from the currentModel
implementation)Collection
Set
SortedSet
List