denali-rethinkdb
Allows use of RethinkDB as a store for your models.
Installation
- Install this package (
denali install denali-rethinkdb
) - Add a
app/orm-adapters/application.js
that extends this adapter.
; ;
- Make sure your models (if any) have their attributes defined with the attributes that this adapter defines.
Configuration
The configuration can be updated in config/environment.js
.
It would look something like:
configdatabase = config: host: 'localhost' port: 28015 db: 'test' autoCreateTables: true;
Opinions
Currently, this adapter converts model names into plural table names.
static createdAt = ; // maps to the issued table and createdAt column
Developing
- Clone the repo down
npm install
denali server
- Hit localhost:3000
Tests
$ denali test