2.0.5 • Published 5 years ago

haro-mongo v2.0.5

Weekly downloads
3
License
BSD-3-Clause
Repository
github
Last release
5 years ago

haro-mongo

build status

Harō is a modern immutable DataStore built with ES6 features, which can be wired to an API for a complete feedback loop. It is un-opinionated, and offers a plug'n'play solution to modeling, searching, & managing data on the client, or server (in RAM). It is a partially persistent data structure, by maintaining version sets of records in versions (MVCC).

haro-mongo is a persistent storage adapter, providing 'auto saving' behavior, as well as the ability to save() & load() the entire DataStore.

If store.key is not set, the fail over "id" field will be id.

How to use

Require the adapter & register it with haro.register(key, fn). The key must match the store.adapters key.

const haro = require('haro'),
    store = haro(null, {adapters: {mongo: "mongodb://localhost/mydb"}});

// Register the adapter
store.register('mongo', require('haro-mongo'));

// Ready to `load()`, `batch()` or `set()`!

License

Copyright (c) 2019 Jason Mulligan Licensed under the BSD-3 license

2.0.5

5 years ago

2.0.4

5 years ago

2.0.3

5 years ago

2.0.2

6 years ago

2.0.1

6 years ago

2.0.0

6 years ago

1.1.3

9 years ago

1.1.2

9 years ago

1.1.1

9 years ago

1.1.0

9 years ago

1.0.6

9 years ago

1.0.5

9 years ago

1.0.4

9 years ago

1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago