import { batchData, multiBatchData } from '../features/batch.js';
export function batch(command, targets, customDbPath, opts = {}) {
    const data = batchData(command, targets, customDbPath, opts);
    console.log(JSON.stringify(data, null, 2));
}
export function batchQuery(targets, customDbPath, opts = {}) {
    const { command: defaultCommand = 'where', ...rest } = opts;
    const isMulti = targets.length > 0 &&
        targets[0] !== null &&
        typeof targets[0] === 'object' &&
        !!targets[0].command;
    let data;
    if (isMulti) {
        data = multiBatchData(targets, customDbPath, rest);
    }
    else {
        data = batchData(defaultCommand, targets, customDbPath, rest);
    }
    console.log(JSON.stringify(data, null, 2));
}
//# sourceMappingURL=batch.js.map