axiodb
Version:
The Pure JavaScript Alternative to SQLite. Embedded NoSQL database for Node.js with MongoDB-style queries, zero native dependencies, built-in InMemoryCache, and web GUI. Perfect for desktop apps, CLI tools, and embedded systems. No compilation, no platfor
14 lines (13 loc) • 843 B
TypeScript
/**
* Reads data files using worker threads to parallelize the loading process.
* For small datasets (<100 files), uses direct file reading to avoid worker thread overhead.
* Each worker processes a chunk of the data files list.
*
* @param DataFilesList - An array of file paths to be read.
* @param encryptionKey - Encryption key for decryption if needed.
* @param path - The base path where the files are located.
* @param isEncrypted - A boolean indicating if the files are encrypted.
* @param storeFileName - Whether to include the fileName in the result objects.
* @returns {Promise<any[]>} - A promise that resolves to an array of loaded data.
*/
export default function ReaderWithWorker(DataFilesList: string[], encryptionKey: string | undefined, path: string, isEncrypted: boolean, storeFileName?: boolean): Promise<any[]>;