UNPKG

lakutata

Version:

An IoC-based universal application framework.

42 lines (34 loc) 1.36 kB
/* Build Date: Mon Jan 05 2026 23:52:23 GMT+0800 (China Standard Time) */ import { a as e, O as r } from "./Package.internal.51.mjs"; var t = {}; Object.defineProperty(t, "__esModule", { value: true }); var n = t.Index = u; const s = e(); const a = r; function u(e, r, t) { const n = typeof e === "string" ? e : undefined; const u = typeof e === "string" ? r : e; let i = a.ObjectUtils.isObject(e) && !Array.isArray(e) ? e : t; if (!i) i = a.ObjectUtils.isObject(r) && !Array.isArray(r) ? r : t; return function(e, r) { (0, s.getMetadataArgsStorage)().indices.push({ target: r ? e.constructor : e, name: n, columns: r ? [ r ] : u, synchronize: i && i.synchronize === false ? false : true, where: i ? i.where : undefined, unique: i && i.unique ? true : false, spatial: i && i.spatial ? true : false, fulltext: i && i.fulltext ? true : false, nullFiltered: i && i.nullFiltered ? true : false, parser: i ? i.parser : undefined, sparse: i && i.sparse ? true : false, background: i && i.background ? true : false, concurrent: i && i.concurrent ? true : false, expireAfterSeconds: i ? i.expireAfterSeconds : undefined }); }; } export { n as I };