@prisma/orm-family-mongo 8.0.0-rc.22-dev.11 → 8.0.0-rc.22-dev.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{authoring-entity-types-J_patbMZ-C509nMfw.mjs → authoring-entity-types-qeRu8r5L-kYG8jSMg.mjs} +3 -2
- package/dist/authoring-entity-types-qeRu8r5L-kYG8jSMg.mjs.map +1 -0
- package/dist/config-types-D4SnQaTy.mjs.map +1 -1
- package/dist/{contract-builder-Cr65NhJk.mjs → contract-builder-BUa0Oz34.mjs} +105 -10
- package/dist/contract-builder-BUa0Oz34.mjs.map +1 -0
- package/dist/{contract-builder-DurxXsaj.d.mts → contract-builder-x1bl1wIr.d.mts} +20 -5
- package/dist/contract-builder-x1bl1wIr.d.mts.map +1 -0
- package/dist/contract-prisma6__provider.mjs +83 -8
- package/dist/contract-prisma6__provider.mjs.map +1 -1
- package/dist/contract-psl.d.mts +6 -1
- package/dist/contract-psl.d.mts.map +1 -1
- package/dist/contract-psl.mjs +1 -1
- package/dist/contract-psl__provider.mjs +1 -1
- package/dist/contract-psl__provider.mjs.map +1 -1
- package/dist/contract-ts.d.mts +2 -2
- package/dist/contract-ts.mjs +2 -2
- package/dist/contract-ts__contract-builder.d.mts +2 -2
- package/dist/contract-ts__contract-builder.mjs +2 -2
- package/dist/contract.d.mts +3 -3
- package/dist/contract.mjs +3 -3
- package/dist/contract__entity-kinds.d.mts +1 -1
- package/dist/contract__entity-kinds.mjs +1 -1
- package/dist/{control-0YmjHGNw.d.mts → control-CJLG6g2G.d.mts} +5 -6
- package/dist/{control-0YmjHGNw.d.mts.map → control-CJLG6g2G.d.mts.map} +1 -1
- package/dist/{control-DMkn0GMN.d.mts → control-CvUovwse.d.mts} +6 -6
- package/dist/{control-DMkn0GMN.d.mts.map → control-CvUovwse.d.mts.map} +1 -1
- package/dist/{control-DzA3bjX-.mjs → control-P83KyI0L.mjs} +8 -7
- package/dist/control-P83KyI0L.mjs.map +1 -0
- package/dist/{control-adapter-BheElqfe-iFCyJUfP.d.mts → control-adapter-BheElqfe-DxUxWoeq.d.mts} +4 -4
- package/dist/{control-adapter-BheElqfe-iFCyJUfP.d.mts.map → control-adapter-BheElqfe-DxUxWoeq.d.mts.map} +1 -1
- package/dist/control-adapter-DfRH_2nl.d.mts +1 -0
- package/dist/{control-BQMBG11d.mjs → control-ywVRqK1i.mjs} +4 -7
- package/dist/{control-BQMBG11d.mjs.map → control-ywVRqK1i.mjs.map} +1 -1
- package/dist/{dist-BbJV26vR.mjs → dist-BXMjjRsI.mjs} +2 -2
- package/dist/{dist-BbJV26vR.mjs.map → dist-BXMjjRsI.mjs.map} +1 -1
- package/dist/dist-BhDqnAiz.mjs.map +1 -1
- package/dist/{dist-B-Ml8wpa.mjs → dist-By5gbTEW.mjs} +10 -5
- package/dist/dist-By5gbTEW.mjs.map +1 -0
- package/dist/{entity-kinds-BI-PWX8L-DRxc2Flr.mjs → entity-kinds-D5mTQzuZ-BY1vGgFk.mjs} +6 -2
- package/dist/entity-kinds-D5mTQzuZ-BY1vGgFk.mjs.map +1 -0
- package/dist/{execution-CGierEKK.d.mts → execution-B3Fogex9.d.mts} +3 -3
- package/dist/{execution-CGierEKK.d.mts.map → execution-B3Fogex9.d.mts.map} +1 -1
- package/dist/{exports-B2tu3O-g.mjs → exports-BRIh38XT.mjs} +9 -3
- package/dist/exports-BRIh38XT.mjs.map +1 -0
- package/dist/family.d.mts +9 -9
- package/dist/family.mjs +8 -8
- package/dist/family__control-adapter.d.mts +2 -2
- package/dist/family__control.d.mts +1 -1
- package/dist/family__control.mjs +2 -2
- package/dist/family__ir.d.mts +2 -2
- package/dist/family__ir.mjs +3 -3
- package/dist/family__migration.d.mts +1 -1
- package/dist/family__migration.mjs +1 -1
- package/dist/family__pack.mjs +2 -2
- package/dist/family__pack.mjs.map +1 -1
- package/dist/family__runtime.d.mts +2 -2
- package/dist/family__runtime.mjs +1 -1
- package/dist/family__schema-verify.d.mts +1 -1
- package/dist/family__schema-verify.mjs +1 -1
- package/dist/{field-accessor-CqKt9hxI-AngsT5mI.d.mts → field-accessor-CqKt9hxI-CI_pUKZN.d.mts} +4 -4
- package/dist/{field-accessor-CqKt9hxI-AngsT5mI.d.mts.map → field-accessor-CqKt9hxI-CI_pUKZN.d.mts.map} +1 -1
- package/dist/{index-DXhwK4nr.d.mts → index-BK3HyX9U.d.mts} +4 -4
- package/dist/{index-DXhwK4nr.d.mts.map → index-BK3HyX9U.d.mts.map} +1 -1
- package/dist/{index-TNRD-MRI.d.mts → index-BrDXnKtf.d.mts} +4 -4
- package/dist/{index-TNRD-MRI.d.mts.map → index-BrDXnKtf.d.mts.map} +1 -1
- package/dist/{index-D21Pb9vL.d.mts → index-D6MtleDl.d.mts} +11 -4
- package/dist/index-D6MtleDl.d.mts.map +1 -0
- package/dist/{index-DcQFfwkK.d.mts → index-JpsaTpKi.d.mts} +9 -5
- package/dist/{index-DcQFfwkK.d.mts.map → index-JpsaTpKi.d.mts.map} +1 -1
- package/dist/{interpreter-BX0gy2Yu-Byy8LdrE.mjs → interpreter-DpW_wEiP-Clp24cvz.mjs} +70 -17
- package/dist/interpreter-DpW_wEiP-Clp24cvz.mjs.map +1 -0
- package/dist/{ir-BGD9W6Cu.mjs → ir-Bm8xm1eu.mjs} +2 -2
- package/dist/{ir-BGD9W6Cu.mjs.map → ir-Bm8xm1eu.mjs.map} +1 -1
- package/dist/{ir-DH1ciHWj.d.mts → ir-BzKq60Lv.d.mts} +4 -4
- package/dist/{ir-DH1ciHWj.d.mts.map → ir-BzKq60Lv.d.mts.map} +1 -1
- package/dist/lowering.d.mts +1 -1
- package/dist/{migration-DDXXsPCK.mjs → migration-LHRzvIrb.mjs} +2 -2
- package/dist/{migration-DDXXsPCK.mjs.map → migration-LHRzvIrb.mjs.map} +1 -1
- package/dist/{migration-fjq98toS.d.mts → migration-VHZaMXZ5.d.mts} +5 -5
- package/dist/{migration-fjq98toS.d.mts.map → migration-VHZaMXZ5.d.mts.map} +1 -1
- package/dist/{mongo-contract-serializer-BBknnHWy-BYVYfFCj.mjs → mongo-contract-serializer-BBknnHWy-DAzm09wB.mjs} +3 -3
- package/dist/{mongo-contract-serializer-BBknnHWy-BYVYfFCj.mjs.map → mongo-contract-serializer-BBknnHWy-DAzm09wB.mjs.map} +1 -1
- package/dist/{mongo-contract-view-AnejqfrQ-CPjNHMFu.d.mts → mongo-contract-view-AnejqfrQ-CIb7qlMp.d.mts} +3 -3
- package/dist/{mongo-contract-view-AnejqfrQ-CPjNHMFu.d.mts.map → mongo-contract-view-AnejqfrQ-CIb7qlMp.d.mts.map} +1 -1
- package/dist/{mongo-contract-view-CF5trX6R-D-7KBBF2.mjs → mongo-contract-view-CF5trX6R-BIF8ciuY.mjs} +3 -3
- package/dist/{mongo-contract-view-CF5trX6R-D-7KBBF2.mjs.map → mongo-contract-view-CF5trX6R-BIF8ciuY.mjs.map} +1 -1
- package/dist/{mongo-value-set-DAGBOegv-B0Vel8d-.d.mts → mongo-value-set-bK4eBlxO-BCGb8sSL.d.mts} +5 -2
- package/dist/{mongo-value-set-DAGBOegv-B0Vel8d-.d.mts.map → mongo-value-set-bK4eBlxO-BCGb8sSL.d.mts.map} +1 -1
- package/dist/orm.d.mts +3 -3
- package/dist/orm.mjs +2 -2
- package/dist/query-ast.d.mts +4 -4
- package/dist/query-ast.mjs +2 -2
- package/dist/query-ast__control.d.mts +3 -3
- package/dist/query-ast__control.mjs +2 -2
- package/dist/query-ast__execution.d.mts +1 -1
- package/dist/query-builder.d.mts +4 -4
- package/dist/query-builder.mjs +1 -1
- package/dist/query-builder__contract-free.d.mts +4 -4
- package/dist/query-builder__contract-free.mjs +1 -1
- package/dist/{runtime-ZGXLjqEe.d.mts → runtime-Bf-SFBMj.d.mts} +2 -2
- package/dist/runtime-Bf-SFBMj.d.mts.map +1 -0
- package/dist/runtime.d.mts +5 -5
- package/dist/schema-ir.d.mts +1 -1
- package/dist/schema-ir.mjs +1 -1
- package/dist/{schema-verify-CpWcSHyM.d.mts → schema-verify-BJAMkVFt.d.mts} +4 -4
- package/dist/{schema-verify-CpWcSHyM.d.mts.map → schema-verify-BJAMkVFt.d.mts.map} +1 -1
- package/dist/{verify-mongo-schema-CyvUewwP-DwSUNc5f.mjs → verify-mongo-schema-D8rznxzZ-CjYf39zu.mjs} +34 -23
- package/dist/verify-mongo-schema-D8rznxzZ-CjYf39zu.mjs.map +1 -0
- package/dist/wire.d.mts +2 -2
- package/package.json +20 -20
- package/dist/authoring-entity-types-J_patbMZ-C509nMfw.mjs.map +0 -1
- package/dist/contract-builder-Cr65NhJk.mjs.map +0 -1
- package/dist/contract-builder-DurxXsaj.d.mts.map +0 -1
- package/dist/control-DzA3bjX-.mjs.map +0 -1
- package/dist/control-adapter-lmZYICe8.d.mts +0 -1
- package/dist/dist-B-Ml8wpa.mjs.map +0 -1
- package/dist/entity-kinds-BI-PWX8L-DRxc2Flr.mjs.map +0 -1
- package/dist/exports-B2tu3O-g.mjs.map +0 -1
- package/dist/index-D21Pb9vL.d.mts.map +0 -1
- package/dist/interpreter-BX0gy2Yu-Byy8LdrE.mjs.map +0 -1
- package/dist/runtime-ZGXLjqEe.d.mts.map +0 -1
- package/dist/verify-mongo-schema-CyvUewwP-DwSUNc5f.mjs.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as MongoContract, D as MongoIndexFieldValue, E as MongoIndexAuthoringInput, F as MongoIndexOptionsInput, J as MongoTypeMaps, O as MongoIndexFields, W as MongoStorageShape, v as MongoCollection, w as MongoContractWithTypeMaps, x as MongoCollectionOptionsAuthoringInput } from "./mongo-value-set-
|
|
2
|
-
import { o as FieldOwner, u as MongoContractRefusal } from "./index-
|
|
1
|
+
import { C as MongoContract, D as MongoIndexFieldValue, E as MongoIndexAuthoringInput, F as MongoIndexOptionsInput, J as MongoTypeMaps, O as MongoIndexFields, W as MongoStorageShape, v as MongoCollection, w as MongoContractWithTypeMaps, x as MongoCollectionOptionsAuthoringInput } from "./mongo-value-set-bK4eBlxO-BCGb8sSL.mjs";
|
|
2
|
+
import { o as FieldOwner, u as MongoContractRefusal } from "./index-JpsaTpKi.mjs";
|
|
3
3
|
import { r as BsonValue, t as BsonInputValue } from "./index-9DDQlC5U.mjs";
|
|
4
4
|
import { CodecLookupWithDescriptors, DataTypeParamsProblem } from "@prisma/orm-framework/components/codec";
|
|
5
5
|
import { UNBOUND_NAMESPACE_ID } from "@prisma/orm-framework/components/ir";
|
|
@@ -161,6 +161,15 @@ type BuildRefusal = {
|
|
|
161
161
|
readonly firstModel: string;
|
|
162
162
|
readonly firstPosition: number;
|
|
163
163
|
readonly signature: string;
|
|
164
|
+
} |
|
|
165
|
+
/** Two indexes of one collection with one name, written or given by `nameIndexes`. */
|
|
166
|
+
{
|
|
167
|
+
readonly kind: 'indexNameDuplicate';
|
|
168
|
+
readonly key: IndexKey;
|
|
169
|
+
readonly collection: string;
|
|
170
|
+
readonly name: string;
|
|
171
|
+
readonly firstModel: string;
|
|
172
|
+
readonly firstPosition: number;
|
|
164
173
|
} | {
|
|
165
174
|
readonly kind: 'generatedOnValueObject';
|
|
166
175
|
readonly key: FieldKey;
|
|
@@ -1003,9 +1012,15 @@ interface MergedIndexes {
|
|
|
1003
1012
|
readonly removedIndexes: readonly RemovedIndex[];
|
|
1004
1013
|
}
|
|
1005
1014
|
/**
|
|
1006
|
-
* Removes each identical or redundant index in a collection, for the Prisma 8 authoring sources to call before the builder. Two indexes match when their storage indexes, variant scope applied, have the same `indexLookupKey` with `unique` left out. Of a matching pair the first is kept, unless only the later one is unique; then the later one is kept and the earlier removed. Indexes the builder refuses are left for it to refuse. A source that reports the builder's refusals by index position maps them back through `removedIndexes`.
|
|
1015
|
+
* Removes each identical or redundant index in a collection, for the Prisma 8 authoring sources to call after `nameIndexes` and before the builder. Two indexes match when they have the same name and their storage indexes, variant scope applied, have the same `indexLookupKey` with `unique` left out. Indexes with different names are both kept: the user named them apart, and the builder refuses two identical ones. Of a matching pair the first is kept, unless only the later one is unique; then the later one is kept and the earlier removed. Indexes the builder refuses are left for it to refuse. A source that reports the builder's refusals by index position maps them back through `removedIndexes`.
|
|
1007
1016
|
*/
|
|
1008
1017
|
declare function mergeRedundantIndexes(definition: ContractDefinition, codecLookup: CodecLookupWithDescriptors, dataTypes: DataTypeSupport): MergedIndexes;
|
|
1009
1018
|
//#endregion
|
|
1010
|
-
|
|
1011
|
-
|
|
1019
|
+
//#region src/name-indexes.d.ts
|
|
1020
|
+
/**
|
|
1021
|
+
* Names each index the definition writes without a name as MongoDB names an index created without one: its stored keys and directions, such as `email_1`. The Prisma 8 authoring sources call it before `mergeRedundantIndexes` and the builder. Two indexes of one collection that get one name are left for the builder to refuse.
|
|
1022
|
+
*/
|
|
1023
|
+
declare function nameIndexes(definition: ContractDefinition): ContractDefinition;
|
|
1024
|
+
//#endregion
|
|
1025
|
+
export { RelationNode as A, enumType$1 as B, MergedIndexes as C, ReferenceRelationNode as D, MongoContractResult as E, VariantBaseNode as F, mergeRedundantIndexes as G, index as H, bindEnumType as I, rel as J, model as K, buildBoundContract as L, RestatedFieldDifference as M, ValueObjectBuilder as N, RefusalKey as O, ValueObjectNode as P, buildMongoContractFromDefinition as R, IndexShapeRule as S, ModelNode as T, isEnumTypeHandle as U, field as V, member as W, valueObject as Y, FieldBuilder as _, BuiltContract as a, FieldReference as b, ContractDefinition as c, ContractScaffold as d, DiscriminatorNode as f, ExtractCodecTypesFromPack as g, EnumTypeHandle as h, BuildWarning as i, RemovedIndex as j, RelationBuilder as k, ContractFactory as l, EnumMember as m, BuildFailure as n, CodecTypeMap as o, EmbedRelationNode as p, nameIndexes as q, BuildRefusal as r, ContractAuthoringHelpers as s, BoundEnumType as t, ContractInput as u, FieldKey as v, ModelBuilder as w, IndexNode as x, FieldNode as y, defineContract as z };
|
|
1026
|
+
//# sourceMappingURL=contract-builder-x1bl1wIr.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contract-builder-x1bl1wIr.d.mts","names":[],"sources":["../../../../2-mongo-family/2-authoring/contract-ts/dist/contract-builder.d.mts"],"mappings":";;;;;;;;;;;;;KAWK;WACM;WACA;;WAEA;WACA;;WAEA;WACA,OAAO;WACP;;WAEA;WACA;;WAEA;WACA;WACA;;;;WAIA;WACA;WACA;;WAEA;WACA;WACA;;;;WAIA;WACA;;;;WAIA;WACA;;;;WAIA;WACA;;KAEN,aAAa,QAAQ;WACf;;KAEN,iBAAiB,QAAQ;WACnB;;KAEN,WAAW,QAAQ;WACb;;KAEN,UAAU,QAAQ;WACZ;;KAEN,WAAW,QAAQ;WACb;;KAEN,cAAc,QAAQ;WAChB;;KAEN,mBAAmB,QAAQ;WACrB;;KAEN,UAAU,QAAQ;WACZ;;KAEN,wBAAwB,QAAQ;WAC1B;;;KAGN;KACA;KACA;;KAEA;WACM;WACA,KAAK;;WAEL;WACA,KAAK;;WAEL;WACA,KAAK;WACL;;WAEA;WACA,KAAK;WACL;WACA;;WAEA;WACA,KAAK;WACL;WACA;WACA;;WAEA;WACA,KAAK;WACL;WACA,sBAAsB;;WAEtB;WACA,KAAK;;WAEL;WACA,KAAK;WACL;;WAEA;WACA,KAAK;WACL;WACA;;WAEA;WACA,KAAK;WACL,SAAS;;WAET;WACA,KAAK;WACL,SAAS,QAAQ;WACjB;;WAEA;WACA,KAAK;WACL;WACA;WACA;;WAEA;WACA,KAAK;WACL;WACA;;WAEA;WACA,KAAK;WACL,MAAM;WACN;;WAEA;WACA,KAAK;WACL;WACA;;WAEA;WACA,KAAK;WACL;WACA;WACA;WACA;;;;WAIA;WACA,KAAK;WACL;WACA;WACA;WACA;;WAEA;WACA,KAAK;;WAEL;WACA,KAAK;WACL,OAAO;WACP;WACA;;WAEA;WACA,KAAK;WACL,OAAO;WACP;WACA;;WAEA;;WAEA;WACA,KAAK;WACL,OAAO;;WAEP;WACA,KAAK;;WAEL;WACA,KAAK;WACL;WACA;;WAEA;WACA,KAAK;;WAEL;WACA,KAAK;WACL;WAC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Ae,kBAAkB,eAAe,wBAAwB,eAAe,+CAA+C,eAAe,8BAA8B,QAAQ,GAAG,QAAQ,GAAG,YAAY,YAAY,sBAAsB,oBAAoB,iBAAiB,YAAY,GAAG;;;;iBAIlc,yBAAyB,UAAU,6BAA6B,UAAU,qCAAqC,mBAAmB,qBAAqB,eAAe,kBAAkB,eAAe,wBAAwB,eAAe,+CAA+C,eAAe,oCAAoC;WACtV,SAAS,eAAe;WACxB,eAAe,eAAe;WAC9B,QAAQ,eAAe;GAC/B,QAAQ,GAAG,QAAQ,GAAG,YAAY,YAAY,UAAU,SAAS,yBAAyB,GAAG,GAAG,YAAY,+BAA+B,QAAQ,oBAAoB,iBAAiB,aAAa,OAAO,GAAG;iBACjM,qBAAqB,mBAAmB,cAAc,uBAAuB,+BAA+B,eAAe,kBAAkB,eAAe,wBAAwB,eAAe,+CAA+C,eAAe,8BAA8B,YAAY,aAAa,oBAAoB;iBAC5U,qBAAqB,mBAAmB,iBAAiB,uBAAuB,+BAA+B,eAAe,+CAA+C,eAAe,oCAAoC;WACtO,SAAS,eAAe;WACxB,eAAe,eAAe;WAC9B,QAAQ,eAAe;GAC/B,YAAY,YAAY,UAAU,SAAS,yBAAyB,sBAAsB,sBAAsB,mBAAmB,iBAAiB,QAAQ,oBAAoB,aAAa;;;;UAItL;WACC;WACA;;;UAGD;WACC,YAAY;WACZ,yBAAyB;;;;;iBAKnB,sBAAsB,YAAY,oBAAoB,aAAa,4BAA4B,WAAW,kBAAkB;;;;;;iBAM5H,YAAY,YAAY,qBAAqB"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { r as buildMongoContractFromDefinition } from "./contract-builder-
|
|
3
|
-
import { i as pairMongoBackRelations } from "./interpreter-
|
|
1
|
+
import { L as validateMongoStorage } from "./dist-By5gbTEW.mjs";
|
|
2
|
+
import { r as buildMongoContractFromDefinition } from "./contract-builder-BUa0Oz34.mjs";
|
|
3
|
+
import { i as pairMongoBackRelations } from "./interpreter-DpW_wEiP-Clp24cvz.mjs";
|
|
4
4
|
import { blindCast } from "@prisma/orm-framework/utils/casts";
|
|
5
5
|
import { ifDefined } from "@prisma/orm-framework/utils/defined";
|
|
6
6
|
import { isStructuredError } from "@prisma/orm-framework/utils/structured-error";
|
|
@@ -25,6 +25,34 @@ function prisma6Diagnostic(code, message, sourceId, span) {
|
|
|
25
25
|
...span !== void 0 ? { span } : {}
|
|
26
26
|
};
|
|
27
27
|
}
|
|
28
|
+
/** Prisma 6's longest MongoDB index name, in bytes (`max_identifier_length` of its MongoDB connector). */
|
|
29
|
+
const MAX_INDEX_NAME_BYTES = 127;
|
|
30
|
+
function utf8Length(text) {
|
|
31
|
+
return new TextEncoder().encode(text).length;
|
|
32
|
+
}
|
|
33
|
+
/** The longest start of `text` whose UTF-8 form is at most `bytes` long, cut between characters. */
|
|
34
|
+
function truncateToBytes(text, bytes) {
|
|
35
|
+
let out = "";
|
|
36
|
+
for (const char of text) {
|
|
37
|
+
if (utf8Length(out + char) > bytes) break;
|
|
38
|
+
out += char;
|
|
39
|
+
}
|
|
40
|
+
return out;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* The name Prisma 6 gives an index without `map:`, as prisma-engines 6.19.3 `ConstraintNames` builds it: the collection, then the stored field names, joined by `_`, and `_key` for a unique index or `_idx` for any other, the part before the suffix cut to fit 127 bytes.
|
|
44
|
+
*/
|
|
45
|
+
function prisma6IndexName(collection, storedFields, unique) {
|
|
46
|
+
const suffix = unique ? "_key" : "_idx";
|
|
47
|
+
const joined = `${collection}_${storedFields.join("_")}`;
|
|
48
|
+
const room = MAX_INDEX_NAME_BYTES - suffix.length;
|
|
49
|
+
return `${utf8Length(joined) >= room ? truncateToBytes(joined, room) : joined}${suffix}`;
|
|
50
|
+
}
|
|
51
|
+
/** Why Prisma 6 refuses the name `map:` gives an index, or `undefined` when it accepts it. */
|
|
52
|
+
function prisma6IndexNameProblem(name) {
|
|
53
|
+
if (name === "") return "The `map` argument cannot be an empty string.";
|
|
54
|
+
if (utf8Length(name) > MAX_INDEX_NAME_BYTES) return `The constraint name '${name}' specified in the \`map\` argument is too long for your chosen provider. The maximum allowed length is ${MAX_INDEX_NAME_BYTES} bytes.`;
|
|
55
|
+
}
|
|
28
56
|
function unsupported(attribute, what, span, ctx) {
|
|
29
57
|
ctx.diagnostics.push(prisma6Diagnostic("PSL.PRISMA6_MONGO_INDEX_ARGUMENT_UNSUPPORTED", `${ctx.owner}: ${ctx.prefix}${attribute.name} ${what}`, ctx.sourceId, span));
|
|
30
58
|
}
|
|
@@ -78,29 +106,53 @@ function readFields(attribute, expression, span, ctx) {
|
|
|
78
106
|
}
|
|
79
107
|
return fields;
|
|
80
108
|
}
|
|
81
|
-
|
|
109
|
+
function readName(attribute, expression, span, ctx) {
|
|
110
|
+
const name = expression === void 0 ? void 0 : StringLiteralExprAst.cast(expression.syntax)?.value();
|
|
111
|
+
return name === void 0 ? unsupported(attribute, "expects a string name.", span, ctx) : { name };
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* Reads `@@index`, `@@unique` or `@@fulltext`. `map:` names the index; on `@@index`, `name:` does too, as Prisma 6 reads it, and the two together are refused. `name:` on `@@unique` names the Prisma 6 client field, not the index, and is dropped.
|
|
115
|
+
*/
|
|
82
116
|
function parseIndexAttribute(attribute, ctx) {
|
|
83
117
|
let fields;
|
|
118
|
+
let map;
|
|
119
|
+
let legacyName;
|
|
84
120
|
for (const arg of attribute.args) {
|
|
85
121
|
const key = arg.kind === "positional" ? "fields" : arg.name;
|
|
86
|
-
if (key === "
|
|
122
|
+
if (key === "name" && attribute.name !== "index") continue;
|
|
123
|
+
if (key === "map" || key === "name") {
|
|
124
|
+
const read = readName(attribute, arg.expression, arg.span, ctx);
|
|
125
|
+
if (read === void 0) return void 0;
|
|
126
|
+
if (key === "map") map = read.name;
|
|
127
|
+
else legacyName = read.name;
|
|
128
|
+
continue;
|
|
129
|
+
}
|
|
87
130
|
if (key !== "fields") return unsupported(attribute, `argument "${key ?? ""}" is not supported.`, arg.span, ctx);
|
|
88
131
|
fields = readFields(attribute, arg.expression, arg.span, ctx);
|
|
89
132
|
if (fields === void 0) return void 0;
|
|
90
133
|
}
|
|
134
|
+
if (map !== void 0 && legacyName !== void 0) return unsupported(attribute, "gives both `map` and `name`. Prisma 6 refuses this: \"The `@@index` attribute accepts the `name` argument as an alias for the `map` argument for legacy reasons. It does not accept both though.\" Remove `name`.", attribute.span, ctx);
|
|
91
135
|
if (fields === void 0 || fields.length === 0) return unsupported(attribute, "expects a list of field names.", attribute.span, ctx);
|
|
92
136
|
return {
|
|
93
137
|
kind: attribute.name,
|
|
94
138
|
fields,
|
|
139
|
+
map: map ?? legacyName,
|
|
95
140
|
span: attribute.span
|
|
96
141
|
};
|
|
97
142
|
}
|
|
98
|
-
/** Reads a field's `@unique`: `sort:` sets the key direction
|
|
143
|
+
/** Reads a field's `@unique`: `sort:` sets the key direction and `map:` the index name. */
|
|
99
144
|
function parseFieldUnique(attribute, fieldName, ctx) {
|
|
100
145
|
let direction;
|
|
146
|
+
let map;
|
|
101
147
|
for (const arg of attribute.args) {
|
|
102
148
|
const key = arg.kind === "positional" ? void 0 : arg.name;
|
|
103
|
-
if (key === "
|
|
149
|
+
if (key === "name") continue;
|
|
150
|
+
if (key === "map") {
|
|
151
|
+
const read = readName(attribute, arg.expression, arg.span, ctx);
|
|
152
|
+
if (read === void 0) return void 0;
|
|
153
|
+
map = read.name;
|
|
154
|
+
continue;
|
|
155
|
+
}
|
|
104
156
|
if (key === "sort") {
|
|
105
157
|
direction = sortDirection(arg.expression);
|
|
106
158
|
if (direction === void 0) return unsupported(attribute, "sort must be Asc or Desc.", arg.span, ctx);
|
|
@@ -114,6 +166,7 @@ function parseFieldUnique(attribute, fieldName, ctx) {
|
|
|
114
166
|
name: fieldName,
|
|
115
167
|
direction
|
|
116
168
|
}],
|
|
169
|
+
map,
|
|
117
170
|
span: attribute.span
|
|
118
171
|
};
|
|
119
172
|
}
|
|
@@ -163,6 +216,12 @@ function refusalDiagnostic(refusal, sites, fallbackSourceId) {
|
|
|
163
216
|
if (site === void 0 || first === void 0) break;
|
|
164
217
|
return prisma6Diagnostic("PSL.PRISMA6_MONGO_INDEX_ALREADY_EXISTS", `${site.label} and ${first.label} are the same index, with the same keys and options, in collection "${refusal.collection}". MongoDB cannot hold two identical indexes in one collection. Remove one of them.`, site.sourceId, site.span);
|
|
165
218
|
}
|
|
219
|
+
case "indexNameDuplicate": {
|
|
220
|
+
const site = sites.indexes.get(refusal.key.model)?.[refusal.key.position];
|
|
221
|
+
const first = sites.indexes.get(refusal.firstModel)?.[refusal.firstPosition];
|
|
222
|
+
if (site === void 0 || first === void 0) break;
|
|
223
|
+
return prisma6Diagnostic("PSL.PRISMA6_MONGO_INDEX_NAME_DUPLICATE", `${site.label} and ${first.label} are both named "${refusal.name}" in collection "${refusal.collection}". MongoDB cannot hold two indexes with one name in a collection. Give one of them another name with \`map\`.`, site.sourceId, site.span);
|
|
224
|
+
}
|
|
166
225
|
case "generatedConflict": {
|
|
167
226
|
const site = fieldSiteOf(sites, refusal.key);
|
|
168
227
|
if (site === void 0) break;
|
|
@@ -1097,6 +1156,7 @@ function buildIndexes(build, diagnostics) {
|
|
|
1097
1156
|
let textIndexes = 0;
|
|
1098
1157
|
const attributes = [...build.uniqueFields, ...build.modelIndexes];
|
|
1099
1158
|
const clashing = clashingIndexes(attributes);
|
|
1159
|
+
const nameOf = (attribute) => attribute.map ?? prisma6IndexName(build.collection, attribute.fields.map((field) => build.storedNames.get(field.name) ?? field.name), attribute.kind === "unique");
|
|
1100
1160
|
for (const attribute of attributes) {
|
|
1101
1161
|
const names = attribute.fields.map((field) => field.name);
|
|
1102
1162
|
const usedBy = {
|
|
@@ -1125,6 +1185,18 @@ function buildIndexes(build, diagnostics) {
|
|
|
1125
1185
|
diagnostics.push(prisma6Diagnostic("PSL.PRISMA6_MONGO_INDEX_ALREADY_EXISTS", `${indexLabel(build, attribute)} has the same fields, with the same sort, as ${others}. Prisma 6 refuses this: "Index already exists in the model." Remove one of them.`, sourceId, attribute.span));
|
|
1126
1186
|
continue;
|
|
1127
1187
|
}
|
|
1188
|
+
const name = nameOf(attribute);
|
|
1189
|
+
const nameProblem = attribute.map === void 0 ? void 0 : prisma6IndexNameProblem(name);
|
|
1190
|
+
if (nameProblem !== void 0) {
|
|
1191
|
+
diagnostics.push(prisma6Diagnostic("PSL.PRISMA6_MONGO_INDEX_NAME_INVALID", `${indexLabel(build, attribute)}: Prisma 6 refuses this name: "${nameProblem}" Give the index another name with \`map\`.`, sourceId, attribute.span));
|
|
1192
|
+
continue;
|
|
1193
|
+
}
|
|
1194
|
+
const sameName = attributes.filter((other) => other !== attribute && nameOf(other) === name);
|
|
1195
|
+
if (sameName.length > 0) {
|
|
1196
|
+
const others = sameName.map((other) => indexLabel(build, other)).join(" and ");
|
|
1197
|
+
diagnostics.push(prisma6Diagnostic("PSL.PRISMA6_MONGO_INDEX_NAME_DUPLICATE", `${indexLabel(build, attribute)} is named "${name}", as is ${others}. Prisma 6 refuses this: "The given constraint name \`${name}\` has to be unique in the following namespace: on model \`${symbol.name}\` for indexes and unique constraints. Please provide a different name using the \`map\` argument."`, sourceId, attribute.span));
|
|
1198
|
+
continue;
|
|
1199
|
+
}
|
|
1128
1200
|
const text = attribute.kind === "fulltext";
|
|
1129
1201
|
if (text) {
|
|
1130
1202
|
textIndexes++;
|
|
@@ -1136,7 +1208,10 @@ function buildIndexes(build, diagnostics) {
|
|
|
1136
1208
|
const keys = attribute.fields.map((field) => [field.name, field.direction ?? (text ? "text" : 1)]);
|
|
1137
1209
|
const index = {
|
|
1138
1210
|
fields: Object.fromEntries(keys),
|
|
1139
|
-
|
|
1211
|
+
options: {
|
|
1212
|
+
name,
|
|
1213
|
+
...attribute.kind === "unique" ? { unique: true } : {}
|
|
1214
|
+
}
|
|
1140
1215
|
};
|
|
1141
1216
|
indexes.push({
|
|
1142
1217
|
index,
|