Files
evento/node_modules/kysely/dist/esm/util/query-id.js
2026-03-18 14:55:56 -03:00

15 lines
349 B
JavaScript

/// <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;
}
}