UNPKG

simple-node-db

Version:

A document database with query, insert, update, backup/restore and replication implemented on top of levelup, leveldown, and memdown.

13 lines (8 loc) 266 B
#!/usr/bin/env node 'use strict'; const path = require('path'); const SimpleDb = require( path.join( __dirname, '../lib/SimpleNodeDb' )); const db = new SimpleDb( path.join( __dirname, 'orderdb' )); db.stats(function(err, stats) { console.dir( stats ); });