StaticcalcOptionalexclude: string[]StaticcamelConverts a camelCase string to snake_case.
The camelCase string to convert.
The converted snake_case string. If the input string is empty, the same empty string is returned.
StaticcreateCreates multiple folders if they do not already exist.
One or more folder paths to create.
true if all folders were created successfully or already existed; false if any folder failed to be created.
StaticcreateCreates a folder at the specified path if it does not already exist.
The path of the folder to create.
Always returns true.
StaticdownloadDownloads a file from the specified URL and writes it to the given path.
The URL from which to download the file.
The destination file path without extension. The file extension is derived from the response MIME type.
OptionalextMap: Map<string, string> = MineTypeMapA map that associates MIME types with file extensions. Used to determine the file extension to append.
A promise that resolves to an object containing the file name, size in bytes, and MIME type, or null if the download fails.
StaticentityReturns the relation metadata for a given entity.
The entity instance for which to retrieve relation metadata.
Optionalschema: stringOptional database schema name to associate with the relation.
An object containing:
key: the fixed key name 'e_id'.relation: the table name derived from the entity.schema: the optional schema name if provided.StaticentityReturns the column properties for a relation to the specified entity.
The entity to which the column will reference.
Optionalschema: stringOptional schema name for the foreign key.
An object containing the column data type and foreign key definition.
StaticexecExecutes the specified command with optional arguments and options.
The command to execute.
Optionalargs: string[]Optional list of arguments to pass to the command.
Optionaloptions: ExecutableOptionsOptional execution options.
A promise that resolves with the execution result.
StaticgetRetrieves the class and table names for the supplied entity.
The entity instance from which to extract metadata.
An object containing the class name and the corresponding table name derived from the entity metadata.
StaticgetReturns the current timestamp as a formatted string.
A string in the format "YYYY-MM-DD HH:mm:ss" representing the current date and time.
StaticnumFormats a number as a two‑digit string. If the provided number is less than 10, a leading zero is added.
The number to format.
The formatted number as a string, padded with a leading zero if necessary.
StaticremoveRemoves the folder at the given path if it exists.
The file system path of the folder to delete.
Returns true after attempting the removal. The method performs the deletion only when the folder is present; otherwise it simply returns true.
StaticsetupSets up the environment by creating the specified folder hierarchy.
The components that form the base path for the environment.
The sequence of folder names to be appended to the base path, creating nested directories.
Optionalother: string[]Optional additional folder names that will be created inside the final configuration directory.
An array containing the final configuration path after all directories have been created.
StaticsleepPauses execution for the specified duration.
The number of milliseconds to wait before resolving the promise.
A promise that resolves after the specified delay.
StaticworkerCreates a worker factory that processes an array of items using a pool of workers.
A promise that resolves when all workers have finished processing, with the value returned by workerFactoryWithProducer.
StaticworkerCreates a set of concurrent workers that fetch items from a producer, process them with a consumer, and collects the results.
The type of data produced by the producer function.
The type of data produced by the consumer function.
The number of worker instances to run concurrently.
An async function that yields a WDat<T> object or null to indicate no more items.
An async function that receives a WDat<T> item and returns a processed WDat<F> object.
A promise that resolves to an array containing the F values extracted from the processed WDat<F> objects.
StaticworkerProcesses a stream of data asynchronously using a producer and a consumer.
The type of the input data produced by the producer.
The type of the output data produced by the consumer.
A function that asynchronously returns a WDat<T> instance or null when no
more items are available to process.
A function that consumes a WDat<T> object and asynchronously returns a
WDat<F> instance containing the processed data.
A map that will receive the results from the consumer. The key is the
i property of the WDat object and the value is the processed data.
Resolves when the producer has returned null and all produced items have
been consumed and stored in the provided map.
Utility class providing helper functions for timing, worker pools, file system operations, string manipulation, entity metadata handling, environment setup, command execution, and file downloading.