Socket
Book a DemoInstallSign in
Socket

mekanika-adapter-memory

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

mekanika-adapter-memory

Mekanika in-memory adapter

latest
Source
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

adapter-memory

In memory adapter

Notes

This 'adapter' is simple QO interface for storing, updating and retrieving records in memory. It is not intended for production. Its primary use is for development testing as a fixture without requiring a backend.

Storage is as simply a hash of arrays: store[ type ] = [ rec1, rec2... recN ]

Supported Query methods.

  • .create
  • .find (all/list)
  • .find (findByID)
  • .save (PUT)
  • .update (PATCH)
  • .remove

All methods except update work with arrays of items to operate on. There is no support for constraints (WHERE type conditions).

Adapter uses .id as its identifier field.

LICENSE

MIT

FAQs

Package last updated on 28 Jul 2014

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