Initial commit - Event Planner application
This commit is contained in:
14
node_modules/kysely/dist/esm/util/query-id.js
generated
vendored
Normal file
14
node_modules/kysely/dist/esm/util/query-id.js
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
/// <reference types="./query-id.d.ts" />
|
||||
import { randomString } from './random-string.js';
|
||||
export function createQueryId() {
|
||||
return new LazyQueryId();
|
||||
}
|
||||
class LazyQueryId {
|
||||
#queryId;
|
||||
get queryId() {
|
||||
if (this.#queryId === undefined) {
|
||||
this.#queryId = randomString(8);
|
||||
}
|
||||
return this.#queryId;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user