Initial commit - Event Planner application

This commit is contained in:
mberlin
2026-03-18 14:55:56 -03:00
commit 86d779eb4d
7548 changed files with 1006324 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.DefaultConnectionProvider = void 0;
class DefaultConnectionProvider {
#driver;
constructor(driver) {
this.#driver = driver;
}
async provideConnection(consumer) {
const connection = await this.#driver.acquireConnection();
try {
return await consumer(connection);
}
finally {
await this.#driver.releaseConnection(connection);
}
}
}
exports.DefaultConnectionProvider = DefaultConnectionProvider;