@prisma/orm-family-sql 8.0.0-rc.17-dev.12 → 8.0.0-rc.17-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/{attribute-specs-DfOulPzE.d.mts → attribute-specs-Cpthx28F.d.mts} +4 -4
- package/dist/{attribute-specs-DfOulPzE.d.mts.map → attribute-specs-Cpthx28F.d.mts.map} +1 -1
- package/dist/{authoring-entity-types-CZ-vdwYS-BtvE94H_.d.mts → authoring-entity-types-CZ-vdwYS-C9QI4H3x.d.mts} +2 -2
- package/dist/{authoring-entity-types-CZ-vdwYS-BtvE94H_.d.mts.map → authoring-entity-types-CZ-vdwYS-C9QI4H3x.d.mts.map} +1 -1
- package/dist/{authoring-type-constructors-0Iv2zdwS-CnynTqjm.mjs → authoring-type-constructors-0Iv2zdwS-D-AoEcR1.mjs} +2 -2
- package/dist/{authoring-type-constructors-0Iv2zdwS-CnynTqjm.mjs.map → authoring-type-constructors-0Iv2zdwS-D-AoEcR1.mjs.map} +1 -1
- package/dist/{config-types-DggwpWr3.mjs → config-types-DabYoGbo.mjs} +2 -2
- package/dist/{config-types-DggwpWr3.mjs.map → config-types-DabYoGbo.mjs.map} +1 -1
- package/dist/{contract-builder-J9D4EprQ.mjs → contract-builder-C5n9DeDD.mjs} +59 -38
- package/dist/contract-builder-C5n9DeDD.mjs.map +1 -0
- package/dist/{contract-builder-DCTszECg.d.mts → contract-builder-DPdK6nTs.d.mts} +18 -26
- package/dist/contract-builder-DPdK6nTs.d.mts.map +1 -0
- package/dist/contract-prisma7__provider.mjs +3 -3
- package/dist/contract-psl.d.mts +2 -2
- package/dist/contract-psl.mjs +1 -1
- package/dist/contract-psl__attribute-specs.d.mts +1 -1
- package/dist/contract-psl__attribute-specs.mjs +1 -1
- package/dist/contract-psl__provider.mjs +2 -2
- package/dist/contract-ts.d.mts +3 -2
- package/dist/contract-ts.mjs +4 -3
- package/dist/contract-ts__config-types.mjs +1 -1
- package/dist/contract-ts__contract-builder.d.mts +3 -2
- package/dist/contract-ts__contract-builder.mjs +3 -2
- package/dist/contract.d.mts +2 -2
- package/dist/contract.mjs +2 -2
- package/dist/contract__sql-expression.d.mts +2 -2
- package/dist/contract__sql-expression.mjs +2 -2
- package/dist/{control-DdyeUFkv.d.mts → control-DJYruagt.d.mts} +6 -9
- package/dist/control-DJYruagt.d.mts.map +1 -0
- package/dist/{control-Bce-z7el.mjs → control-iqppQcJm.mjs} +8 -8
- package/dist/control-iqppQcJm.mjs.map +1 -0
- package/dist/{derived-checks-CEK-Ls_a-plK5KxX3.mjs → derived-checks-DSMOrZN--C03ao8_m.mjs} +9 -13
- package/dist/derived-checks-DSMOrZN--C03ao8_m.mjs.map +1 -0
- package/dist/{diff-l4-qJpTV.d.mts → diff-C-18M6Ii.d.mts} +2 -2
- package/dist/{diff-l4-qJpTV.d.mts.map → diff-C-18M6Ii.d.mts.map} +1 -1
- package/dist/family.d.mts +5 -5
- package/dist/family.mjs +3 -3
- package/dist/family__control.d.mts +2 -2
- package/dist/family__control.mjs +2 -2
- package/dist/family__diff.d.mts +1 -1
- package/dist/family__diff.mjs +1 -1
- package/dist/family__migration.d.mts +1 -1
- package/dist/family__pack.d.mts +1 -1
- package/dist/family__pack.mjs +2 -2
- package/dist/family__psl-build.mjs +1 -1
- package/dist/{interpreter-BTM9k0wn-Cya0qReB.mjs → interpreter-BTM9k0wn-o9kEz-St.mjs} +4 -4
- package/dist/{interpreter-BTM9k0wn-Cya0qReB.mjs.map → interpreter-BTM9k0wn-o9kEz-St.mjs.map} +1 -1
- package/dist/{migration-DEK3Hxlo.d.mts → migration-Bdt_UrTg.d.mts} +2 -2
- package/dist/{migration-DEK3Hxlo.d.mts.map → migration-Bdt_UrTg.d.mts.map} +1 -1
- package/dist/{pack-BIYpJtZF.d.mts → pack-BiHNZl9V.d.mts} +3 -3
- package/dist/{pack-BIYpJtZF.d.mts.map → pack-BiHNZl9V.d.mts.map} +1 -1
- package/dist/{psl-build-vdqjrTx6.mjs → psl-build-CdvX8qg4.mjs} +2 -2
- package/dist/{psl-build-vdqjrTx6.mjs.map → psl-build-CdvX8qg4.mjs.map} +1 -1
- package/dist/{psl-column-resolution-Dm5LhN9b-Br_RiSPI.d.mts → psl-column-resolution-Dm5LhN9b-DetB__rj.d.mts} +3 -3
- package/dist/{psl-column-resolution-Dm5LhN9b-Br_RiSPI.d.mts.map → psl-column-resolution-Dm5LhN9b-DetB__rj.d.mts.map} +1 -1
- package/dist/{psl-field-resolution-CAJsUfST-C4QwwiqV.mjs → psl-field-resolution-CAJsUfST-D_vMRVX2.mjs} +5 -5
- package/dist/psl-field-resolution-CAJsUfST-D_vMRVX2.mjs.map +1 -0
- package/dist/{schema-verify-DIfHSB4I-CcxNNnKO.mjs → schema-verify-DIfHSB4I-Bbek1093.mjs} +2 -2
- package/dist/{schema-verify-DIfHSB4I-CcxNNnKO.mjs.map → schema-verify-DIfHSB4I-Bbek1093.mjs.map} +1 -1
- package/dist/sql-expression-BWrjmY6M.d.mts +62 -0
- package/dist/sql-expression-BWrjmY6M.d.mts.map +1 -0
- package/dist/sql-expression-DSRILiU2.mjs +131 -0
- package/dist/sql-expression-DSRILiU2.mjs.map +1 -0
- package/dist/{types-CzxOObSY-CxZ_bdVi.d.mts → types-CzxOObSY-BxwvvyRZ.d.mts} +2 -2
- package/dist/{types-CzxOObSY-CxZ_bdVi.d.mts.map → types-CzxOObSY-BxwvvyRZ.d.mts.map} +1 -1
- package/package.json +18 -18
- package/dist/contract-builder-DCTszECg.d.mts.map +0 -1
- package/dist/contract-builder-J9D4EprQ.mjs.map +0 -1
- package/dist/control-Bce-z7el.mjs.map +0 -1
- package/dist/control-DdyeUFkv.d.mts.map +0 -1
- package/dist/derived-checks-CEK-Ls_a-plK5KxX3.mjs.map +0 -1
- package/dist/psl-field-resolution-CAJsUfST-C4QwwiqV.mjs.map +0 -1
- package/dist/sql-expression-DWyTh9M1.d.mts +0 -34
- package/dist/sql-expression-DWyTh9M1.d.mts.map +0 -1
- package/dist/sql-expression-Dek0jx_g.mjs +0 -64
- package/dist/sql-expression-Dek0jx_g.mjs.map +0 -1
package/dist/{schema-verify-DIfHSB4I-CcxNNnKO.mjs.map → schema-verify-DIfHSB4I-Bbek1093.mjs.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema-verify-DIfHSB4I-CcxNNnKO.mjs","names":[],"sources":["../../../../2-sql/9-family/dist/schema-verify-DIfHSB4I.mjs"],"sourcesContent":["import { assertNothingCastsFromSqlExpression } from \"@internal/sql-contract/sql-expression\";\nimport { VERIFY_CODE_SCHEMA_FAILURE, assertUniqueCodecOwner, dispositionForCategory, issueOutcome } from \"@internal/framework-components/control\";\nimport { blindCast } from \"@internal/utils/casts\";\nimport { ifDefined } from \"@internal/utils/defined\";\nimport { InternalError } from \"@internal/utils/internal-error\";\nimport { findSqlDataTypeCollision, isSqlDataType } from \"@internal/sql-contract/data-type\";\nimport { isStorageTypeInstance } from \"@internal/sql-contract/types\";\nimport { effectiveControlPolicy } from \"@internal/contract/types\";\n//#region src/core/assembly.ts\nfunction hasCodecControlHooks(descriptor) {\n\tif (typeof descriptor !== \"object\" || descriptor === null) return false;\n\tconst hooks = blindCast(descriptor).types?.codecTypes?.controlPlaneHooks;\n\treturn hooks !== null && hooks !== void 0 && typeof hooks === \"object\";\n}\nfunction extractCodecControlHooks(descriptors) {\n\tconst hooks = /* @__PURE__ */ new Map();\n\tconst owners = /* @__PURE__ */ new Map();\n\tfor (const descriptor of descriptors) {\n\t\tif (typeof descriptor !== \"object\" || descriptor === null) continue;\n\t\tif (!hasCodecControlHooks(descriptor)) continue;\n\t\tconst controlPlaneHooks = descriptor.types.codecTypes.controlPlaneHooks;\n\t\tfor (const [codecId, hook] of Object.entries(controlPlaneHooks)) {\n\t\t\tassertUniqueCodecOwner({\n\t\t\t\tcodecId,\n\t\t\t\towners,\n\t\t\t\tdescriptorId: descriptor.id,\n\t\t\t\tentityLabel: \"control hooks\",\n\t\t\t\tentityOwnershipLabel: \"owner\"\n\t\t\t});\n\t\t\thooks.set(codecId, hook);\n\t\t\towners.set(codecId, descriptor.id);\n\t\t}\n\t}\n\treturn hooks;\n}\n/**\n* The SQL family's checks of the stack's data types and codecs, each naming the contributor:\n* no two SQL data types would both recognise one reported type, by colliding claiming texts or by\n* claiming the same kind; no data type casts from `sql/expression`; and every codec represents a\n* SQL data type, because a codec represents a column's type and `sql/expression` is the one data\n* type no column has.\n*/\nfunction enforceSqlDataTypeInvariants(declaredDataTypes, codecDescriptors) {\n\tconst declaredById = new Map(declaredDataTypes.map((declared) => [declared.type.id, declared]));\n\tconst describe = (type) => `data type \"${type.id}\" contributed by \"${declaredById.get(type.id)?.contributedBy ?? \"<unknown>\"}\"`;\n\tconst collision = findSqlDataTypeCollision(declaredDataTypes.map(({ type }) => type));\n\tif (collision !== void 0) {\n\t\tconst { first, second, claims } = collision;\n\t\tif (claims.by === \"kind\") throw new InternalError(`The ${describe(first)} and the ${describe(second)} both claim the kind \"${claims.kind}\".`);\n\t\tthrow new InternalError(`The ${describe(first)} claims the text \"${claims.first}\", which collides with the text \"${claims.second}\" claimed by the ${describe(second)}.`);\n\t}\n\tassertNothingCastsFromSqlExpression(declaredDataTypes);\n\tfor (const codec of codecDescriptors) {\n\t\tconst represented = declaredById.get(codec.dataType)?.type;\n\t\tif (represented === void 0 || isSqlDataType(represented)) continue;\n\t\tthrow new InternalError(`Codec \"${codec.codecId}\" represents ${describe(represented)}, which is not a SQL data type. In a SQL stack a codec represents a column's type, so its data type is declared with sqlDataType.`);\n\t}\n}\n//#endregion\n//#region src/core/diff/verifier-disposition.ts\n/**\n* Classifies a codec `verifyType` hook finding into the target-neutral\n* categories the framework grades. A storage type is a named type instance\n* (e.g. a native enum); the only shape divergence it can carry is a change\n* to its value set, so a paired mismatch always classifies as `valueDrift`.\n*/\nfunction classifyStorageTypeDiffIssue(issue) {\n\tif (issueOutcome(issue) === \"not-found\") return \"declaredMissing\";\n\tif (issueOutcome(issue) === \"not-expected\") return \"extraAuxiliary\";\n\treturn \"valueDrift\";\n}\nfunction verifierDisposition(controlPolicy, issue) {\n\treturn dispositionForCategory(controlPolicy, classifyStorageTypeDiffIssue(issue));\n}\n//#endregion\n//#region src/core/diff/schema-verify.ts\nfunction issueNode(issue) {\n\tconst node = issue.expected ?? issue.actual;\n\tif (node === void 0) return void 0;\n\treturn blindCast(node);\n}\n/**\n* Resolves an issue's framework-neutral {@link DiffSubjectGranularity} on\n* demand, from the issue's node's `nodeKind` via the target-provided\n* `granularityOf` map. The node carries only its `nodeKind` identity, never a\n* classification, and nothing is stamped onto the issue — every consumer\n* (the family verdict below, the framework aggregate's unclaimed-elements\n* sweep via {@link import('@internal/framework-components/control').SchemaSubjectClassifierCapable})\n* calls this the same way, resolved by the family/target that owns the node\n* vocabulary. `undefined` for an issue with no node.\n*/\nfunction classifyDiffSubjectGranularity(issue, granularityOf) {\n\tconst node = issueNode(issue);\n\treturn node === void 0 ? void 0 : granularityOf(node.nodeKind);\n}\n/**\n* Resolves an issue's storage `entityKind` on demand, from the issue's\n* node's `nodeKind` via the target-provided `entityKindOf` map — the sibling\n* of {@link classifyDiffSubjectGranularity}, called the same way by the same\n* consumers (via\n* {@link import('@internal/framework-components/control').SchemaSubjectClassifierCapable}).\n* `undefined` for an issue with no node, or for a node kind with no storage\n* entity of its own.\n*/\nfunction classifyDiffEntityKind(issue, entityKindOf) {\n\tconst node = issueNode(issue);\n\treturn node === void 0 ? void 0 : entityKindOf(node.nodeKind);\n}\n/**\n* Re-keys the legacy `classifySqlVerifierIssueKind` category mapping on the\n* issue's {@link DiffSubjectGranularity} (resolved via `granularityOf`) + the\n* issue reason. The vocabulary maps one-to-one: an undeclared live entity or\n* namespace is `extraTopLevelObject`, an undeclared live field\n* `extraNestedElement`, undeclared auxiliaries (constraints, indexes,\n* defaults) and structural leaves (policies) `extraAuxiliary`; every paired\n* divergence is `declaredIncompatible`; anything the database lacks is\n* `declaredMissing`.\n* `granularityOf` is the target's classifier, so target and extension node\n* kinds classify without the family importing them.\n*/\nfunction classifySqlDiffIssue(issue, granularityOf) {\n\tif (issueOutcome(issue) === \"not-found\") return \"declaredMissing\";\n\tif (issueOutcome(issue) === \"not-expected\") {\n\t\tconst granularity = classifyDiffSubjectGranularity(issue, granularityOf);\n\t\tif (granularity === \"entity\" || granularity === \"namespace\") return \"extraTopLevelObject\";\n\t\tif (granularity === \"field\") return \"extraNestedElement\";\n\t\treturn \"extraAuxiliary\";\n\t}\n\treturn \"declaredIncompatible\";\n}\n/**\n* Whether a `not-expected` issue is a strict-mode-only finding. The legacy\n* walk detected every relational extra (namespaces, entities, fields, and\n* their auxiliaries) only under `--strict`; the structural diff (roots, RLS\n* policies, roles) was never strict-gated — its extras fail in both modes.\n* Keyed on the issue's granularity, resolved via `granularityOf`.\n*/\nfunction isStrictOnlyExtra(issue, granularityOf) {\n\tconst granularity = classifyDiffSubjectGranularity(issue, granularityOf);\n\treturn granularity === \"namespace\" || granularity === \"entity\" || granularity === \"field\" || granularity === \"auxiliary\";\n}\n/**\n* Applies the two consumer filters to a diff issue list: strict gating\n* (relational `not-expected` findings drop in lenient mode) and\n* control-policy disposition (each surviving issue grades against its\n* subject table's effective policy; suppressed issues drop, `observed`\n* subjects warn). The verify verdict is `failures.length === 0`.\n*/\nfunction computeSqlDiffVerdict(input) {\n\tconst failures = [];\n\tconst warnings = [];\n\tfor (const issue of input.issues) {\n\t\tif (!input.strict && issueOutcome(issue) === \"not-expected\" && isStrictOnlyExtra(issue, input.granularityOf)) continue;\n\t\tconst disposition = dispositionForCategory(effectiveControlPolicy(input.resolveControlPolicy(issue), input.defaultControlPolicy), classifySqlDiffIssue(issue, input.granularityOf));\n\t\tif (disposition === \"suppress\") continue;\n\t\tif (disposition === \"warn\") {\n\t\t\twarnings.push(issue);\n\t\t\tcontinue;\n\t\t}\n\t\tfailures.push(issue);\n\t}\n\treturn {\n\t\tfailures,\n\t\twarnings\n\t};\n}\nfunction computeStorageTypeVerdict(input) {\n\tconst failures = [];\n\tconst warnings = [];\n\tconst policy = effectiveControlPolicy(void 0, input.contract.defaultControlPolicy);\n\tfor (const pair of input.namespacePairs) {\n\t\tif (pair.actual === void 0) continue;\n\t\tfor (const [typeName, typeInstance] of Object.entries(input.contract.storage.types ?? {})) {\n\t\t\tif (!isStorageTypeInstance(typeInstance)) continue;\n\t\t\tconst hook = input.codecHooks.get(typeInstance.codecId);\n\t\t\tif (!hook?.verifyType) continue;\n\t\t\tconst typeIssues = hook.verifyType({\n\t\t\t\ttypeName,\n\t\t\t\ttypeInstance,\n\t\t\t\tschema: pair.actual\n\t\t\t});\n\t\t\tfor (const issue of typeIssues) {\n\t\t\t\tconst disposition = verifierDisposition(policy, issue);\n\t\t\t\tif (disposition === \"suppress\") continue;\n\t\t\t\tif (disposition === \"warn\") {\n\t\t\t\t\twarnings.push(issue);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tfailures.push(issue);\n\t\t\t}\n\t\t}\n\t}\n\treturn {\n\t\tfailures,\n\t\twarnings\n\t};\n}\n/**\n* THE SQL schema verify: runs the target's full-tree node diff, grades it\n* through the family's post-diff filters (strict gating + control-policy\n* disposition) plus the codec `verifyType` hook findings, and wraps the\n* verdict in the issue-based result envelope. `ok` holds exactly when both\n* issue lists are empty — the lists carry the verdict's failures.\n*/\nfunction verifySqlSchemaByDiff(input) {\n\tconst startTime = Date.now();\n\tconst verdictDiff = input.diffSchema({\n\t\tcontract: input.contract,\n\t\tschema: input.schema,\n\t\tframeworkComponents: input.frameworkComponents\n\t});\n\tconst diffVerdict = computeSqlDiffVerdict({\n\t\tissues: verdictDiff.issues,\n\t\tresolveControlPolicy: verdictDiff.resolveControlPolicy,\n\t\tstrict: input.strict,\n\t\tdefaultControlPolicy: input.contract.defaultControlPolicy,\n\t\tgranularityOf: input.granularityOf\n\t});\n\tconst storageTypeVerdict = computeStorageTypeVerdict({\n\t\tcontract: input.contract,\n\t\tnamespacePairs: verdictDiff.namespacePairs,\n\t\tcodecHooks: extractCodecControlHooks(input.frameworkComponents)\n\t});\n\tconst failCount = diffVerdict.failures.length + storageTypeVerdict.failures.length;\n\tconst ok = failCount === 0;\n\tconst profileHash = \"profileHash\" in input.contract && typeof input.contract.profileHash === \"string\" ? input.contract.profileHash : void 0;\n\treturn {\n\t\tok,\n\t\t...ok ? {} : { code: VERIFY_CODE_SCHEMA_FAILURE },\n\t\tsummary: ok ? \"Database schema satisfies contract\" : `Database schema does not satisfy contract (${failCount} failure${failCount === 1 ? \"\" : \"s\"})`,\n\t\tcontract: {\n\t\t\tstorageHash: input.contract.storage.storageHash,\n\t\t\t...ifDefined(\"profileHash\", profileHash)\n\t\t},\n\t\ttarget: {\n\t\t\texpected: input.contract.target,\n\t\t\tactual: input.contract.target\n\t\t},\n\t\tschema: {\n\t\t\tissues: [...diffVerdict.failures, ...storageTypeVerdict.failures],\n\t\t\twarnings: { issues: [...diffVerdict.warnings, ...storageTypeVerdict.warnings] }\n\t\t},\n\t\tmeta: { strict: input.strict },\n\t\ttimings: { total: Date.now() - startTime }\n\t};\n}\n//#endregion\nexport { computeStorageTypeVerdict as a, extractCodecControlHooks as c, computeSqlDiffVerdict as i, classifyDiffSubjectGranularity as n, verifySqlSchemaByDiff as o, classifySqlDiffIssue as r, enforceSqlDataTypeInvariants as s, classifyDiffEntityKind as t };\n\n//# sourceMappingURL=schema-verify-DIfHSB4I.mjs.map"],"mappings":";;;;;;;;;AASA,SAAS,qBAAqB,YAAY;CACzC,IAAI,OAAO,eAAe,YAAY,eAAe,MAAM,OAAO;CAClE,MAAM,QAAQ,UAAU,UAAU,CAAC,CAAC,OAAO,YAAY;CACvD,OAAO,UAAU,QAAQ,UAAU,KAAK,KAAK,OAAO,UAAU;AAC/D;AACA,SAAS,yBAAyB,aAAa;CAC9C,MAAM,wBAAwB,IAAI,IAAI;CACtC,MAAM,yBAAyB,IAAI,IAAI;CACvC,KAAK,MAAM,cAAc,aAAa;EACrC,IAAI,OAAO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pB,sBAAsB,YAAY;EAClC,QAAQ,MAAM;EACd,sBAAsB,MAAM,SAAS;EACrC,eAAe,MAAM;CACtB,CAAC;CACD,MAAM,qBAAqB,0BAA0B;EACpD,UAAU,MAAM;EAChB,gBAAgB,YAAY;EAC5B,YAAY,yBAAyB,MAAM,mBAAmB;CAC/D,CAAC;CACD,MAAM,YAAY,YAAY,SAAS,SAAS,mBAAmB,SAAS;CAC5E,MAAM,KAAK,cAAc;CACzB,MAAM,cAAc,iBAAiB,MAAM,YAAY,OAAO,MAAM,SAAS,gBAAgB,WAAW,MAAM,SAAS,cAAc,KAAK;CAC1I,OAAO;EACN;EACA,GAAG,KAAK,CAAC,IAAI,EAAE,MAAM,2BAA2B;EAChD,SAAS,KAAK,uCAAuC,8CAA8C,UAAU,UAAU,cAAc,IAAI,KAAK,IAAI;EAClJ,UAAU;GACT,aAAa,MAAM,SAAS,QAAQ;GACpC,GAAG,UAAU,eAAe,WAAW;EACxC;EACA,QAAQ;GACP,UAAU,MAAM,SAAS;GACzB,QAAQ,MAAM,SAAS;EACxB;EACA,QAAQ;GACP,QAAQ,CAAC,GAAG,YAAY,UAAU,GAAG,mBAAmB,QAAQ;GAChE,UAAU,EAAE,QAAQ,CAAC,GAAG,YAAY,UAAU,GAAG,mBAAmB,QAAQ,EAAE;EAC/E;EACA,MAAM,EAAE,QAAQ,MAAM,OAAO;EAC7B,SAAS,EAAE,OAAO,KAAK,IAAI,IAAI,UAAU;CAC1C;AACD"}
|
|
1
|
+
{"version":3,"file":"schema-verify-DIfHSB4I-Bbek1093.mjs","names":[],"sources":["../../../../2-sql/9-family/dist/schema-verify-DIfHSB4I.mjs"],"sourcesContent":["import { assertNothingCastsFromSqlExpression } from \"@internal/sql-contract/sql-expression\";\nimport { VERIFY_CODE_SCHEMA_FAILURE, assertUniqueCodecOwner, dispositionForCategory, issueOutcome } from \"@internal/framework-components/control\";\nimport { blindCast } from \"@internal/utils/casts\";\nimport { ifDefined } from \"@internal/utils/defined\";\nimport { InternalError } from \"@internal/utils/internal-error\";\nimport { findSqlDataTypeCollision, isSqlDataType } from \"@internal/sql-contract/data-type\";\nimport { isStorageTypeInstance } from \"@internal/sql-contract/types\";\nimport { effectiveControlPolicy } from \"@internal/contract/types\";\n//#region src/core/assembly.ts\nfunction hasCodecControlHooks(descriptor) {\n\tif (typeof descriptor !== \"object\" || descriptor === null) return false;\n\tconst hooks = blindCast(descriptor).types?.codecTypes?.controlPlaneHooks;\n\treturn hooks !== null && hooks !== void 0 && typeof hooks === \"object\";\n}\nfunction extractCodecControlHooks(descriptors) {\n\tconst hooks = /* @__PURE__ */ new Map();\n\tconst owners = /* @__PURE__ */ new Map();\n\tfor (const descriptor of descriptors) {\n\t\tif (typeof descriptor !== \"object\" || descriptor === null) continue;\n\t\tif (!hasCodecControlHooks(descriptor)) continue;\n\t\tconst controlPlaneHooks = descriptor.types.codecTypes.controlPlaneHooks;\n\t\tfor (const [codecId, hook] of Object.entries(controlPlaneHooks)) {\n\t\t\tassertUniqueCodecOwner({\n\t\t\t\tcodecId,\n\t\t\t\towners,\n\t\t\t\tdescriptorId: descriptor.id,\n\t\t\t\tentityLabel: \"control hooks\",\n\t\t\t\tentityOwnershipLabel: \"owner\"\n\t\t\t});\n\t\t\thooks.set(codecId, hook);\n\t\t\towners.set(codecId, descriptor.id);\n\t\t}\n\t}\n\treturn hooks;\n}\n/**\n* The SQL family's checks of the stack's data types and codecs, each naming the contributor:\n* no two SQL data types would both recognise one reported type, by colliding claiming texts or by\n* claiming the same kind; no data type casts from `sql/expression`; and every codec represents a\n* SQL data type, because a codec represents a column's type and `sql/expression` is the one data\n* type no column has.\n*/\nfunction enforceSqlDataTypeInvariants(declaredDataTypes, codecDescriptors) {\n\tconst declaredById = new Map(declaredDataTypes.map((declared) => [declared.type.id, declared]));\n\tconst describe = (type) => `data type \"${type.id}\" contributed by \"${declaredById.get(type.id)?.contributedBy ?? \"<unknown>\"}\"`;\n\tconst collision = findSqlDataTypeCollision(declaredDataTypes.map(({ type }) => type));\n\tif (collision !== void 0) {\n\t\tconst { first, second, claims } = collision;\n\t\tif (claims.by === \"kind\") throw new InternalError(`The ${describe(first)} and the ${describe(second)} both claim the kind \"${claims.kind}\".`);\n\t\tthrow new InternalError(`The ${describe(first)} claims the text \"${claims.first}\", which collides with the text \"${claims.second}\" claimed by the ${describe(second)}.`);\n\t}\n\tassertNothingCastsFromSqlExpression(declaredDataTypes);\n\tfor (const codec of codecDescriptors) {\n\t\tconst represented = declaredById.get(codec.dataType)?.type;\n\t\tif (represented === void 0 || isSqlDataType(represented)) continue;\n\t\tthrow new InternalError(`Codec \"${codec.codecId}\" represents ${describe(represented)}, which is not a SQL data type. In a SQL stack a codec represents a column's type, so its data type is declared with sqlDataType.`);\n\t}\n}\n//#endregion\n//#region src/core/diff/verifier-disposition.ts\n/**\n* Classifies a codec `verifyType` hook finding into the target-neutral\n* categories the framework grades. A storage type is a named type instance\n* (e.g. a native enum); the only shape divergence it can carry is a change\n* to its value set, so a paired mismatch always classifies as `valueDrift`.\n*/\nfunction classifyStorageTypeDiffIssue(issue) {\n\tif (issueOutcome(issue) === \"not-found\") return \"declaredMissing\";\n\tif (issueOutcome(issue) === \"not-expected\") return \"extraAuxiliary\";\n\treturn \"valueDrift\";\n}\nfunction verifierDisposition(controlPolicy, issue) {\n\treturn dispositionForCategory(controlPolicy, classifyStorageTypeDiffIssue(issue));\n}\n//#endregion\n//#region src/core/diff/schema-verify.ts\nfunction issueNode(issue) {\n\tconst node = issue.expected ?? issue.actual;\n\tif (node === void 0) return void 0;\n\treturn blindCast(node);\n}\n/**\n* Resolves an issue's framework-neutral {@link DiffSubjectGranularity} on\n* demand, from the issue's node's `nodeKind` via the target-provided\n* `granularityOf` map. The node carries only its `nodeKind` identity, never a\n* classification, and nothing is stamped onto the issue — every consumer\n* (the family verdict below, the framework aggregate's unclaimed-elements\n* sweep via {@link import('@internal/framework-components/control').SchemaSubjectClassifierCapable})\n* calls this the same way, resolved by the family/target that owns the node\n* vocabulary. `undefined` for an issue with no node.\n*/\nfunction classifyDiffSubjectGranularity(issue, granularityOf) {\n\tconst node = issueNode(issue);\n\treturn node === void 0 ? void 0 : granularityOf(node.nodeKind);\n}\n/**\n* Resolves an issue's storage `entityKind` on demand, from the issue's\n* node's `nodeKind` via the target-provided `entityKindOf` map — the sibling\n* of {@link classifyDiffSubjectGranularity}, called the same way by the same\n* consumers (via\n* {@link import('@internal/framework-components/control').SchemaSubjectClassifierCapable}).\n* `undefined` for an issue with no node, or for a node kind with no storage\n* entity of its own.\n*/\nfunction classifyDiffEntityKind(issue, entityKindOf) {\n\tconst node = issueNode(issue);\n\treturn node === void 0 ? void 0 : entityKindOf(node.nodeKind);\n}\n/**\n* Re-keys the legacy `classifySqlVerifierIssueKind` category mapping on the\n* issue's {@link DiffSubjectGranularity} (resolved via `granularityOf`) + the\n* issue reason. The vocabulary maps one-to-one: an undeclared live entity or\n* namespace is `extraTopLevelObject`, an undeclared live field\n* `extraNestedElement`, undeclared auxiliaries (constraints, indexes,\n* defaults) and structural leaves (policies) `extraAuxiliary`; every paired\n* divergence is `declaredIncompatible`; anything the database lacks is\n* `declaredMissing`.\n* `granularityOf` is the target's classifier, so target and extension node\n* kinds classify without the family importing them.\n*/\nfunction classifySqlDiffIssue(issue, granularityOf) {\n\tif (issueOutcome(issue) === \"not-found\") return \"declaredMissing\";\n\tif (issueOutcome(issue) === \"not-expected\") {\n\t\tconst granularity = classifyDiffSubjectGranularity(issue, granularityOf);\n\t\tif (granularity === \"entity\" || granularity === \"namespace\") return \"extraTopLevelObject\";\n\t\tif (granularity === \"field\") return \"extraNestedElement\";\n\t\treturn \"extraAuxiliary\";\n\t}\n\treturn \"declaredIncompatible\";\n}\n/**\n* Whether a `not-expected` issue is a strict-mode-only finding. The legacy\n* walk detected every relational extra (namespaces, entities, fields, and\n* their auxiliaries) only under `--strict`; the structural diff (roots, RLS\n* policies, roles) was never strict-gated — its extras fail in both modes.\n* Keyed on the issue's granularity, resolved via `granularityOf`.\n*/\nfunction isStrictOnlyExtra(issue, granularityOf) {\n\tconst granularity = classifyDiffSubjectGranularity(issue, granularityOf);\n\treturn granularity === \"namespace\" || granularity === \"entity\" || granularity === \"field\" || granularity === \"auxiliary\";\n}\n/**\n* Applies the two consumer filters to a diff issue list: strict gating\n* (relational `not-expected` findings drop in lenient mode) and\n* control-policy disposition (each surviving issue grades against its\n* subject table's effective policy; suppressed issues drop, `observed`\n* subjects warn). The verify verdict is `failures.length === 0`.\n*/\nfunction computeSqlDiffVerdict(input) {\n\tconst failures = [];\n\tconst warnings = [];\n\tfor (const issue of input.issues) {\n\t\tif (!input.strict && issueOutcome(issue) === \"not-expected\" && isStrictOnlyExtra(issue, input.granularityOf)) continue;\n\t\tconst disposition = dispositionForCategory(effectiveControlPolicy(input.resolveControlPolicy(issue), input.defaultControlPolicy), classifySqlDiffIssue(issue, input.granularityOf));\n\t\tif (disposition === \"suppress\") continue;\n\t\tif (disposition === \"warn\") {\n\t\t\twarnings.push(issue);\n\t\t\tcontinue;\n\t\t}\n\t\tfailures.push(issue);\n\t}\n\treturn {\n\t\tfailures,\n\t\twarnings\n\t};\n}\nfunction computeStorageTypeVerdict(input) {\n\tconst failures = [];\n\tconst warnings = [];\n\tconst policy = effectiveControlPolicy(void 0, input.contract.defaultControlPolicy);\n\tfor (const pair of input.namespacePairs) {\n\t\tif (pair.actual === void 0) continue;\n\t\tfor (const [typeName, typeInstance] of Object.entries(input.contract.storage.types ?? {})) {\n\t\t\tif (!isStorageTypeInstance(typeInstance)) continue;\n\t\t\tconst hook = input.codecHooks.get(typeInstance.codecId);\n\t\t\tif (!hook?.verifyType) continue;\n\t\t\tconst typeIssues = hook.verifyType({\n\t\t\t\ttypeName,\n\t\t\t\ttypeInstance,\n\t\t\t\tschema: pair.actual\n\t\t\t});\n\t\t\tfor (const issue of typeIssues) {\n\t\t\t\tconst disposition = verifierDisposition(policy, issue);\n\t\t\t\tif (disposition === \"suppress\") continue;\n\t\t\t\tif (disposition === \"warn\") {\n\t\t\t\t\twarnings.push(issue);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tfailures.push(issue);\n\t\t\t}\n\t\t}\n\t}\n\treturn {\n\t\tfailures,\n\t\twarnings\n\t};\n}\n/**\n* THE SQL schema verify: runs the target's full-tree node diff, grades it\n* through the family's post-diff filters (strict gating + control-policy\n* disposition) plus the codec `verifyType` hook findings, and wraps the\n* verdict in the issue-based result envelope. `ok` holds exactly when both\n* issue lists are empty — the lists carry the verdict's failures.\n*/\nfunction verifySqlSchemaByDiff(input) {\n\tconst startTime = Date.now();\n\tconst verdictDiff = input.diffSchema({\n\t\tcontract: input.contract,\n\t\tschema: input.schema,\n\t\tframeworkComponents: input.frameworkComponents\n\t});\n\tconst diffVerdict = computeSqlDiffVerdict({\n\t\tissues: verdictDiff.issues,\n\t\tresolveControlPolicy: verdictDiff.resolveControlPolicy,\n\t\tstrict: input.strict,\n\t\tdefaultControlPolicy: input.contract.defaultControlPolicy,\n\t\tgranularityOf: input.granularityOf\n\t});\n\tconst storageTypeVerdict = computeStorageTypeVerdict({\n\t\tcontract: input.contract,\n\t\tnamespacePairs: verdictDiff.namespacePairs,\n\t\tcodecHooks: extractCodecControlHooks(input.frameworkComponents)\n\t});\n\tconst failCount = diffVerdict.failures.length + storageTypeVerdict.failures.length;\n\tconst ok = failCount === 0;\n\tconst profileHash = \"profileHash\" in input.contract && typeof input.contract.profileHash === \"string\" ? input.contract.profileHash : void 0;\n\treturn {\n\t\tok,\n\t\t...ok ? {} : { code: VERIFY_CODE_SCHEMA_FAILURE },\n\t\tsummary: ok ? \"Database schema satisfies contract\" : `Database schema does not satisfy contract (${failCount} failure${failCount === 1 ? \"\" : \"s\"})`,\n\t\tcontract: {\n\t\t\tstorageHash: input.contract.storage.storageHash,\n\t\t\t...ifDefined(\"profileHash\", profileHash)\n\t\t},\n\t\ttarget: {\n\t\t\texpected: input.contract.target,\n\t\t\tactual: input.contract.target\n\t\t},\n\t\tschema: {\n\t\t\tissues: [...diffVerdict.failures, ...storageTypeVerdict.failures],\n\t\t\twarnings: { issues: [...diffVerdict.warnings, ...storageTypeVerdict.warnings] }\n\t\t},\n\t\tmeta: { strict: input.strict },\n\t\ttimings: { total: Date.now() - startTime }\n\t};\n}\n//#endregion\nexport { computeStorageTypeVerdict as a, extractCodecControlHooks as c, computeSqlDiffVerdict as i, classifyDiffSubjectGranularity as n, verifySqlSchemaByDiff as o, classifySqlDiffIssue as r, enforceSqlDataTypeInvariants as s, classifyDiffEntityKind as t };\n\n//# sourceMappingURL=schema-verify-DIfHSB4I.mjs.map"],"mappings":";;;;;;;;;AASA,SAAS,qBAAqB,YAAY;CACzC,IAAI,OAAO,eAAe,YAAY,eAAe,MAAM,OAAO;CAClE,MAAM,QAAQ,UAAU,UAAU,CAAC,CAAC,OAAO,YAAY;CACvD,OAAO,UAAU,QAAQ,UAAU,KAAK,KAAK,OAAO,UAAU;AAC/D;AACA,SAAS,yBAAyB,aAAa;CAC9C,MAAM,wBAAwB,IAAI,IAAI;CACtC,MAAM,yBAAyB,IAAI,IAAI;CACvC,KAAK,MAAM,cAAc,aAAa;EACrC,IAAI,OAAO,eAAe,YAAY,eAAe,MAAM;EAC3D,IAAI,CAAC,qBAAqB,UAAU,GAAG;EACvC,MAAM,oBAAoB,WAAW,MAAM,WAAW;EACtD,KAAK,MAAM,CAAC,SAAS,SAAS,OAAO,QAAQ,iBAAiB,GAAG;GAChE,uBAAuB;IACtB;IACA;IACA,cAAc,WAAW;IACzB,aAAa;IACb,sBAAsB;GACvB,CAAC;GACD,MAAM,IAAI,SAAS,IAAI;GACvB,OAAO,IAAI,SAAS,WAAW,EAAE;EAClC;CACD;CACA,OAAO;AACR;;;;;;;;AAQA,SAAS,6BAA6B,mBAAmB,kBAAkB;CAC1E,MAAM,eAAe,IAAI,IAAI,kBAAkB,KAAK,aAAa,CAAC,SAAS,KAAK,IAAI,QAAQ,CAAC,CAAC;CAC9F,MAAM,YAAY,SAAS,cAAc,KAAK,G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AClJ,UAAU;GACT,aAAa,MAAM,SAAS,QAAQ;GACpC,GAAG,UAAU,eAAe,WAAW;EACxC;EACA,QAAQ;GACP,UAAU,MAAM,SAAS;GACzB,QAAQ,MAAM,SAAS;EACxB;EACA,QAAQ;GACP,QAAQ,CAAC,GAAG,YAAY,UAAU,GAAG,mBAAmB,QAAQ;GAChE,UAAU,EAAE,QAAQ,CAAC,GAAG,YAAY,UAAU,GAAG,mBAAmB,QAAQ,EAAE;EAC/E;EACA,MAAM,EAAE,QAAQ,MAAM,OAAO;EAC7B,SAAS,EAAE,OAAO,KAAK,IAAI,IAAI,UAAU;CAC1C;AACD"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { DataTypeAuthoringEntry } from "@prisma/orm-framework/components/authoring";
|
|
2
|
+
import { DataType, DataTypeId } from "@prisma/orm-framework/components/codec";
|
|
3
|
+
import { JsonValue } from "@prisma/orm-framework/contract/types";
|
|
4
|
+
//#region ../../../2-sql/1-core/contract/dist/sql-expression.d.mts
|
|
5
|
+
//#region src/sql-expression.d.ts
|
|
6
|
+
declare const SQL_EXPRESSION_DATA_TYPE_ID: DataTypeId;
|
|
7
|
+
declare const SQL_EXPRESSION_TAG = "sql";
|
|
8
|
+
/** The data type of a SQL expression in the target database's language. It declares no casts. The SQL family registers it. ADR 254. */
|
|
9
|
+
declare const sqlExpressionDataType: DataType;
|
|
10
|
+
/** PSL support for `sql/expression`. The SQL family registers it under `SQL_EXPRESSION_DATA_TYPE_ID`. */
|
|
11
|
+
declare const sqlExpressionAuthoringEntry: DataTypeAuthoringEntry;
|
|
12
|
+
interface SqlExpressionRegistration {
|
|
13
|
+
readonly dataTypes: readonly DataType[];
|
|
14
|
+
readonly authoring: {
|
|
15
|
+
readonly dataTypes: Readonly<Record<string, DataTypeAuthoringEntry>>;
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
/** The SQL family's registration of `sql/expression`, shaped as the family descriptor's `dataTypes` and `authoring.dataTypes`. */
|
|
19
|
+
declare const sqlExpressionRegistration: SqlExpressionRegistration;
|
|
20
|
+
/** The SQL text held by the canonical form of a `sql/expression` value. */
|
|
21
|
+
declare function sqlTextFromCanonical(value: JsonValue): string;
|
|
22
|
+
/** The text a `sql` literal holding `text` reads back as, or `undefined` when `text` has a NUL character or is too large. */
|
|
23
|
+
declare function canonicalSqlText(text: string): string | undefined;
|
|
24
|
+
/**
|
|
25
|
+
* A `sql` literal holding `text`. Throws when the literal would read back as different text; check with `sqlTextsReadBack`
|
|
26
|
+
* first. The result of `canonicalSqlText` always reads back.
|
|
27
|
+
*/
|
|
28
|
+
declare function printSqlExpressionLiteral(text: string): string;
|
|
29
|
+
/** Whether every present text reads back unchanged when printed as a `sql` literal. */
|
|
30
|
+
declare function sqlTextsReadBack(texts: readonly (string | undefined)[]): boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Throws when a data type declares a cast or a list cast from `sql/expression`. A `sql` literal is
|
|
33
|
+
* SQL the database runs, so a cast would turn it into a value of another type with no diagnostic.
|
|
34
|
+
* ADR 254.
|
|
35
|
+
*/
|
|
36
|
+
declare function assertNothingCastsFromSqlExpression(declaredDataTypes: ReadonlyArray<{
|
|
37
|
+
readonly type: DataType;
|
|
38
|
+
readonly contributedBy: string;
|
|
39
|
+
}>): void;
|
|
40
|
+
declare const SQL_EXPRESSION_MARKER: unique symbol;
|
|
41
|
+
/** A value of the data type `sql/expression` in TypeScript. Its text is always canonical. */
|
|
42
|
+
declare class SqlExpression {
|
|
43
|
+
readonly [SQL_EXPRESSION_MARKER]: true;
|
|
44
|
+
readonly text: string;
|
|
45
|
+
/** Canonicalizes `text` as a PSL `sql` literal's text is canonicalized. Throws CONTRACT.SQL_EXPRESSION_INVALID on NUL or oversize text. */
|
|
46
|
+
constructor(text: string);
|
|
47
|
+
}
|
|
48
|
+
/** Whether `value` is a `sql` value, made by this copy of the package or by another one. */
|
|
49
|
+
declare function isSqlExpression(value: unknown): value is SqlExpression;
|
|
50
|
+
/**
|
|
51
|
+
* This copy's `SqlExpression` for `value`: the value itself when this copy made it, a new one built
|
|
52
|
+
* from the text of a `sql` value another copy made, so that text is canonicalized here too, or
|
|
53
|
+
* `undefined` for anything else.
|
|
54
|
+
*/
|
|
55
|
+
declare function readSqlExpression(value: unknown): SqlExpression | undefined;
|
|
56
|
+
/** Raw SQL written as a template literal: `` sql`"userId" = auth.uid()` ``. Other `sql` values may be interpolated; each later line of one takes the indentation of the template line it sits on. */
|
|
57
|
+
declare function sql(strings: TemplateStringsArray, ...values: readonly SqlExpression[]): SqlExpression;
|
|
58
|
+
/** Reads `value` with `readSqlExpression`; throws for anything that is not a `sql` value. For callers that JavaScript cannot type-check. */
|
|
59
|
+
declare function requireSqlExpression(value: unknown, what: string): SqlExpression;
|
|
60
|
+
//#endregion
|
|
61
|
+
export { assertNothingCastsFromSqlExpression as a, printSqlExpressionLiteral as c, sql as d, sqlExpressionAuthoringEntry as f, sqlTextsReadBack as g, sqlTextFromCanonical as h, SqlExpressionRegistration as i, readSqlExpression as l, sqlExpressionRegistration as m, SQL_EXPRESSION_TAG as n, canonicalSqlText as o, sqlExpressionDataType as p, SqlExpression as r, isSqlExpression as s, SQL_EXPRESSION_DATA_TYPE_ID as t, requireSqlExpression as u };
|
|
62
|
+
//# sourceMappingURL=sql-expression-BWrjmY6M.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sql-expression-BWrjmY6M.d.mts","names":[],"sources":["../../../../2-sql/1-core/contract/dist/sql-expression.d.mts"],"mappings":";;;;;cAIc,6BAA6B;cAC7B;;cAEA,uBAAuB;;cAEvB,6BAA6B;UACjC;WACC,oBAAoB;WACpB;aACE,WAAW,SAAS,eAAe;;;;cAIlC,2BAA2B;;iBAExB,qBAAqB,OAAO;;iBAE5B,iBAAiB;;;;;iBAKjB,0BAA0B;;iBAE1B,iBAAiB;;;;;;iBAMjB,oCAAoC,mBAAmB;WAC7D,MAAM;WACN;;cAEG;;cAEA;YACF;WACD;;EAET,YAAY;;;iBAGG,gBAAgB,iBAAiB,SAAS;;;;;;iBAM1C,kBAAkB,iBAAiB;;iBAEnC,IAAI,SAAS,yBAAyB,iBAAiB,kBAAkB;;iBAEzE,qBAAqB,gBAAgB,eAAe"}
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import { t as contractError } from "./contract-errors-BCN6RVI5-5IHBF_lg.mjs";
|
|
2
|
+
import { canonicalizeTaggedLiteralBody, describeTaggedLiteralFailure, printTaggedLiteral, printedTaggedLiteralReadsBack, resolveTemplateTagEscapes } from "@prisma/orm-framework/components/authoring";
|
|
3
|
+
import { dataType, dataTypeId } from "@prisma/orm-framework/components/codec";
|
|
4
|
+
import { InternalError } from "@prisma/orm-framework/utils/internal-error";
|
|
5
|
+
import { runtimeError } from "@prisma/orm-framework/components/components";
|
|
6
|
+
//#region ../../../2-sql/1-core/contract/dist/sql-expression.mjs
|
|
7
|
+
const SQL_EXPRESSION_DATA_TYPE_ID = dataTypeId("sql/expression");
|
|
8
|
+
const SQL_EXPRESSION_TAG = "sql";
|
|
9
|
+
/** The data type of a SQL expression in the target database's language. It declares no casts. The SQL family registers it. ADR 254. */
|
|
10
|
+
const sqlExpressionDataType = frozenWithCasts(dataType(SQL_EXPRESSION_DATA_TYPE_ID, {}));
|
|
11
|
+
/** PSL support for `sql/expression`. The SQL family registers it under `SQL_EXPRESSION_DATA_TYPE_ID`. */
|
|
12
|
+
const sqlExpressionAuthoringEntry = Object.freeze({
|
|
13
|
+
written: Object.freeze({
|
|
14
|
+
kind: "tag",
|
|
15
|
+
tag: "sql",
|
|
16
|
+
parse: (text) => text
|
|
17
|
+
}),
|
|
18
|
+
print: (value) => sqlTextFromCanonical(value),
|
|
19
|
+
documentation: "A SQL expression in the target database's language. Prisma passes it to the database unchanged."
|
|
20
|
+
});
|
|
21
|
+
function frozenWithCasts(type) {
|
|
22
|
+
Object.freeze(type.casts);
|
|
23
|
+
return Object.freeze(type);
|
|
24
|
+
}
|
|
25
|
+
/** The SQL family's registration of `sql/expression`, shaped as the family descriptor's `dataTypes` and `authoring.dataTypes`. */
|
|
26
|
+
const sqlExpressionRegistration = Object.freeze({
|
|
27
|
+
dataTypes: Object.freeze([sqlExpressionDataType]),
|
|
28
|
+
authoring: Object.freeze({ dataTypes: Object.freeze({ [SQL_EXPRESSION_DATA_TYPE_ID]: sqlExpressionAuthoringEntry }) })
|
|
29
|
+
});
|
|
30
|
+
/** The SQL text held by the canonical form of a `sql/expression` value. */
|
|
31
|
+
function sqlTextFromCanonical(value) {
|
|
32
|
+
if (typeof value === "string") return value;
|
|
33
|
+
throw new InternalError(`A sql/expression value is a string, got ${JSON.stringify(value)}.`);
|
|
34
|
+
}
|
|
35
|
+
/** The text a `sql` literal holding `text` reads back as, or `undefined` when `text` has a NUL character or is too large. */
|
|
36
|
+
function canonicalSqlText(text) {
|
|
37
|
+
const canonical = canonicalizeTaggedLiteralBody(text);
|
|
38
|
+
return canonical.ok ? canonical.text : void 0;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* A `sql` literal holding `text`. Throws when the literal would read back as different text; check with `sqlTextsReadBack`
|
|
42
|
+
* first. The result of `canonicalSqlText` always reads back.
|
|
43
|
+
*/
|
|
44
|
+
function printSqlExpressionLiteral(text) {
|
|
45
|
+
if (!printedTaggedLiteralReadsBack(text)) throw new InternalError(`A sql literal cannot hold ${JSON.stringify(text)}: it would read back as different text.`);
|
|
46
|
+
return printTaggedLiteral("sql", text);
|
|
47
|
+
}
|
|
48
|
+
/** Whether every present text reads back unchanged when printed as a `sql` literal. */
|
|
49
|
+
function sqlTextsReadBack(texts) {
|
|
50
|
+
return texts.every((text) => text === void 0 || printedTaggedLiteralReadsBack(text));
|
|
51
|
+
}
|
|
52
|
+
function castFromSqlExpression(type) {
|
|
53
|
+
if (Object.hasOwn(type.casts, SQL_EXPRESSION_DATA_TYPE_ID)) return "a cast";
|
|
54
|
+
if (type.listCast?.of.includes(SQL_EXPRESSION_DATA_TYPE_ID)) return "a list cast";
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Throws when a data type declares a cast or a list cast from `sql/expression`. A `sql` literal is
|
|
58
|
+
* SQL the database runs, so a cast would turn it into a value of another type with no diagnostic.
|
|
59
|
+
* ADR 254.
|
|
60
|
+
*/
|
|
61
|
+
function assertNothingCastsFromSqlExpression(declaredDataTypes) {
|
|
62
|
+
for (const { type, contributedBy } of declaredDataTypes) {
|
|
63
|
+
const declared = castFromSqlExpression(type);
|
|
64
|
+
if (declared === void 0) continue;
|
|
65
|
+
throw runtimeError("CONTRACT.DATA_TYPE_CASTS_FROM_SQL_EXPRESSION", `Data type "${type.id}" from "${contributedBy}" declares ${declared} from ${SQL_EXPRESSION_DATA_TYPE_ID}. No data type may cast from ${SQL_EXPRESSION_DATA_TYPE_ID}: a sql literal is SQL the database runs, not a value of another type.`, {
|
|
66
|
+
dataType: type.id,
|
|
67
|
+
contributedBy
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
const SQL_EXPRESSION_MARKER = Symbol.for("@prisma/sql-expression");
|
|
72
|
+
/** A value of the data type `sql/expression` in TypeScript. Its text is always canonical. */
|
|
73
|
+
var SqlExpression = class {
|
|
74
|
+
[SQL_EXPRESSION_MARKER] = true;
|
|
75
|
+
text;
|
|
76
|
+
/** Canonicalizes `text` as a PSL `sql` literal's text is canonicalized. Throws CONTRACT.SQL_EXPRESSION_INVALID on NUL or oversize text. */
|
|
77
|
+
constructor(text) {
|
|
78
|
+
const canonical = canonicalizeTaggedLiteralBody(text);
|
|
79
|
+
if (!canonical.ok) throw contractError("CONTRACT.SQL_EXPRESSION_INVALID", describeTaggedLiteralFailure(canonical.reason), { meta: {
|
|
80
|
+
reason: canonical.reason,
|
|
81
|
+
offset: canonical.offset
|
|
82
|
+
} });
|
|
83
|
+
this.text = canonical.text;
|
|
84
|
+
Object.freeze(this);
|
|
85
|
+
}
|
|
86
|
+
};
|
|
87
|
+
/** Whether `value` is a `sql` value, made by this copy of the package or by another one. */
|
|
88
|
+
function isSqlExpression(value) {
|
|
89
|
+
return typeof value === "object" && value !== null && Reflect.get(value, SQL_EXPRESSION_MARKER) === true && typeof Reflect.get(value, "text") === "string";
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* This copy's `SqlExpression` for `value`: the value itself when this copy made it, a new one built
|
|
93
|
+
* from the text of a `sql` value another copy made, so that text is canonicalized here too, or
|
|
94
|
+
* `undefined` for anything else.
|
|
95
|
+
*/
|
|
96
|
+
function readSqlExpression(value) {
|
|
97
|
+
if (value instanceof SqlExpression) return value;
|
|
98
|
+
return isSqlExpression(value) ? new SqlExpression(value.text) : void 0;
|
|
99
|
+
}
|
|
100
|
+
/** Raw SQL written as a template literal: `` sql`"userId" = auth.uid()` ``. Other `sql` values may be interpolated; each later line of one takes the indentation of the template line it sits on. */
|
|
101
|
+
function sql(strings, ...values) {
|
|
102
|
+
const texts = values.map((value, index) => {
|
|
103
|
+
const expression = readSqlExpression(value);
|
|
104
|
+
if (expression === void 0) throw contractError("CONTRACT.SQL_EXPRESSION_INTERPOLATION", "sql`...` only interpolates other sql`...` values; write any other text inside the template.", { meta: { index } });
|
|
105
|
+
return expression.text;
|
|
106
|
+
});
|
|
107
|
+
const pieces = strings.raw.map((piece) => resolveTemplateTagEscapes(piece));
|
|
108
|
+
let joined = pieces[0] ?? "";
|
|
109
|
+
let templateLineIndent = indentOfLastLine(joined);
|
|
110
|
+
texts.forEach((value, index) => {
|
|
111
|
+
const piece = pieces[index + 1] ?? "";
|
|
112
|
+
joined += value.replaceAll("\n", `\n${templateLineIndent}`) + piece;
|
|
113
|
+
if (/[\n\r]/.test(piece)) templateLineIndent = indentOfLastLine(piece);
|
|
114
|
+
});
|
|
115
|
+
return new SqlExpression(joined);
|
|
116
|
+
}
|
|
117
|
+
function indentOfLastLine(templatePiece) {
|
|
118
|
+
const lastLine = templatePiece.slice(Math.max(templatePiece.lastIndexOf("\n"), templatePiece.lastIndexOf("\r")) + 1);
|
|
119
|
+
return LEADING_WHITESPACE.exec(lastLine)?.[0] ?? "";
|
|
120
|
+
}
|
|
121
|
+
const LEADING_WHITESPACE = /^[ \t]*/;
|
|
122
|
+
/** Reads `value` with `readSqlExpression`; throws for anything that is not a `sql` value. For callers that JavaScript cannot type-check. */
|
|
123
|
+
function requireSqlExpression(value, what) {
|
|
124
|
+
const expression = readSqlExpression(value);
|
|
125
|
+
if (expression !== void 0) return expression;
|
|
126
|
+
throw contractError("CONTRACT.ARGUMENT_INVALID", `${what} must be a sql\`...\` value.`, { meta: { what } });
|
|
127
|
+
}
|
|
128
|
+
//#endregion
|
|
129
|
+
export { canonicalSqlText as a, readSqlExpression as c, sqlExpressionAuthoringEntry as d, sqlExpressionDataType as f, sqlTextsReadBack as h, assertNothingCastsFromSqlExpression as i, requireSqlExpression as l, sqlTextFromCanonical as m, SQL_EXPRESSION_TAG as n, isSqlExpression as o, sqlExpressionRegistration as p, SqlExpression as r, printSqlExpressionLiteral as s, SQL_EXPRESSION_DATA_TYPE_ID as t, sql as u };
|
|
130
|
+
|
|
131
|
+
//# sourceMappingURL=sql-expression-DSRILiU2.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sql-expression-DSRILiU2.mjs","names":[],"sources":["../../../../2-sql/1-core/contract/dist/sql-expression.mjs"],"sourcesContent":["import { t as contractError } from \"./contract-errors-BCN6RVI5.mjs\";\nimport { canonicalizeTaggedLiteralBody, describeTaggedLiteralFailure, printTaggedLiteral, printedTaggedLiteralReadsBack, resolveTemplateTagEscapes } from \"@internal/framework-components/authoring\";\nimport { dataType, dataTypeId } from \"@internal/framework-components/codec\";\nimport { InternalError } from \"@internal/utils/internal-error\";\nimport { runtimeError } from \"@internal/framework-components/components\";\n//#region src/sql-expression.ts\nconst SQL_EXPRESSION_DATA_TYPE_ID = dataTypeId(\"sql/expression\");\nconst SQL_EXPRESSION_TAG = \"sql\";\n/** The data type of a SQL expression in the target database's language. It declares no casts. The SQL family registers it. ADR 254. */\nconst sqlExpressionDataType = frozenWithCasts(dataType(SQL_EXPRESSION_DATA_TYPE_ID, {}));\n/** PSL support for `sql/expression`. The SQL family registers it under `SQL_EXPRESSION_DATA_TYPE_ID`. */\nconst sqlExpressionAuthoringEntry = Object.freeze({\n\twritten: Object.freeze({\n\t\tkind: \"tag\",\n\t\ttag: \"sql\",\n\t\tparse: (text) => text\n\t}),\n\tprint: (value) => sqlTextFromCanonical(value),\n\tdocumentation: \"A SQL expression in the target database's language. Prisma passes it to the database unchanged.\"\n});\nfunction frozenWithCasts(type) {\n\tObject.freeze(type.casts);\n\treturn Object.freeze(type);\n}\n/** The SQL family's registration of `sql/expression`, shaped as the family descriptor's `dataTypes` and `authoring.dataTypes`. */\nconst sqlExpressionRegistration = Object.freeze({\n\tdataTypes: Object.freeze([sqlExpressionDataType]),\n\tauthoring: Object.freeze({ dataTypes: Object.freeze({ [SQL_EXPRESSION_DATA_TYPE_ID]: sqlExpressionAuthoringEntry }) })\n});\n/** The SQL text held by the canonical form of a `sql/expression` value. */\nfunction sqlTextFromCanonical(value) {\n\tif (typeof value === \"string\") return value;\n\tthrow new InternalError(`A sql/expression value is a string, got ${JSON.stringify(value)}.`);\n}\n/** The text a `sql` literal holding `text` reads back as, or `undefined` when `text` has a NUL character or is too large. */\nfunction canonicalSqlText(text) {\n\tconst canonical = canonicalizeTaggedLiteralBody(text);\n\treturn canonical.ok ? canonical.text : void 0;\n}\n/**\n* A `sql` literal holding `text`. Throws when the literal would read back as different text; check with `sqlTextsReadBack`\n* first. The result of `canonicalSqlText` always reads back.\n*/\nfunction printSqlExpressionLiteral(text) {\n\tif (!printedTaggedLiteralReadsBack(text)) throw new InternalError(`A sql literal cannot hold ${JSON.stringify(text)}: it would read back as different text.`);\n\treturn printTaggedLiteral(\"sql\", text);\n}\n/** Whether every present text reads back unchanged when printed as a `sql` literal. */\nfunction sqlTextsReadBack(texts) {\n\treturn texts.every((text) => text === void 0 || printedTaggedLiteralReadsBack(text));\n}\nfunction castFromSqlExpression(type) {\n\tif (Object.hasOwn(type.casts, SQL_EXPRESSION_DATA_TYPE_ID)) return \"a cast\";\n\tif (type.listCast?.of.includes(SQL_EXPRESSION_DATA_TYPE_ID)) return \"a list cast\";\n}\n/**\n* Throws when a data type declares a cast or a list cast from `sql/expression`. A `sql` literal is\n* SQL the database runs, so a cast would turn it into a value of another type with no diagnostic.\n* ADR 254.\n*/\nfunction assertNothingCastsFromSqlExpression(declaredDataTypes) {\n\tfor (const { type, contributedBy } of declaredDataTypes) {\n\t\tconst declared = castFromSqlExpression(type);\n\t\tif (declared === void 0) continue;\n\t\tthrow runtimeError(\"CONTRACT.DATA_TYPE_CASTS_FROM_SQL_EXPRESSION\", `Data type \"${type.id}\" from \"${contributedBy}\" declares ${declared} from ${SQL_EXPRESSION_DATA_TYPE_ID}. No data type may cast from ${SQL_EXPRESSION_DATA_TYPE_ID}: a sql literal is SQL the database runs, not a value of another type.`, {\n\t\t\tdataType: type.id,\n\t\t\tcontributedBy\n\t\t});\n\t}\n}\nconst SQL_EXPRESSION_MARKER = Symbol.for(\"@prisma/sql-expression\");\n/** A value of the data type `sql/expression` in TypeScript. Its text is always canonical. */\nvar SqlExpression = class {\n\t[SQL_EXPRESSION_MARKER] = true;\n\ttext;\n\t/** Canonicalizes `text` as a PSL `sql` literal's text is canonicalized. Throws CONTRACT.SQL_EXPRESSION_INVALID on NUL or oversize text. */\n\tconstructor(text) {\n\t\tconst canonical = canonicalizeTaggedLiteralBody(text);\n\t\tif (!canonical.ok) throw contractError(\"CONTRACT.SQL_EXPRESSION_INVALID\", describeTaggedLiteralFailure(canonical.reason), { meta: {\n\t\t\treason: canonical.reason,\n\t\t\toffset: canonical.offset\n\t\t} });\n\t\tthis.text = canonical.text;\n\t\tObject.freeze(this);\n\t}\n};\n/** Whether `value` is a `sql` value, made by this copy of the package or by another one. */\nfunction isSqlExpression(value) {\n\treturn typeof value === \"object\" && value !== null && Reflect.get(value, SQL_EXPRESSION_MARKER) === true && typeof Reflect.get(value, \"text\") === \"string\";\n}\n/**\n* This copy's `SqlExpression` for `value`: the value itself when this copy made it, a new one built\n* from the text of a `sql` value another copy made, so that text is canonicalized here too, or\n* `undefined` for anything else.\n*/\nfunction readSqlExpression(value) {\n\tif (value instanceof SqlExpression) return value;\n\treturn isSqlExpression(value) ? new SqlExpression(value.text) : void 0;\n}\n/** Raw SQL written as a template literal: `` sql`\"userId\" = auth.uid()` ``. Other `sql` values may be interpolated; each later line of one takes the indentation of the template line it sits on. */\nfunction sql(strings, ...values) {\n\tconst texts = values.map((value, index) => {\n\t\tconst expression = readSqlExpression(value);\n\t\tif (expression === void 0) throw contractError(\"CONTRACT.SQL_EXPRESSION_INTERPOLATION\", \"sql`...` only interpolates other sql`...` values; write any other text inside the template.\", { meta: { index } });\n\t\treturn expression.text;\n\t});\n\tconst pieces = strings.raw.map((piece) => resolveTemplateTagEscapes(piece));\n\tlet joined = pieces[0] ?? \"\";\n\tlet templateLineIndent = indentOfLastLine(joined);\n\ttexts.forEach((value, index) => {\n\t\tconst piece = pieces[index + 1] ?? \"\";\n\t\tjoined += value.replaceAll(\"\\n\", `\\n${templateLineIndent}`) + piece;\n\t\tif (/[\\n\\r]/.test(piece)) templateLineIndent = indentOfLastLine(piece);\n\t});\n\treturn new SqlExpression(joined);\n}\nfunction indentOfLastLine(templatePiece) {\n\tconst lastLine = templatePiece.slice(Math.max(templatePiece.lastIndexOf(\"\\n\"), templatePiece.lastIndexOf(\"\\r\")) + 1);\n\treturn LEADING_WHITESPACE.exec(lastLine)?.[0] ?? \"\";\n}\nconst LEADING_WHITESPACE = /^[ \\t]*/;\n/** Reads `value` with `readSqlExpression`; throws for anything that is not a `sql` value. For callers that JavaScript cannot type-check. */\nfunction requireSqlExpression(value, what) {\n\tconst expression = readSqlExpression(value);\n\tif (expression !== void 0) return expression;\n\tthrow contractError(\"CONTRACT.ARGUMENT_INVALID\", `${what} must be a sql\\`...\\` value.`, { meta: { what } });\n}\n//#endregion\nexport { SQL_EXPRESSION_DATA_TYPE_ID, SQL_EXPRESSION_TAG, SqlExpression, assertNothingCastsFromSqlExpression, canonicalSqlText, isSqlExpression, printSqlExpressionLiteral, readSqlExpression, requireSqlExpression, sql, sqlExpressionAuthoringEntry, sqlExpressionDataType, sqlExpressionRegistration, sqlTextFromCanonical, sqlTextsReadBack };\n\n//# sourceMappingURL=sql-expression.mjs.map"],"mappings":";;;;;;AAMA,MAAM,8BAA8B,WAAW,gBAAgB;AAC/D,MAAM,qBAAqB;;AAE3B,MAAM,wBAAwB,gBAAgB,SAAS,6BAA6B,CAAC,CAAC,CAAC;;AAEvF,MAAM,8BAA8B,OAAO,OAAO;CACjD,SAAS,OAAO,OAAO;EACtB,MAAM;EACN,KAAK;EACL,QAAQ,SAAS;CAClB,CAAC;CACD,QAAQ,UAAU,qBAAqB,KAAK;CAC5C,eAAe;AAChB,CAAC;AACD,SAAS,gBAAgB,MAAM;CAC9B,OAAO,OAAO,KAAK,KAAK;CACxB,OAAO,OAAO,OAAO,IAAI;AAC1B;;AAEA,MAAM,4BAA4B,OAAO,OAAO;CAC/C,WAAW,OAAO,OAAO,CAAC,qBAAqB,CAAC;CAChD,WAAW,OAAO,OAAO,EAAE,WAAW,OAAO,OAAO,GAAG,8BAA8B,4BAA4B,CAAC,EAAE,CAAC;AACtH,CAAC;;AAED,SAAS,qBAAqB,OAAO;CACpC,IAAI,OAAO,UAAU,UAAU,OAAO;CACtC,MAAM,IAAI,cAAc,2CAA2C,KAAK,UAAU,KAAK,EAAE,EAAE;AAC5F;;AAEA,SAAS,iBAAiB,MAAM;CAC/B,MAAM,YAAY,8BAA8B,IAAI;CACpD,OAAO,UAAU,KAAK,UAAU,OAAO,KAAK;AAC7C;;;;;AAKA,SAAS,0BAA0B,MAAM;CACxC,IAAI,CAAC,8BAA8B,IAAI,GAAG,MAAM,IAAI,cAAc,6BAA6B,KAAK,UAAU,IAAI,EAAE,wCAAwC;CAC5J,OAAO,mBAAmB,OAAO,IAAI;AAC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QAAQ;CAChC,MAAM,QAAQ,OAAO,KAAK,OAAO,UAAU;EAC1C,MAAM,aAAa,kBAAkB,KAAK;EAC1C,IAAI,eAAe,KAAK,GAAG,MAAM,cAAc,yCAAyC,+FAA+F,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC;EAC1M,OAAO,WAAW;CACnB,CAAC;CACD,MAAM,SAAS,QAAQ,IAAI,KAAK,UAAU,0BAA0B,KAAK,CAAC;CAC1E,IAAI,SAAS,OAAO,MAAM;CAC1B,IAAI,qBAAqB,iBAAiB,MAAM;CAChD,MAAM,SAAS,OAAO,UAAU;EAC/B,MAAM,QAAQ,OAAO,QAAQ,MAAM;EACnC,UAAU,MAAM,WAAW,MAAM,KAAK,oBAAoB,IAAI;EAC9D,IAAI,SAAS,KAAK,KAAK,GAAG,qBAAqB,iBAAiB,KAAK;CACtE,CAAC;CACD,OAAO,IAAI,cAAc,MAAM;AAChC;AACA,SAAS,iBAAiB,eAAe;CACxC,MAAM,WAAW,cAAc,MAAM,KAAK,IAAI,cAAc,YAAY,IAAI,GAAG,cAAc,YAAY,IAAI,CAAC,IAAI,CAAC;CACnH,OAAO,mBAAmB,KAAK,QAAQ,CAAC,GAAG,MAAM;AAClD;AACA,MAAM,qBAAqB;;AAE3B,SAAS,qBAAqB,OAAO,MAAM;CAC1C,MAAM,aAAa,kBAAkB,KAAK;CAC1C,IAAI,eAAe,KAAK,GAAG,OAAO;CAClC,MAAM,cAAc,6BAA6B,GAAG,KAAK,+BAA+B,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC;AAC3G"}
|
|
@@ -8,8 +8,8 @@ import "./types-DqSCaTK3.mjs";
|
|
|
8
8
|
import { r as SqlControlAdapter } from "./control-adapter-CkFfBVei-DH5DAObc.mjs";
|
|
9
9
|
import { Contract } from "@prisma/orm-framework/contract/types";
|
|
10
10
|
import { TargetBoundComponentDescriptor } from "@prisma/orm-framework/components/components";
|
|
11
|
-
import { ContractSpace, ControlAdapterDescriptor, ControlExtensionDescriptor, MigrationOperationPolicy, MigrationPlan, MigrationPlanOperation, MigrationPlannerConflict, MigrationPlannerFailureResult, MigrationPlannerSuccessResult, MigrationRunnerExecutionChecks, MigrationRunnerFailure, MigrationRunnerPerSpaceSuccessValue, MigrationRunnerResult, OpFactoryCall, OperationContext, PlanOrigin, ResolvedMigrationStatement, SchemaDiffIssue, SchemaOwnership } from "@prisma/orm-framework/components/control";
|
|
12
11
|
import { Result } from "@prisma/orm-framework/utils/result";
|
|
12
|
+
import { ContractSpace, ControlAdapterDescriptor, ControlExtensionDescriptor, MigrationOperationPolicy, MigrationPlan, MigrationPlanOperation, MigrationPlannerConflict, MigrationPlannerFailureResult, MigrationPlannerSuccessResult, MigrationRunnerExecutionChecks, MigrationRunnerFailure, MigrationRunnerPerSpaceSuccessValue, MigrationRunnerResult, OpFactoryCall, OperationContext, PlanOrigin, ResolvedMigrationStatement, SchemaDiffIssue, SchemaOwnership } from "@prisma/orm-framework/components/control";
|
|
13
13
|
import { AggregateMigrationEdgeRef } from "@prisma/orm-toolchain/migration-tools/aggregate";
|
|
14
14
|
//#region ../../../2-sql/9-family/dist/types-CzxOObSY.d.mts
|
|
15
15
|
//#region src/core/migrations/types.d.ts
|
|
@@ -408,4 +408,4 @@ interface CreateSqlMigrationPlanOptions<TTargetDetails> {
|
|
|
408
408
|
}
|
|
409
409
|
//#endregion
|
|
410
410
|
export { StorageTypePlanResult as A, SqlPlanTargetDetails as C, SqlPlannerFailureResult as D, SqlPlannerConflictLocation as E, SqlPlannerResult as O, SqlMigrationRunnerSuccessValue as S, SqlPlannerConflictKind as T, SqlMigrationRunnerErrorCode as _, FieldEventContext as a, SqlMigrationRunnerFailure as b, SqlControlExtensionDescriptor as c, SqlMigrationPlanOperation as d, SqlMigrationPlanOperationStep as f, SqlMigrationRunner as g, SqlMigrationPlannerPlanOptions as h, FieldEvent as i, SqlPlannerSuccessResult as k, SqlMigrationPlan as l, SqlMigrationPlanner as m, CodecControlHooks as n, ResolveIdentityValueInput as o, SqlMigrationPlanOperationTarget as p, CreateSqlMigrationPlanOptions as r, SqlControlAdapterDescriptor as s, AnyRecord as t, SqlMigrationPlanContractInfo as u, SqlMigrationRunnerExecuteCallbacks as v, SqlPlannerConflict as w, SqlMigrationRunnerResult as x, SqlMigrationRunnerExecuteOptions as y };
|
|
411
|
-
//# sourceMappingURL=types-CzxOObSY-
|
|
411
|
+
//# sourceMappingURL=types-CzxOObSY-BxwvvyRZ.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types-CzxOObSY-
|
|
1
|
+
{"version":3,"file":"types-CzxOObSY-BxwvvyRZ.d.mts","names":[],"sources":["../../../../2-sql/9-family/dist/types-CzxOObSY.d.mts"],"mappings":";;;;;;;;;;;;;;;KAUK,YAAY,SAAS;UAChB,sBAAsB;WACrB,qBAAqB,0BAA0B;;;;;;;;;UAShD;;WAEC;WACA;WACA,aAAa;;;;;;;;;;;;;;;;KAgBnB;;;;;;;;;;;;;UAaK;WACC;WACA;WACA;WACA,aAAa;WACb,WAAW;WACX,aAAa;WACb,WAAW;;UAEZ,kBAAkB;;;;;;;;;EAS1B,sBAAsB;aACX;aACA,cAAc;aACd,UAAU,SAAS;aACnB,QAAQ;aACR;aACA,QAAQ;QACb,sBAAsB;EAC5B,cAAc;aACH;aACA,cAAc;aACd,QAAQ;aACR;iBACI;EACf,mBAAmB;aACR,QAAQ;aACR;QACL,QAAQ,eAAe;;;;;;;;;;EAU7B,wBAAwB,OAAO;;;;;;;;;;;;;;;EAe/B,gBAAgB,OAAO,YAAY,KAAK,+BAA+B;;UAE/D,8BAA8B,kCAAkC,kCAAkC;WACjG,wBAAwB;;;;;;;;;;;;WAYxB,gBAAgB,cAAc,SAAS;;UAExC,4BAA4B,kCAAkC,gCAAgC,WAAW,kBAAkB;WAC1H,wBAAwB;;UAEzB;WACC;WACA;;;;;;;;;WASA;WACA,OAAO;;;;;;;;;UASR;WACC;WACA;;UAED,gCAAgC;WAC/B;WACA,UAAU;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E,QAAQ;;;;;;;;;;;EAWZ,oBAAoB,SAAS,iCAAiC,kBAAkB,QAAQ;;UAEhF,8BAA8B;WAC7B;;;;WAIA;WACA,SAAS;WACT,aAAa;WACb,qBAAqB,0BAA0B;;;;;;WAM/C;WACA,OAAO"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma/orm-family-sql",
|
|
3
|
-
"version": "8.0.0-rc.17-dev.
|
|
3
|
+
"version": "8.0.0-rc.17-dev.13",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
"dist"
|
|
10
10
|
],
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@prisma/orm-framework": "8.0.0-rc.17-dev.
|
|
13
|
-
"@prisma/orm-toolchain": "8.0.0-rc.17-dev.
|
|
12
|
+
"@prisma/orm-framework": "8.0.0-rc.17-dev.13",
|
|
13
|
+
"@prisma/orm-toolchain": "8.0.0-rc.17-dev.13",
|
|
14
14
|
"@standard-schema/spec": "^1.1.0",
|
|
15
15
|
"arktype": "^2.2.2",
|
|
16
16
|
"pathe": "^2.0.3",
|
|
@@ -19,21 +19,21 @@
|
|
|
19
19
|
"ts-toolbelt": "^9.6.0"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
|
-
"@internal/family-sql": "8.0.0-rc.17-dev.
|
|
23
|
-
"@internal/sql-builder": "8.0.0-rc.17-dev.
|
|
24
|
-
"@internal/sql-contract": "8.0.0-rc.17-dev.
|
|
25
|
-
"@internal/sql-contract-emitter": "8.0.0-rc.17-dev.
|
|
26
|
-
"@internal/sql-contract-prisma7": "8.0.0-rc.17-dev.
|
|
27
|
-
"@internal/sql-contract-psl": "8.0.0-rc.17-dev.
|
|
28
|
-
"@internal/sql-contract-ts": "8.0.0-rc.17-dev.
|
|
29
|
-
"@internal/sql-errors": "8.0.0-rc.17-dev.
|
|
30
|
-
"@internal/sql-operations": "8.0.0-rc.17-dev.
|
|
31
|
-
"@internal/sql-orm-client": "8.0.0-rc.17-dev.
|
|
32
|
-
"@internal/sql-relational-core": "8.0.0-rc.17-dev.
|
|
33
|
-
"@internal/sql-runtime": "8.0.0-rc.17-dev.
|
|
34
|
-
"@internal/sql-schema-ir": "8.0.0-rc.17-dev.
|
|
35
|
-
"@repo/tsconfig": "8.0.0-rc.17-dev.
|
|
36
|
-
"@repo/tsdown": "8.0.0-rc.17-dev.
|
|
22
|
+
"@internal/family-sql": "8.0.0-rc.17-dev.13",
|
|
23
|
+
"@internal/sql-builder": "8.0.0-rc.17-dev.13",
|
|
24
|
+
"@internal/sql-contract": "8.0.0-rc.17-dev.13",
|
|
25
|
+
"@internal/sql-contract-emitter": "8.0.0-rc.17-dev.13",
|
|
26
|
+
"@internal/sql-contract-prisma7": "8.0.0-rc.17-dev.13",
|
|
27
|
+
"@internal/sql-contract-psl": "8.0.0-rc.17-dev.13",
|
|
28
|
+
"@internal/sql-contract-ts": "8.0.0-rc.17-dev.13",
|
|
29
|
+
"@internal/sql-errors": "8.0.0-rc.17-dev.13",
|
|
30
|
+
"@internal/sql-operations": "8.0.0-rc.17-dev.13",
|
|
31
|
+
"@internal/sql-orm-client": "8.0.0-rc.17-dev.13",
|
|
32
|
+
"@internal/sql-relational-core": "8.0.0-rc.17-dev.13",
|
|
33
|
+
"@internal/sql-runtime": "8.0.0-rc.17-dev.13",
|
|
34
|
+
"@internal/sql-schema-ir": "8.0.0-rc.17-dev.13",
|
|
35
|
+
"@repo/tsconfig": "8.0.0-rc.17-dev.13",
|
|
36
|
+
"@repo/tsdown": "8.0.0-rc.17-dev.13",
|
|
37
37
|
"tsdown": "0.22.14",
|
|
38
38
|
"typescript": "5.9.3"
|
|
39
39
|
},
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"contract-builder-DCTszECg.d.mts","names":[],"sources":["../../../../2-sql/2-authoring/contract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