stream-db

A database based around streams (Using Scuttlebutt)

Stream DB

var DB = require('stream-db');

Create an new database (equivalent to a table in SQL or a collection in MongoDB) with a given name.

Gets a row at a given index.

  • create: Specifies whether to create it if it doesn't exist.

Gets or creates a column with the given name.

Adds a row to the database initalizing it to the given data.

Gets or creates a cell for the given column.

Sets the given column to the given value.

Sets the given columns to the given values.

Gets the value of the given column.

Gets the values of all the columns.

Gets or creates a cell for a column of the given name.

Gets or creates a cell for the given row.

Sets the row at index to the given value.

Sets the all the rows to the given values.

Gets the value for the row at index.

Gets the values for all the rows (in the database).