Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

crappydb

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

crappydb

A database that only lets you put things into it and retrieve them. It doesn't even persist them. It just stores them in memory. Invest in a good uninterruptible power supply. Good luck!.

  • 1.0.0
  • unpublished
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

crappydb

A database that only lets you put things into it and retrieve them. It doesn't even persist them. It just stores them in memory. Invest in a good uninterruptible power supply. Good luck!

Inserting

Request

Perform a PUT request with application/json MIME media type to the /:collectionName route where collectionName is the name of the collection you're inserting into.

The body of your request must be a JSON object with an id property. The id will be used as a key to retrieve it later.

If an item with the id already exists in the collection, it will be overwritten.

Response

The response body will be a message telling you whether the item was inserted with or without overwriting an existing item that already had its id.

Retrieving

Request

Perform a GET request to the /:collectionName/:id route where collectionName is the name of the collection you're inserting into and id is the id property of the item you're looking for.

Response

If the collection does not exist, the response body will be a message telling you so.

If the item is not found in the collection, the response body will be a message telling you so.

If the collection exists and the item was found in it, the response body will be the object, in JSON format.

FAQs

Package last updated on 13 May 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc