🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more →
Socket
Book a DemoInstallSign in
Socket

denali-rethinkdb

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

denali-rethinkdb

Allows use of [RethinkDB](https://www.rethinkdb.com) as a store for your models.

latest
npmnpm
Version
0.2.4
Version published
Weekly downloads
41
310%
Maintainers
1
Weekly downloads
 
Created
Source

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.
import RethinkdbAdapter from 'denali-rethinkdb/app/orm-adapters/rethinkdb';

export default RethinkdbAdapter;
  • 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:

config.database = {
  config: {
    host: 'localhost',
    port: 28015,
    db: 'test'
  },
  autoCreateTables: true
};

Opinions

Currently, this adapter converts model names into plural table names.

export default class Issue extends Model {

  static createdAt = attr('date'); // maps to the issued table and createdAt column

}

Developing

Tests

$ denali test

Keywords

denali

FAQs

Package last updated on 12 Jul 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts