Git Product home page Git Product logo

sails-nedb's Introduction

image_squidhome@2x.png

NeDB Adapter Build Status

Npm Downloads

Waterline adapter for NeDB.

A persistent object store which uses Node Embedded Database as the storage engine.

Caution

In case you run multiple sails workers on a machine as part of a load balancing strategy: NeDB is not designed to synchronize file writes across multiple concurrent processes. Running an NeDB-backed sails app with more than 1 worker WILL eventually lead to inconsistent, and very likely corrupted data.

Installation

Install from NPM.

$ npm install sails-nedb --save

The NeDB dependency is actually pulled from my forked repo of the original, because I needed to add aggregation support at the DB layer. If and when this pull request gets merged into the main line, the dependendency will be switched back to the npm module.

Sails Configuration

Add the nedb config to the config/connections.js file. No special configuration is necessary. One can optionally set the filePath to point to a particular location. Files get saved to .tmp inside the application root by default.

Acknowledgement

A big thanks to the contributors of NeDB, sails-disk, and sails-mongo. This adapter owes its existence in no small amount to each of these projects :).

About Sails.js

http://sailsjs.com

About Waterline

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.

sails-nedb's People

Contributors

adityamukho avatar mikermcneil avatar mnaughto avatar

Watchers

Luis Lobo Borobia avatar James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.