Database

API ReferenceDatabase

Access it with:

var db = require('db');

Source


db.OBSERVABLE

Static property of
db
Type
Integer

Source


db.get()

Static method of
db
Parameters
  • key — String
  • options — Integeroptional
  • callback — Function
db.set('items', [], function(){
\  db.get('items', db.OBSERVABLE, function(err, dict){
\    dict.onInserted(function(index){
\      console.log(this.get(index) + ' inserted!');
\    });
\
\    db.append('items', 'item1', function(){
\      // item1 inserted
\    });
\  });
});

Source


db.set()

Static method of
db
Parameters
  • key — String
  • value — Any
  • callback — Functionoptional

Source


db.remove()

Static method of
db
Parameters
  • key — String
  • value — Anyoptional
  • callback — Functionoptional

Source


db.append()

Static method of
db
Parameters
  • key — String
  • value — Any
  • callback — Functionoptional

Source


DbList()

Extends
List
Returns
DbList

Source


disconnect()

Source


DbDict()

Extends
Dict
Returns
DbDict

Source


disconnect()

Source

results matching ""

    No results matching ""