medikoo / dbjs

In-Memory Database Engine for JavaScript
MIT License
28 stars 4 forks source link

Different access modes #82

Open medikoo opened 6 years ago

medikoo commented 6 years ago

Current access mode is sync. All properties are provided as they're kept in memory. If value was not yet retrieved from database, it just resolves as undefined (or with default value from underlying prototype).

Additionally via getObservable we can get observable objects for given properties which emit events when value for property changes.

It'll be good to introduce different object representations