0.0.3 • Published 7 years ago

p2b2-ethereum-extractor v0.0.3

Weekly downloads
4
License
MIT
Repository
github
Last release
7 years ago

Data extractor

Extracts data from given database connectors.

Each connector needs at least the following exported methods:

function connect(cb) {
	//connect to database, return callback with (null,true) if successful
	cb(null, true)
}
function insert(object, cb){
    //...
    //insert object into db
    cb(null, success);
}
function getLastBlock(cb){
    //check db for highest block number inserted
    //return blocknumber or -1 if nothing is inserted yet.
}
function disconnect(){
    //close db connection
}