kysely
Version:
Type safe SQL query builder
27 lines (26 loc) • 897 B
JavaScript
/// <reference types="./single-connection-provider.d.ts" />
const ignoreError = () => { };
export class SingleConnectionProvider {
constructor(connection) {
this.
}
async provideConnection(consumer) {
while (this.
await this.
}
// `#runningPromise` must be set to undefined before it's
// resolved or rejected. Otherwise the while loop above
// will misbehave.
this.
this.
});
return this.
}
// Run the runner in an async function to make sure it doesn't
// throw synchronous errors.
async
return await runner(this.
}
}