🚀 Launch Week Day 4:Introducing the Alert Details Page: A Better Way to Explore Alerts.Learn More →
Socket
Book a DemoInstallSign in
Socket

dashdb

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dashdb

Beautifully straight forward NoSQL JSON document DB.

Source
npmnpm
Version
1.2.2
Version published
Weekly downloads
1
-92.86%
Maintainers
1
Weekly downloads
 
Created
Source

Beautifully straight forward NoSQL JSON document DB.

DashDB

npm monthly downloads github release github license

npm install dashdb --save

Background

This project came from wanting the flexibility in a DashDB syntax, but without the bloat of having an extra database service starting in the background. Sometimes, you just want to store JSON data in a local file, and have intuitive methods that help you store and retrive that data. This's exactly what DashDB does.

Getting Started

Super straightforward. Here are the few steps:

  • Bring DashDB into your project with npm install dashdb --save
  • Create any new data collection with var users = require('dashdb')('users')
  • Run your node app. That's it!

API

With each new data collection, you get a series of helpers that easily get your data in and out from local storage. So for clarity, if you var users = require('dashdb')('users'), these methods are called on your users object.

Primary Key

By default, the primary key is simply id and DashDB auto-generates that identifier for each row (or JSON document). Alternatively, you have the option of overriding the auto-generated identifier. Simply pass your own value for the id parameter in any document save or update method.

Document Hashing

By default, DashDB auto-generates that identifier as a unique hash to that object. This way, you can easily enforce uniqueness amongst your records.

Keywords

nosql

FAQs

Package last updated on 04 Jul 2018

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