Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

eugeneware/livelydb

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

livelydb

Abstract base class for Lively live-streaming database implementations.

build status

Installation

This module is installed via npm:

$ npm install livelydb

Description

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.

API

LivelyDb()

Constructor.

livelydb.get(key, callback)

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.

livelydb.put(key, value, callback)

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

livelydb.del(key, callback)

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

About

Abstract base class for Lively live-streaming database implementations.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Morty Proxy This is a proxified and sanitized view of the page, visit original site.