axiodb
Version:
A blazing-fast, lightweight, and scalable nodejs package based DBMS for modern application. Supports schemas, encryption, and advanced query capabilities.
12 lines (11 loc) • 672 B
TypeScript
/**
* Reads data files using worker threads to parallelize the loading process.
* Each worker processes a chunk of the data files list.
*
* @param DataFilesList - An array of file paths to be read.
* @param cryptoInstance - An instance of a crypto library for decryption if needed.
* @param path - The base path where the files are located.
* @param isEncrypted - A boolean indicating if the files are encrypted.
* @returns {Promise<any[]>} - A promise that resolves to an array of loaded data.
*/
export default function ReaderWithWorker(DataFilesList: string[], cryptoInstance: any, path: string, isEncrypted: boolean, storeFileName?: boolean): Promise<any[]>;