"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.RDSPoolConfig = void 0;
const PoolConfig_1 = __importDefault(require("mysql/lib/PoolConfig"));
class RDSPoolConfig extends PoolConfig_1.default {
    #getConnectionConfig;
    constructor(options, getConnectionConfig) {
        super(options);
        this.#getConnectionConfig = getConnectionConfig;
    }
    newConnectionConfig() {
        return {
            ...super.newConnectionConfig(),
            ...this.#getConnectionConfig(),
        };
    }
}
exports.RDSPoolConfig = RDSPoolConfig;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUG9vbENvbmZpZy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy9Qb29sQ29uZmlnLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7OztBQUFBLHNFQUFtRDtBQUluRCxNQUFhLGFBQWMsU0FBUSxvQkFBZTtJQUNoRCxvQkFBb0IsQ0FBc0I7SUFFMUMsWUFBWSxPQUFtQixFQUFFLG1CQUF3QztRQUN2RSxLQUFLLENBQUMsT0FBTyxDQUFDLENBQUM7UUFDZixJQUFJLENBQUMsb0JBQW9CLEdBQUcsbUJBQW1CLENBQUM7SUFDbEQsQ0FBQztJQUVELG1CQUFtQjtRQUNqQixPQUFPO1lBQ0wsR0FBRyxLQUFLLENBQUMsbUJBQW1CLEVBQUU7WUFDOUIsR0FBRyxJQUFJLENBQUMsb0JBQW9CLEVBQUU7U0FDL0IsQ0FBQztJQUNKLENBQUM7Q0FDRjtBQWRELHNDQWNDIn0=