UNPKG

offshore

Version:
20 lines (15 loc) 465 B
/** * Setup and Teardown Adapter Normalization */ module.exports = { // Teardown is fired once-per-adapter // Should tear down any open connections, etc. for each collection // (i.e. tear down any remaining connections to the underlying data model) // (i.e. flush data to disk before the adapter shuts down) teardown: function(cb) { if (this.adapter.teardown) { return this.adapter.teardown.apply(this, arguments); }; cb(); } };