Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function ChainedBatch (db) {
AbstractChainedBatch.call(this, db)
this.context = binding.batch_init(db.context)
}
function Batch (db, codec) {
AbstractChainedBatch.call(this, db)
this.codec = db.codec
this.batch = db.db.batch()
}