All files / src/modules/implementations/queries/list-definitions print.js

100% Statements 12/12
100% Branches 3/3
100% Functions 2/2
100% Lines 12/12

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 8 9 10 11 12 1351x 51x 51x 783x 783x 783x 783x 783x 19x 19x 783x 51x  
'use strict';
Object.defineProperty(exports, "__esModule", { value: true });
module.exports = ({ apiOptions: { parseOptions }, journalPrinter: { printJournal }, external: { zod: { z } }, }) => {
    const inputSchema = z.strictObject({
        density: z.enum(['compact', 'spacious']).default('spacious'),
        sortDeclarations: z.boolean().default(false),
    });
    function print(database, options, _caches) {
        return printJournal(database, parseOptions(inputSchema, options, 'print'));
    }
    return { inputSchema, execute: print };
};