/opt/canhelp/node_modules/kysely/dist/esm/driver
NameSizeModeActions
connection-provider.d.ts3490644editdlrm
connection-provider.js640644editdlrm
database-connection.d.ts12730644editdlrm
database-connection.js640644editdlrm
default-connection-provider.d.ts5480644editdlrm
default-connection-provider.js4540644editdlrm
driver.d.ts25680644editdlrm
driver.js7150644editdlrm
dummy-driver.d.ts20690644editdlrm
dummy-driver.js19170644editdlrm
runtime-driver.d.ts18670644editdlrm
runtime-driver.js57010644editdlrm
single-connection-provider.d.ts5200644editdlrm
single-connection-provider.js8970644editdlrm
Edit: /opt/canhelp/node_modules/kysely/dist/esm/driver/single-connection-provider.js (897B)
/// const ignoreError = () => { }; export class SingleConnectionProvider { #connection; #runningPromise; constructor(connection) { this.#connection = connection; } async provideConnection(consumer) { while (this.#runningPromise) { await this.#runningPromise.catch(ignoreError); } // `#runningPromise` must be set to undefined before it's // resolved or rejected. Otherwise the while loop above // will misbehave. this.#runningPromise = this.#run(consumer).finally(() => { this.#runningPromise = undefined; }); return this.#runningPromise; } // Run the runner in an async function to make sure it doesn't // throw synchronous errors. async #run(runner) { return await runner(this.#connection); } }