UNPKG

tiny-essentials

Version:

Collection of small, essential scripts designed to be used across various projects. These simple utilities are crafted for speed, ease of use, and versatility.

11 lines 708 B
/** * Connects to a MySQL database using the provided configuration and credentials. * The function utilizes `mySqlConnector.create` to establish the connection. * * @param {Record<string, any>} mysql - The MySQL module instance. * @param {Array|string} databases - The list of databases to connect to, or a single database name. * @param {Record<string, any>} cfg - The configuration object containing connection details (e.g., host, user, password). * @returns {Promise} Resolves with the connection object or rejects with an error. */ export default function mySQL(mysql: Record<string, any>, databases: any[] | string, cfg: Record<string, any>): Promise<any>; //# sourceMappingURL=mySQL.d.mts.map