Generate a diff of OSM documents in two osm-p2p-db instances.
Writes, to standard out, all of the OSM documents that appear in the second DB that don't appear in the first, as newline-delimited JSON.
Can be used in conjunction with osm-p2p-append to merge two osm-p2p-db databases together.
USAGE: osm-p2p-diff <LEVELDB-DIR> <LEVELDB-DIR>
Point this at two hyperlog leveldb
directories. If you're working with an osm-p2p-db, this will be osm-dir/log
.
To perform a merge between two osm-p2p-db
s, combine with osm-p2p-diff
:
$ osm-p2p-diff osm1/log osm2/log > diff
$ osm-p2p-append osm1 < diff
var diff = require('osm-p2p-diff')
Accepts two hyperlog instances of two osm-p2p-db
s. Returns a Readable stream
of newline-delimited JSON containing the documents that are in log2
but not
log1
.
With npm installed, run
$ npm install -g osm-p2p-diff
ISC