This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
message Entry { | |
message Feed { | |
required bytes key = 1; | |
} | |
message Feeds { | |
repeated Feed feeds = 1; | |
optional Feed contentFeed = 2; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var flatten = require('.') | |
var bulk = require('bulk-write-stream') | |
var stream = bulk.obj(flatten(write)) | |
function write(batch, cb) { | |
batch.forEach(function(obj) { | |
console.log(obj) | |
}) | |
cb(null) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var hyperdb = require('hyperdb') | |
var sub = require('subhyperdb') | |
var hyperdrive = require('hyperdrive') | |
var hypergraph = require('hyper-graph-db') | |
var hyperdriveMessages = require('hyperdrive/lib/messages') | |
var dbName = process.argv[2] | |
var op = process.argv[3] | |
if (op !== 'read' && op !== 'write') { |
NewerOlder