sails adapter for felixge's node-dirty
Want to see pretty graphs? Log in now!
npm install sails-dirty
|12||downloads in the last day|
|76||downloads in the last week|
|354||downloads in the last month|
|Last Published By|
|Version||0.7.4 last updated a year ago|
|Keywords||waterline, database, in-memory, sails, sails.js, sailsjs, dirty, dirtydb|
|Dependencies (6)||node-uuid, async, dirty, underscore, underscore.string, fs-extra|
Sails.js adapter for the great felixge's Dirty database. (https://github.com/felixge/node-dirty) Dirty is an in-memory and disk-persisted JSON store which works great as a bundled, starter database (with the strict caveat that it is for non-production use only).
Waterline is a new kind of storage and retrieval engine. It provides a uniform API for accessing stuff from different kinds of databases, protocols, and 3rd party APIs. That means you write the same code to get users, whether they live in mySQL, LDAP, MongoDB, or Facebook. Waterline also comes with built-in transaction support, as well as a configurable environment setting.
Writing your own adapters
It's easy to add your own adapters for integrating with proprietary systems or existing open APIs. For most things, it's as easy as
require('some-module') and mapping the appropriate methods to match waterline semantics.