1.1.3 • Published 5 years ago

kv-orm-memory v1.1.3

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

kv-orm-memory

This is an in-memory datastore plugin for the kv-orm package. No data is persisted beyond the lifetime of the instance of MemoryDatastore.

Please note, however, this datastore was not designed with security in mind. It is only intended to easily facilitate testing of the kv-orm package.

Version npm downloads npm bundle size (minified) npm bundle size (minified + gzip) License types

Installation

npm install --save kv-orm kv-orm-memory

Usage

import { BaseEntity, Column, Entity } from 'kv-orm';
import { MemoryDatastore } from 'kv-orm-memory';

const memoryDatastore = new MemoryDatastore();

@Entity(memoryDatastore)
class Author extends BaseEntity {
  @Column()
  public firstName!: string;

  @Column()
  public lastName!: string;
}

// For more information how to then use Author, check out the kv-orm package:
// https://github.com/GregBrimble/kv-orm
1.1.3

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago