All files / src/modules/interfaces database.js

100% Statements 7/7
100% Branches 2/2
100% Functions 1/1
100% Lines 7/7

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 854x 54x 786x 786x 786x 786x 54x  
'use strict';
module.exports = ({ database: { prepareDatabase }, databaseReader: { readDatabase }, }) => ({
    // Reuse a current file cache or build a database from a file or stdin.
    prepareDatabase,
    // Run a query against an existing database through a read-only connection.
    readDatabase,
});