@phenyl/memory-db
TypeScript icon, indicating that this package has built-in type declarations

4.1.0 • Public • Published

@phenyl/memory-db

volatile memory DB for local mocking

usage

import { createEntityClient } from '@phenyl/memory-db'

const entityClient = createEntityClient()

const user1 = {
        id: 'user1',
        name: 'user1'
    }

entityClient.insertOne({
    entityName: 'user',
    value: user1
})

const { entity: user } = entityClient.get({
    entityName: 'user',
    id: 'user1'
})

Installation

npm install @phenyl/memory-db

Readme

Keywords

none

Package Sidebar

Install

npm i @phenyl/memory-db

Weekly Downloads

238

Version

4.1.0

License

Apache-2.0

Unpacked Size

39.4 kB

Total Files

13

Last publish

Collaborators

  • shinout
  • naturalclar
  • sasurau4
  • wh1tecat
  • bowzstandard
  • alternacrow
  • camcam-lemon
  • 1natsu