UNPKG

@pujansrt/data-genie

Version:

High performant ETL engine written in TypeScript

18 lines (17 loc) 446 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Job = void 0; class Job { static async run(reader, writer) { try { for await (const record of reader.read()) { await writer.write(record); } } finally { await writer.close(); // Potentially close the reader if it has a close method } } } exports.Job = Job;