UNPKG

@clickup/ent-framework

Version:

A PostgreSQL graph-database-alike library with microsharding and row-level security

38 lines 1.17 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.VCWithQueryCache = exports.VCWithStacks = exports.VCFlavor = void 0; /** * VCFlavor is some piece of info which is transitively attached to a VC and is * preserved when VC derivation (upgrade/downgrade) is happening. This piece of * info may be just an object of a separate class with no data (acts like a * boolean flag), or it can be an object with payload. * * For each flavor type, only a single VCFlavor object may exist. */ class VCFlavor { /** * Appended to the end of VC.toString() result. */ toDebugString() { return ""; } } exports.VCFlavor = VCFlavor; /** * If turned on, the debug logs will contain caller stack traces for each Ent * query. This is expensive, use in dev mode only! */ class VCWithStacks extends VCFlavor { } exports.VCWithStacks = VCWithStacks; /** * If set, Ent cache is enabled for operations in this VC. */ class VCWithQueryCache extends VCFlavor { constructor(options) { super(); this.options = options; } } exports.VCWithQueryCache = VCWithQueryCache; //# sourceMappingURL=VCFlavor.js.map