Support
db.batch([{
condition: (newNode, oldNode, cb) => ...,
type: 'put',
key
value
}])
The condition function should be able to query the db prebatch and during batch like so (maybe):
condition (newNode, oldNode, cb) {
// db.transaction is a db instance that can query the transaction + old db
db.transaction.get(...)
})