livelydb

Abstract base class for Lively live-streaming database implementations.

livelydb

Abstract base class for Lively live-streaming database implementations.

This module is installed via npm:

$ npm install livelydb

This is a base class that gets extended by database implementations that wish to be able to synchronize a remote database with a local javascript object using the Lively framework.

For an example, check out MemLively.

The intention is for implementations of levelup and even SQL-based servers to be able to synchronize their data live, in real-time to a local javascript object in both directions.

Constructor.

Retrieve the object stored in the database pointed to by the key.

The callback will be called with an error, and the data as the second argument.

Puts the object value into the database, referenced by the key key.

Delets the object from the database, referenced by the key key.