kysely
Version:
Type safe SQL query builder
18 lines (17 loc) • 479 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.createQueryId = void 0;
const random_string_js_1 = require("./random-string.js");
function createQueryId() {
return new LazyQueryId();
}
exports.createQueryId = createQueryId;
class LazyQueryId {
#queryId;
get queryId() {
if (this.#queryId === undefined) {
this.#queryId = (0, random_string_js_1.randomString)(8);
}
return this.#queryId;
}
}
;