@prisma/orm-family-sql 8.0.0-rc.17-dev.6 → 8.0.0-rc.17-dev.8
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-15pm1Qvk.d.mts +106 -0
- package/dist/attribute-specs-15pm1Qvk.d.mts.map +1 -0
- package/dist/{authoring-type-constructors-0Iv2zdwS-CcpLSwei.mjs → authoring-type-constructors-0Iv2zdwS-hVVlzpLW.mjs} +2 -2
- package/dist/{authoring-type-constructors-0Iv2zdwS-CcpLSwei.mjs.map → authoring-type-constructors-0Iv2zdwS-hVVlzpLW.mjs.map} +1 -1
- package/dist/{contract-builder-DEtvdts6.mjs → contract-builder-BSipKPrc.mjs} +3 -3
- package/dist/{contract-builder-DEtvdts6.mjs.map → contract-builder-BSipKPrc.mjs.map} +1 -1
- package/dist/contract-prisma7__provider.mjs +2 -2
- package/dist/contract-psl.d.mts +2 -2
- package/dist/contract-psl.d.mts.map +1 -1
- package/dist/contract-psl.mjs +1 -1
- package/dist/contract-psl__attribute-specs.d.mts +2 -86
- package/dist/contract-psl__attribute-specs.mjs +1 -1
- package/dist/contract-psl__provider.mjs +1 -1
- package/dist/contract-psl__provider.mjs.map +1 -1
- package/dist/contract-ts.mjs +1 -1
- package/dist/contract-ts__contract-builder.mjs +1 -1
- 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-BK2oKZmT.d.mts → control-3kVclzEh.d.mts} +20 -19
- package/dist/control-3kVclzEh.d.mts.map +1 -0
- package/dist/{control-4kwMnHYO.mjs → control-CXHnIBSV.mjs} +5 -5
- package/dist/{control-4kwMnHYO.mjs.map → control-CXHnIBSV.mjs.map} +1 -1
- package/dist/family.d.mts +5 -5
- package/dist/family.mjs +3 -3
- package/dist/family__control.d.mts +1 -1
- package/dist/family__control.mjs +2 -2
- package/dist/family__diff.mjs +1 -1
- package/dist/family__pack.d.mts +1 -1
- package/dist/family__pack.mjs +2 -2
- package/dist/family__psl-build.d.mts +2 -2
- package/dist/family__psl-build.mjs +1 -1
- package/dist/family__psl-infer.d.mts +1 -1
- package/dist/{interpreter-DlG-2o64-CDb20sM1.mjs → interpreter-BTM9k0wn-DPrWFd6h.mjs} +54 -26
- package/dist/interpreter-BTM9k0wn-DPrWFd6h.mjs.map +1 -0
- package/dist/{pack-D3L1b4Ag.d.mts → pack-g2rKoDhU.d.mts} +19 -18
- package/dist/pack-g2rKoDhU.d.mts.map +1 -0
- package/dist/{psl-build-C_n5uPZH.d.mts → psl-build-TrbDSGOA.d.mts} +2 -2
- package/dist/psl-build-TrbDSGOA.d.mts.map +1 -0
- package/dist/{psl-build-DTE03hcr.mjs → psl-build-vdqjrTx6.mjs} +7 -4
- package/dist/psl-build-vdqjrTx6.mjs.map +1 -0
- package/dist/{psl-column-resolution-CNtNJ7g7-DOrhyw4S.d.mts → psl-column-resolution-Dm5LhN9b-Bz-Ax2iC.d.mts} +2 -2
- package/dist/psl-column-resolution-Dm5LhN9b-Bz-Ax2iC.d.mts.map +1 -0
- package/dist/{psl-field-resolution-BW0ZuqBd--WxiBxb0.mjs → psl-field-resolution-CAJsUfST-BYuz5Nqh.mjs} +306 -284
- package/dist/psl-field-resolution-CAJsUfST-BYuz5Nqh.mjs.map +1 -0
- package/dist/{psl-infer-DsHE9xAU.d.mts → psl-infer-Dp_NzWE0.d.mts} +2 -2
- package/dist/{psl-infer-DsHE9xAU.d.mts.map → psl-infer-Dp_NzWE0.d.mts.map} +1 -1
- package/dist/{schema-verify-DIfHSB4I-k8l0LZZB.mjs → schema-verify-DIfHSB4I-CcxNNnKO.mjs} +2 -2
- package/dist/{schema-verify-DIfHSB4I-k8l0LZZB.mjs.map → schema-verify-DIfHSB4I-CcxNNnKO.mjs.map} +1 -1
- package/dist/{sql-expression-DE_MTt3T.d.mts → sql-expression-DWyTh9M1.d.mts} +10 -3
- package/dist/sql-expression-DWyTh9M1.d.mts.map +1 -0
- package/dist/{sql-expression-D7GsLgDM.mjs → sql-expression-Dek0jx_g.mjs} +17 -4
- package/dist/sql-expression-Dek0jx_g.mjs.map +1 -0
- package/dist/{type-map-3w0ieDAb-DiMpKEc2.d.mts → type-map-BMCZ_fb9-BTmWHQ-J.d.mts} +6 -3
- package/dist/type-map-BMCZ_fb9-BTmWHQ-J.d.mts.map +1 -0
- package/package.json +18 -18
- package/dist/contract-psl__attribute-specs.d.mts.map +0 -1
- package/dist/control-BK2oKZmT.d.mts.map +0 -1
- package/dist/interpreter-DlG-2o64-CDb20sM1.mjs.map +0 -1
- package/dist/pack-D3L1b4Ag.d.mts.map +0 -1
- package/dist/psl-build-C_n5uPZH.d.mts.map +0 -1
- package/dist/psl-build-DTE03hcr.mjs.map +0 -1
- package/dist/psl-column-resolution-CNtNJ7g7-DOrhyw4S.d.mts.map +0 -1
- package/dist/psl-field-resolution-BW0ZuqBd--WxiBxb0.mjs.map +0 -1
- package/dist/sql-expression-D7GsLgDM.mjs.map +0 -1
- package/dist/sql-expression-DE_MTt3T.d.mts.map +0 -1
- package/dist/type-map-3w0ieDAb-DiMpKEc2.d.mts.map +0 -1
|
@@ -4,8 +4,8 @@ import { n as declaredBackingObjectName, r as declaredIndexesServeForeignKey } f
|
|
|
4
4
|
import { d as validateSqlStorageConsistency, l as validateModelStorageReferences } from "./validators-CIfn8ezs.mjs";
|
|
5
5
|
import { t as deriveValueSetFromEntity } from "./value-set-derivation-hook-Di9JZ0X7.mjs";
|
|
6
6
|
import { n as buildSqlContractFromDefinition, t as applySqlSpecifierControlPolicy } from "./derived-checks-CfXjGvNH-CrXoMrPU.mjs";
|
|
7
|
-
import {
|
|
8
|
-
import { a as normalizeReferentialAction, n as buildEntityTypesByDiscriminator, r as indexFkRelations, t as applyBackrelationCandidates } from "./interpreter-
|
|
7
|
+
import { d as instantiateFieldTypeConstructor, y as readDataTypeDefault } from "./psl-field-resolution-CAJsUfST-BYuz5Nqh.mjs";
|
|
8
|
+
import { a as normalizeReferentialAction, n as buildEntityTypesByDiscriminator, r as indexFkRelations, t as applyBackrelationCandidates } from "./interpreter-BTM9k0wn-DPrWFd6h.mjs";
|
|
9
9
|
import { isStructuredError } from "@prisma/orm-framework/utils/structured-error";
|
|
10
10
|
import { ifDefined } from "@prisma/orm-framework/utils/defined";
|
|
11
11
|
import { entryForTag, getAuthoringTypeConstructor, instantiateAuthoringEntityType } from "@prisma/orm-framework/components/authoring";
|
package/dist/contract-psl.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as SqlNamespaceBase, c as SqlNamespaceInput } from "./sql-storage-BTlJLUID-CGy3wuH4.mjs";
|
|
2
2
|
import "./types-Uv3oTMAb.mjs";
|
|
3
|
-
import { t as ColumnDescriptor } from "./psl-column-resolution-
|
|
3
|
+
import { t as ColumnDescriptor } from "./psl-column-resolution-Dm5LhN9b-Bz-Ax2iC.mjs";
|
|
4
4
|
import { AuthoringContributions, DataTypeSupport } from "@prisma/orm-framework/components/authoring";
|
|
5
5
|
import { CodecLookupWithDescriptors } from "@prisma/orm-framework/components/codec";
|
|
6
6
|
import { Contract } from "@prisma/orm-framework/contract/types";
|
|
@@ -10,7 +10,7 @@ import { ControlMutationDefaults, ControlMutationDefaults as ControlMutationDefa
|
|
|
10
10
|
import { Result } from "@prisma/orm-framework/utils/result";
|
|
11
11
|
import { Binder, SymbolTable } from "@prisma/orm-framework/psl-parser";
|
|
12
12
|
import { ContractSourceDiagnostic, ContractSourceDiagnostics } from "@prisma/orm-framework/config/config-types";
|
|
13
|
-
//#region ../../../2-sql/2-authoring/contract-psl/dist/interpreter-
|
|
13
|
+
//#region ../../../2-sql/2-authoring/contract-psl/dist/interpreter-DY9C1wx8.d.mts
|
|
14
14
|
//#region src/interpreter.d.ts
|
|
15
15
|
interface InterpretPslDocumentToSqlContractInput {
|
|
16
16
|
readonly documents: readonly DocumentAst[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contract-psl.d.mts","names":[],"sources":["../../../../2-sql/2-authoring/contract-psl/dist/interpreter-
|
|
1
|
+
{"version":3,"file":"contract-psl.d.mts","names":[],"sources":["../../../../2-sql/2-authoring/contract-psl/dist/interpreter-DY9C1wx8.d.mts"],"mappings":";;;;;;;;;;;;;;UAYU;WACC,oBAAoB;WACpB,aAAa;WACb,SAAS;WACT,QAAQ;WACR,QAAQ;WACR,yBAAyB,oBAAoB;WAC7C;WACA,qCAAqC;WACrC,0BAA0B;;WAE1B,WAAW;WACX,yBAAyB;;;;;;;;;;WAUzB,4BAA4B,oBAAoB;;WAEhD,kBAAkB,OAAO,sBAAsB;WAC/C,aAAa;WACb,2BAA2B;;WAE3B;aACE;aACA;;WAEF,cAAc;;iBASR,kCAAkC,OAAO,yCAAyC,OAAO,UAAU"}
|
package/dist/contract-psl.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as interpretPslDocumentToSqlContract } from "./interpreter-
|
|
1
|
+
import { i as interpretPslDocumentToSqlContract } from "./interpreter-BTM9k0wn-DPrWFd6h.mjs";
|
|
2
2
|
export { interpretPslDocumentToSqlContract };
|
|
@@ -1,86 +1,2 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
|
|
3
|
-
import { PslSources } from "@prisma/orm-framework/psl-parser/syntax";
|
|
4
|
-
import "@prisma/orm-framework/components/control";
|
|
5
|
-
import { AttributeSpec, DescribeUnsupportedAttribute, FieldAttributeCtx, FieldAttributeSpecContext, ModelAttributeCtx, ModelSymbol, NumLiteral, ParsedTaggedLiteral, TypedFuncCall } from "@prisma/orm-framework/psl-parser";
|
|
6
|
-
import "@prisma/orm-framework/components/psl-ast";
|
|
7
|
-
//#region ../../../2-sql/2-authoring/contract-psl/dist/sql-attribute-specs-CYoi9_rK.d.mts
|
|
8
|
-
//#region src/sql-attribute-specs.d.ts
|
|
9
|
-
type DefaultLiteralElement = string | NumLiteral | boolean | ParsedTaggedLiteral | null;
|
|
10
|
-
type DefaultArgValue = DefaultLiteralElement | DefaultLiteralElement[] | TypedFuncCall;
|
|
11
|
-
declare function defaultFieldSpec(ctx: FieldAttributeSpecContext): AttributeSpec<{
|
|
12
|
-
value: DefaultArgValue;
|
|
13
|
-
}, FieldAttributeCtx>;
|
|
14
|
-
declare function baseModelSpec(): AttributeSpec<{
|
|
15
|
-
base: import("@prisma/orm-framework/psl-parser").ResolvedEntityReference<ModelSymbol>;
|
|
16
|
-
value: string;
|
|
17
|
-
}, ModelAttributeCtx>;
|
|
18
|
-
declare const sqlAttributeSpecs: {
|
|
19
|
-
readonly model: {
|
|
20
|
-
readonly map: () => AttributeSpec<{
|
|
21
|
-
name: string;
|
|
22
|
-
}, ModelAttributeCtx>;
|
|
23
|
-
readonly id: () => AttributeSpec<{
|
|
24
|
-
fields: string[];
|
|
25
|
-
readonly map?: string;
|
|
26
|
-
}, ModelAttributeCtx>;
|
|
27
|
-
readonly unique: () => AttributeSpec<{
|
|
28
|
-
fields: string[];
|
|
29
|
-
readonly map?: string;
|
|
30
|
-
}, ModelAttributeCtx>;
|
|
31
|
-
readonly index: () => AttributeSpec<{
|
|
32
|
-
fields?: string[];
|
|
33
|
-
readonly expression?: string;
|
|
34
|
-
readonly where?: string;
|
|
35
|
-
readonly unique?: boolean;
|
|
36
|
-
readonly name?: string;
|
|
37
|
-
readonly map?: string;
|
|
38
|
-
readonly type?: string;
|
|
39
|
-
readonly options?: Record<string, string>;
|
|
40
|
-
}, ModelAttributeCtx>;
|
|
41
|
-
readonly check: () => AttributeSpec<{
|
|
42
|
-
readonly expression: string;
|
|
43
|
-
readonly name?: string;
|
|
44
|
-
readonly map?: string;
|
|
45
|
-
}, ModelAttributeCtx>;
|
|
46
|
-
readonly control: () => AttributeSpec<{
|
|
47
|
-
policy: "managed" | "tolerated" | "external" | "observed";
|
|
48
|
-
}, ModelAttributeCtx>;
|
|
49
|
-
readonly discriminator: () => AttributeSpec<{
|
|
50
|
-
field: string;
|
|
51
|
-
}, ModelAttributeCtx>;
|
|
52
|
-
readonly base: typeof baseModelSpec;
|
|
53
|
-
};
|
|
54
|
-
readonly field: {
|
|
55
|
-
readonly map: () => AttributeSpec<{
|
|
56
|
-
name: string;
|
|
57
|
-
}, FieldAttributeCtx>;
|
|
58
|
-
readonly id: () => AttributeSpec<{
|
|
59
|
-
readonly map?: string;
|
|
60
|
-
}, FieldAttributeCtx>;
|
|
61
|
-
readonly unique: () => AttributeSpec<{
|
|
62
|
-
readonly map?: string;
|
|
63
|
-
}, FieldAttributeCtx>;
|
|
64
|
-
readonly noCheck: () => AttributeSpec<{
|
|
65
|
-
first?: "membership" | "elementNotNull";
|
|
66
|
-
second?: "membership" | "elementNotNull";
|
|
67
|
-
}, FieldAttributeCtx>;
|
|
68
|
-
readonly relation: () => AttributeSpec<{
|
|
69
|
-
name?: string;
|
|
70
|
-
readonly fields?: string[];
|
|
71
|
-
readonly references?: string[];
|
|
72
|
-
readonly map?: string;
|
|
73
|
-
readonly onDelete?: "NoAction" | "Restrict" | "Cascade" | "SetNull" | "SetDefault";
|
|
74
|
-
readonly onUpdate?: "NoAction" | "Restrict" | "Cascade" | "SetNull" | "SetDefault";
|
|
75
|
-
readonly index?: string | boolean;
|
|
76
|
-
}, FieldAttributeCtx>;
|
|
77
|
-
readonly default: typeof defaultFieldSpec;
|
|
78
|
-
};
|
|
79
|
-
};
|
|
80
|
-
//#endregion
|
|
81
|
-
//#region ../../../2-sql/2-authoring/contract-psl/dist/attribute-specs.d.mts
|
|
82
|
-
//#region src/psl-field-resolution.d.ts
|
|
83
|
-
declare function describeUnsupportedSqlAttribute(sources: PslSources): DescribeUnsupportedAttribute;
|
|
84
|
-
//#endregion
|
|
85
|
-
export { describeUnsupportedSqlAttribute, sqlAttributeSpecs };
|
|
86
|
-
//# sourceMappingURL=contract-psl__attribute-specs.d.mts.map
|
|
1
|
+
import { a as ParsedNullLiteral, i as EnumMemberListDefault, n as DefaultFunctionCall, o as sqlAttributeSpecs, r as EnumMemberDefault, t as describeUnsupportedSqlAttribute } from "./attribute-specs-15pm1Qvk.mjs";
|
|
2
|
+
export { type DefaultFunctionCall, type EnumMemberDefault, type EnumMemberListDefault, type ParsedNullLiteral, describeUnsupportedSqlAttribute, sqlAttributeSpecs };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { S as sqlAttributeSpecs, a as describeUnsupportedSqlAttribute } from "./psl-field-resolution-CAJsUfST-BYuz5Nqh.mjs";
|
|
2
2
|
export { describeUnsupportedSqlAttribute, sqlAttributeSpecs };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as applySqlSpecifierControlPolicy } from "./derived-checks-CfXjGvNH-CrXoMrPU.mjs";
|
|
2
|
-
import { i as interpretPslDocumentToSqlContract } from "./interpreter-
|
|
2
|
+
import { i as interpretPslDocumentToSqlContract } from "./interpreter-BTM9k0wn-DPrWFd6h.mjs";
|
|
3
3
|
import { ifDefined } from "@prisma/orm-framework/utils/defined";
|
|
4
4
|
import { collectScalarTypeConstructors } from "@prisma/orm-framework/components/authoring";
|
|
5
5
|
import { readFile } from "node:fs/promises";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contract-psl__provider.mjs","names":[],"sources":["../../../../2-sql/2-authoring/contract-psl/dist/provider.mjs"],"sourcesContent":["import { n as interpretPslDocumentToSqlContract } from \"./interpreter-
|
|
1
|
+
{"version":3,"file":"contract-psl__provider.mjs","names":[],"sources":["../../../../2-sql/2-authoring/contract-psl/dist/provider.mjs"],"sourcesContent":["import { n as interpretPslDocumentToSqlContract } from \"./interpreter-BTM9k0wn.mjs\";\nimport { buildSymbolTable, createBinder, isPrismaNextSchema, mapPslDiagnostics } from \"@internal/psl-parser\";\nimport { applySqlSpecifierControlPolicy } from \"@internal/sql-contract-ts/contract-builder\";\nimport { assertDefined } from \"@internal/utils/assertions\";\nimport { ifDefined } from \"@internal/utils/defined\";\nimport { collectScalarTypeConstructors } from \"@internal/framework-components/authoring\";\nimport { withSeedDiagnostics } from \"@internal/psl-parser/interpret\";\nimport { parse } from \"@internal/psl-parser/syntax\";\nimport { notOk, ok } from \"@internal/utils/result\";\nimport { readFile } from \"node:fs/promises\";\nimport { basename, extname } from \"pathe\";\nimport { isDynamicPattern } from \"tinyglobby\";\n//#region src/provider.ts\n/**\n* The directory portion of `pattern` before its first glob-magic segment,\n* joined back with `/` (e.g. a `prisma` directory holding a recursive\n* `.prisma` glob derives `./prisma`). A rootless pattern with no static\n* segments yields `''`.\n*/\nfunction staticPrefixDirectory(pattern) {\n\tconst staticSegments = [];\n\tfor (const segment of pattern.replaceAll(\"\\\\\", \"/\").split(\"/\")) {\n\t\tif (isDynamicPattern(segment)) break;\n\t\tstaticSegments.push(segment);\n\t}\n\treturn staticSegments.join(\"/\");\n}\n/**\n* Derives the emit output path from the schema input path so artefacts land\n* colocated with the source (e.g. `src/contract/schema.prisma` →\n* `src/contract/contract.json`). A glob-shaped path derives from its static\n* prefix directory instead (a recursive glob under `prisma` derives\n* `./prisma/contract.json`). The provider owns this because it is the only\n* layer that knows the input path; the upstream `normalizeContractConfig`\n* default is a last-resort fallback for providers that don't carry one.\n*/\nfunction defaultOutputFromSchemaPath(schemaPath) {\n\tif (isDynamicPattern(schemaPath)) {\n\t\tconst prefix = staticPrefixDirectory(schemaPath);\n\t\treturn prefix.length === 0 ? \"contract.json\" : `${prefix}/contract.json`;\n\t}\n\tconst ext = extname(schemaPath);\n\tif (ext.length === 0) return `${schemaPath}.json`;\n\tconst base = schemaPath.slice(0, -ext.length);\n\tif (basename(base) === \"schema\") return `${base.slice(0, -6)}contract.json`;\n\treturn `${base}.json`;\n}\nfunction prismaContract(schemaPath, options) {\n\treturn {\n\t\tsource: {\n\t\t\tformat: \"psl\",\n\t\t\tinputs: [schemaPath],\n\t\t\tinterpret(input, context) {\n\t\t\t\tconst scalarColumnDescriptors = collectScalarTypeConstructors(context.authoringContributions.type);\n\t\t\t\treturn interpretPslDocumentToSqlContract({\n\t\t\t\t\tdocuments: input.documents,\n\t\t\t\t\tsymbolTable: input.symbolTable,\n\t\t\t\t\tsources: input.sources,\n\t\t\t\t\tbinder: input.binder,\n\t\t\t\t\tseedDiagnostics: [],\n\t\t\t\t\ttarget: options.target,\n\t\t\t\t\tauthoringContributions: context.authoringContributions,\n\t\t\t\t\tscalarColumnDescriptors,\n\t\t\t\t\t...ifDefined(\"composedExtensions\", context.composedExtensions.length > 0 ? [...context.composedExtensions] : void 0),\n\t\t\t\t\tcomposedExtensionContracts: context.composedExtensionContracts,\n\t\t\t\t\t...ifDefined(\"composedExtensionPackRefs\", options.composedExtensionPackRefs?.length ? options.composedExtensionPackRefs : void 0),\n\t\t\t\t\tcontrolMutationDefaults: context.controlMutationDefaults,\n\t\t\t\t\tcreateNamespace: options.createNamespace,\n\t\t\t\t\tcapabilities: context.capabilities,\n\t\t\t\t\tcodecLookup: context.codecLookup,\n\t\t\t\t\tdataTypes: context.dataTypes,\n\t\t\t\t\t...ifDefined(\"enumInferenceCodecs\", options.enumInferenceCodecs)\n\t\t\t\t});\n\t\t\t},\n\t\t\tasync load(context) {\n\t\t\t\tconst candidates = [...new Set(context.resolvedInputs)].sort();\n\t\t\t\tif (candidates.length === 0) return notOk({\n\t\t\t\t\tsummary: \"No schema files matched the configured contract source\",\n\t\t\t\t\tdiagnostics: [{\n\t\t\t\t\t\tcode: \"PSL_NO_SCHEMA_FILES_MATCHED\",\n\t\t\t\t\t\tmessage: `No files matched the configured pattern \"${schemaPath}\"`,\n\t\t\t\t\t\tsourceId: schemaPath\n\t\t\t\t\t}]\n\t\t\t\t});\n\t\t\t\tconst readDiagnostics = [];\n\t\t\t\tconst members = [];\n\t\t\t\tconst undirected = [];\n\t\t\t\tfor (const path of candidates) {\n\t\t\t\t\tlet text;\n\t\t\t\t\ttry {\n\t\t\t\t\t\ttext = await readFile(path, \"utf-8\");\n\t\t\t\t\t} catch (error) {\n\t\t\t\t\t\tconst message = String(error);\n\t\t\t\t\t\treadDiagnostics.push({\n\t\t\t\t\t\t\tcode: \"PSL_SCHEMA_READ_FAILED\",\n\t\t\t\t\t\t\tmessage,\n\t\t\t\t\t\t\tsourceId: path\n\t\t\t\t\t\t});\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tif (isPrismaNextSchema(text)) members.push({\n\t\t\t\t\t\tpath,\n\t\t\t\t\t\ttext\n\t\t\t\t\t});\n\t\t\t\t\telse undirected.push(path);\n\t\t\t\t}\n\t\t\t\tif (members.length === 0) {\n\t\t\t\t\tif (undirected.length === 0) return notOk({\n\t\t\t\t\t\tsummary: \"Failed to read Prisma schema files\",\n\t\t\t\t\t\tdiagnostics: readDiagnostics\n\t\t\t\t\t});\n\t\t\t\t\treturn notOk({\n\t\t\t\t\t\tsummary: \"No schema file carries the \\\"// use prisma-8\\\" directive\",\n\t\t\t\t\t\tdiagnostics: [...readDiagnostics, {\n\t\t\t\t\t\t\tcode: \"PSL_NO_OPTED_IN_SCHEMA_FILES\",\n\t\t\t\t\t\t\tmessage: `None of the matched files carry the \"// use prisma-8\" directive: ${undirected.join(\", \")}`,\n\t\t\t\t\t\t\tsourceId: schemaPath\n\t\t\t\t\t\t}]\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t\tconst parsed = members.map(({ path, text }) => parse(text, path));\n\t\t\t\tconst documents = parsed.map(({ document }) => document);\n\t\t\t\tconst [firstSources, ...restSources] = parsed.map(({ sources }) => sources);\n\t\t\t\tassertDefined(firstSources, \"prismaContract requires at least one parsed schema file\");\n\t\t\t\tconst sources = firstSources.merge(...restSources);\n\t\t\t\tconst seedDiagnostics = [...readDiagnostics, ...mapPslDiagnostics(parsed.flatMap(({ diagnostics }) => diagnostics), sources)];\n\t\t\t\tconst { symbolTable, diagnostics: symbolTableDiagnostics } = buildSymbolTable({\n\t\t\t\t\tdocuments,\n\t\t\t\t\tsources\n\t\t\t\t});\n\t\t\t\tconst { binder, diagnostics: binderDiagnostics } = createBinder({\n\t\t\t\t\tsymbolTable,\n\t\t\t\t\tsources,\n\t\t\t\t\tcontext\n\t\t\t\t});\n\t\t\t\tconst interpreted = withSeedDiagnostics(this.interpret({\n\t\t\t\t\tdocuments,\n\t\t\t\t\tsources,\n\t\t\t\t\tsymbolTable,\n\t\t\t\t\tbinder\n\t\t\t\t}, context), [...seedDiagnostics, ...mapPslDiagnostics([...symbolTableDiagnostics, ...binderDiagnostics], sources)]);\n\t\t\t\tif (!interpreted.ok) return interpreted;\n\t\t\t\treturn ok(applySqlSpecifierControlPolicy(interpreted.value, options.defaultControlPolicy, options.createNamespace));\n\t\t\t}\n\t\t},\n\t\toutput: options.output ?? defaultOutputFromSchemaPath(schemaPath)\n\t};\n}\n//#endregion\nexport { prismaContract };\n\n//# sourceMappingURL=provider.mjs.map"],"mappings":";;;;;;;;;;;;;;;;;;;AAmBA,SAAS,sBAAsB,SAAS;CACvC,MAAM,iBAAiB,CAAC;CACxB,KAAK,MAAM,WAAW,QAAQ,WAAW,MAAM,GAAG,CAAC,CAAC,MAAM,GAAG,GAAG;EAC/D,IAAI,iBAAiB,OAAO,GAAG;EAC/B,eAAe,KAAK,OAAO;CAC5B;CACA,OAAO,eAAe,KAAK,GAAG;AAC/B;;;;;;;;;;AAUA,SAAS,4BAA4B,YAAY;CAChD,IAAI,iBAAiB,UAAU,GAAG;EACjC,MAAM,SAAS,sBAAsB,UAAU;EAC/C,OAAO,OAAO,WAAW,IAAI,kBAAkB,GAAG,OAAO;CAC1D;CACA,MAAM,MAAM,QAAQ,UAAU;CAC9B,IAAI,IAAI,WAAW,GAAG,OAAO,GAAG,WAAW;CAC3C,MAAM,OAAO,WAAW,MAAM,GAAG,CAAC,IAAI,MAAM;CAC5C,IAAI,SAAS,IAAI,MAAM,UAAU,OAAO,GAAG,KAAK,MAAM,GAAG,EAAE,EAAE;CAC7D,OAAO,GAAG,KAAK;AAChB;AACA,SAAS,eAAe,YAAY,SAAS;CAC5C,OAAO;EACN,QAAQ;GACP,QAAQ;GACR,QAAQ,CAAC,UA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Q,WAAW,GAAG;KACzB,IAAI,WAAW,WAAW,GAAG,OAAO,MAAM;MACzC,SAAS;MACT,aAAa;KACd,CAAC;KACD,OAAO,MAAM;MACZ,SAAS;MACT,aAAa,CAAC,GAAG,iBAAiB;OACjC,MAAM;OACN,SAAS,oEAAoE,WAAW,KAAK,IAAI;OACjG,UAAU;MACX,CAAC;KACF,CAAC;IACF;IACA,MAAM,SAAS,QAAQ,KAAK,EAAE,MAAM,WAAW,MAAM,MAAM,IAAI,CAAC;IAChE,MAAM,YAAY,OAAO,KAAK,EAAE,eAAe,QAAQ;IACvD,MAAM,CAAC,cAAc,GAAG,eAAe,OAAO,KAAK,EAAE,cAAc,OAAO;IAC1E,cAAc,cAAc,yDAAyD;IACrF,MAAM,UAAU,aAAa,MAAM,GAAG,WAAW;IACjD,MAAM,kBAAkB,CAAC,GAAG,iBAAiB,GAAG,kBAAkB,OAAO,SAAS,EAAE,kBAAkB,WAAW,GAAG,OAAO,CAAC;IAC5H,MAAM,EAAE,aAAa,aAAa,2BAA2B,iBAAiB;KAC7E;KACA;IACD,CAAC;IACD,MAAM,EAAE,QAAQ,aAAa,sBAAsB,aAAa;KAC/D;KACA;KACA;IACD,CAAC;IACD,MAAM,cAAc,oBAAoB,KAAK,UAAU;KACtD;KACA;KACA;KACA;IACD,GAAG,OAAO,GAAG,CAAC,GAAG,iBAAiB,GAAG,kBAAkB,CAAC,GAAG,wBAAwB,GAAG,iBAAiB,GAAG,OAAO,CAAC,CAAC;IACnH,IAAI,CAAC,YAAY,IAAI,OAAO;IAC5B,OAAO,GAAG,+BAA+B,YAAY,OAAO,QAAQ,sBAAsB,QAAQ,eAAe,CAAC;GACnH;EACD;EACA,QAAQ,QAAQ,UAAU,4BAA4B,UAAU;CACjE;AACD"}
|
package/dist/contract-ts.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { a as storedAsListColumn, i as isValueObjectMember, n as buildSqlContractFromDefinition, t as applySqlSpecifierControlPolicy } from "./derived-checks-CfXjGvNH-CrXoMrPU.mjs";
|
|
2
|
-
import { a as check, c as enumType, d as member, f as model, h as sql, i as buildContractDefinition, l as extensionModel, m as rel, n as bindEnumType, o as createComposedAuthoringHelpers, p as now, r as buildBoundContract, s as defineContract, t as autoincrement, u as field } from "./contract-builder-
|
|
2
|
+
import { a as check, c as enumType, d as member, f as model, h as sql, i as buildContractDefinition, l as extensionModel, m as rel, n as bindEnumType, o as createComposedAuthoringHelpers, p as now, r as buildBoundContract, s as defineContract, t as autoincrement, u as field } from "./contract-builder-BSipKPrc.mjs";
|
|
3
3
|
import { n as typescriptContract, r as typescriptContractFromPath, t as emptyContract } from "./config-types-DsRO_uxd.mjs";
|
|
4
4
|
export { applySqlSpecifierControlPolicy, autoincrement, bindEnumType, buildBoundContract, buildContractDefinition, buildSqlContractFromDefinition, check, createComposedAuthoringHelpers, defineContract, emptyContract, enumType, extensionModel, field, isValueObjectMember, member, model, now, rel, sql, storedAsListColumn, typescriptContract, typescriptContractFromPath };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { a as storedAsListColumn, i as isValueObjectMember, n as buildSqlContractFromDefinition, t as applySqlSpecifierControlPolicy } from "./derived-checks-CfXjGvNH-CrXoMrPU.mjs";
|
|
2
|
-
import { a as check, c as enumType, d as member, f as model, h as sql, i as buildContractDefinition, l as extensionModel, m as rel, n as bindEnumType, o as createComposedAuthoringHelpers, p as now, r as buildBoundContract, s as defineContract, t as autoincrement, u as field } from "./contract-builder-
|
|
2
|
+
import { a as check, c as enumType, d as member, f as model, h as sql, i as buildContractDefinition, l as extensionModel, m as rel, n as bindEnumType, o as createComposedAuthoringHelpers, p as now, r as buildBoundContract, s as defineContract, t as autoincrement, u as field } from "./contract-builder-BSipKPrc.mjs";
|
|
3
3
|
export { applySqlSpecifierControlPolicy, autoincrement, bindEnumType, buildBoundContract, buildContractDefinition, buildSqlContractFromDefinition, check, createComposedAuthoringHelpers, defineContract, enumType, extensionModel, field, isValueObjectMember, member, model, now, rel, sql, storedAsListColumn };
|
package/dist/contract.d.mts
CHANGED
|
@@ -24,7 +24,7 @@ import { a as declaredBackingObjectName, c as derivedBackingIndexIsRedundant, i
|
|
|
24
24
|
import { n as validateIndexTypes, t as CodecTraitsLookup } from "./index-type-validation-D7-fPxIJ.mjs";
|
|
25
25
|
import { t as REFERENTIAL_ACTION_SQL } from "./referential-action-sql-Cw1Q0YSd.mjs";
|
|
26
26
|
import { n as resolveStorageTable, t as ResolvedStorageTable } from "./resolve-storage-table-wSUswl-4.mjs";
|
|
27
|
-
import { a as
|
|
27
|
+
import { a as printSqlExpressionLiteral, c as sqlTextFromCanonical, i as canonicalSqlText, l as sqlTextsReadBack, n as SQL_EXPRESSION_TAG, o as sqlExpressionAuthoringEntry, r as assertNothingCastsFromSqlExpression, s as sqlExpressionDataType, t as SQL_EXPRESSION_DATA_TYPE_ID } from "./sql-expression-DWyTh9M1.mjs";
|
|
28
28
|
import { C as validateSqlContractFully, D as valueObjectStorageTypeMissingMessage, E as validateStorageSemantics, S as validateModelStorageReferences, T as validateStorage, _ as createSqlContractSchema, a as ContractEnumSchema, b as resolveSqlToOneRelationStorage, c as ForeignKeySourceSchema, d as SqlToOneRelationStorage, f as StorageTableSchema, g as createNamespaceEntrySchema, h as checkSqlDefaultText, i as ColumnDefaultSchema, l as IndexSchema, m as ValidateSqlContractFullyOptions, n as ColumnDefaultFunctionSchema, o as ForeignKeyReferenceSchema, p as StorageValueSetSchema, r as ColumnDefaultLiteralSchema, s as ForeignKeySchema, t as CheckConstraintSchema, u as ReferentialActionSchema, v as createSqlStorageSchema, w as validateSqlStorageConsistency, x as validateModel, y as reservedSqlDefaultText } from "./validators-COcD3_iw.mjs";
|
|
29
29
|
import { n as deriveValueSetFromEntity, r as providesValueSetDerivation, t as SqlValueSetDerivingEntityTypeOutput } from "./value-set-derivation-hook-BhgGVtw0.mjs";
|
|
30
|
-
export { type AggregateOperationTypes, type AggregateResultType, type AggregateTypesBase, type AggregateTypesOf, type AuthoredCheckInput, type AuthoredIndexInput, type AuthoredIndexMethod, type AuthoredStorageTypeInstance, CODEC_INSTANCE_KIND, CanonicalDateTimeOptions, CheckConstraint, type CheckConstraintInput, CheckConstraintSchema, CodecTraitsLookup, type CodecTypesOf, ColumnDefaultFunctionSchema, ColumnDefaultLiteralSchema, ColumnDefaultSchema, ContractEnumSchema, type ContractWithTypeMaps, DEFAULT_FK_CONSTRAINT, DEFAULT_FK_INDEX, DateTimeShape, type EntityHandleLoweringInput, type ExtractAggregateTypes, type ExtractCodecTypes, type ExtractFieldInputTypes, type ExtractFieldOutputTypes, type ExtractQueryOperationTypes, type ExtractStorageColumnInputTypes, type ExtractStorageColumnTypes, type ExtractTypeMapsFromContract, FOREIGN_KEY_INDEX_UNRESOLVED, type FieldInputTypesOf, type FieldOutputTypesOf, ForeignKey, type ForeignKeyAuthoringInput, type ForeignKeyIndex, type ForeignKeyInput, type ForeignKeyOptions, ForeignKeyReference, type ForeignKeyReferenceInput, ForeignKeyReferenceSchema, ForeignKeySchema, ForeignKeySourceSchema, Index, type IndexCandidate, type IndexInput, IndexSchema, type IndexTypeBuilder, type IndexTypeEntry, type IndexTypeMap, type IndexTypeRegistration, type IndexTypeRegistry, IntegerStep, type LoweredPackEntity, type MaterializedTableConstraints, type NamespacedFieldTypeMap, type NamespacedStorageColumnTypeMap, NumberClassification, NumberClassifierSpec, type PackEntityHandle, PrimaryKey, type PrimaryKeyInput, type QueryOperationReturn, type QueryOperationSelfSpec, type QueryOperationTypeEntry, type QueryOperationTypesBase, type QueryOperationTypesOf, REFERENTIAL_ACTION_SQL, type ReferentialAction, ReferentialActionSchema, RelationKeys, type RelationNamesOf, type ReportedSqlType, type ResolveCodecTypes, type ResolvedEntityHandleRef, type ResolvedPackEntityHandle, type ResolvedPslModelRefs, type ResolvedSqlType, type ResolvedStorageTable, SQL_BUILTIN_KINDS, SQL_EXPRESSION_DATA_TYPE_ID, SQL_EXPRESSION_TAG, type Scalars, type SerializedCheckConstraint, type SerializedIndex, type Shape, type ShapeSpec, type SqlAuthoringContributions, type SqlBuiltinKind, type SqlControlDriverInstance, type SqlDataType, type SqlDataTypeCollision, type SqlDataTypeFacts, type SqlDataTypeSpec, type SqlEntityHandleLoweringContribution, type SqlModelFieldStorage, type SqlModelStorage, type SqlNamespace, SqlNamespaceBase, type SqlNamespaceEntries, type SqlNamespaceFactory, type SqlNamespaceInput, SqlNode, type SqlPslEntityPlacementOutput, type SqlQueryOperationTypes, type SqlSchemaQualifiedView, type SqlSingleNamespaceAccessors, type SqlSingleNamespaceView, SqlStorage, type SqlStorageInput, type SqlStorageTypeEntry, type SqlToOneRelationStorage, type SqlTypeLookups, type SqlTypeParams, type SqlTypeText, type SqlValueSetDerivingEntityTypeOutput, StorageColumn, type StorageColumnInput, type StorageColumnInputTypesOf, type StorageColumnMapAt, type StorageColumnTypeAcrossNamespaces, type StorageColumnTypesOf, StorageTable, type StorageTableInput, StorageTableSchema, type StorageTypeInstance, type StorageTypeInstanceInput, StorageValueSet, type StorageValueSetInput, StorageValueSetSchema, type TypeMaps, type TypeMapsPhantomKey, UniqueConstraint, type UniqueConstraintInput, ValidateSqlContractFullyOptions, accessMethodOf, applyFkDefaults, assertNothingCastsFromSqlExpression, buildSqlSchemaQualifiedView, buildSqlSingleNamespaceView, canonicalDateTime, canonicalNumeralText, checkConstraintInputFromSerialized, checkSqlDefaultText, col, composeSqlEntityKinds, createIndexTypeRegistry, createNamespaceEntrySchema, createNumberClassifier, createSqlContractSchema, createSqlStorageSchema, dataTypeParams, declaredBackingObjectName, declaredIndexesServeForeignKey, defaultForeignKeyIndex, defineIndexTypes, deriveValueSetFromEntity, derivedBackingIndexIsRedundant, escapePslString, exactNameBodyWarning, findSqlDataTypeCollision, fk, index, indexInputFromSerialized, indexTypeRegistryOf, integerTextCanonicalForm, isAuthoredIndexInput, isMaterializedSqlNamespace, isNumeralText, isSqlAuthoringContributions, isSqlDataType, isStorageTypeInstance, isStorageValueSet, leadingBackingObjectName, lowerAuthoredCheck, lowerAuthoredIndex, materializeForeignKeysAndIndexes, model, numeralText, parseJsonText, pk, printJsonText, printSqlExpressionLiteral, providesEntityHandleLowering, providesPslEntityPlacement, providesValueSetDerivation, renderSqlCatalogText, renderSqlTypeName, rendersIndexBody, reservedSqlDefaultText, resolveReportedSqlType, resolveSqlToOneRelationStorage, resolveStorageTable, resolvedTypeParams, signedRange, sqlBaseName, sqlContractCanonicalizationHooks, sqlDataType, sqlDataTypeOfCodec, sqlExpressionAuthoringEntry, sqlExpressionDataType, sqlTextFromCanonical, table, tableEntityKind, toStorageTypeInstance, unique, unquotedSqlBaseName, unquotedSqlBaseNameOfCodec, validateIndexTypes, validateModel, validateModelStorageReferences, validateSqlContractFully, validateSqlStorageConsistency, validateSqlTypeParams, validateStorage, validateStorageSemantics, valueObjectStorageTypeMissingMessage, valueSetEntityKind };
|
|
30
|
+
export { type AggregateOperationTypes, type AggregateResultType, type AggregateTypesBase, type AggregateTypesOf, type AuthoredCheckInput, type AuthoredIndexInput, type AuthoredIndexMethod, type AuthoredStorageTypeInstance, CODEC_INSTANCE_KIND, CanonicalDateTimeOptions, CheckConstraint, type CheckConstraintInput, CheckConstraintSchema, CodecTraitsLookup, type CodecTypesOf, ColumnDefaultFunctionSchema, ColumnDefaultLiteralSchema, ColumnDefaultSchema, ContractEnumSchema, type ContractWithTypeMaps, DEFAULT_FK_CONSTRAINT, DEFAULT_FK_INDEX, DateTimeShape, type EntityHandleLoweringInput, type ExtractAggregateTypes, type ExtractCodecTypes, type ExtractFieldInputTypes, type ExtractFieldOutputTypes, type ExtractQueryOperationTypes, type ExtractStorageColumnInputTypes, type ExtractStorageColumnTypes, type ExtractTypeMapsFromContract, FOREIGN_KEY_INDEX_UNRESOLVED, type FieldInputTypesOf, type FieldOutputTypesOf, ForeignKey, type ForeignKeyAuthoringInput, type ForeignKeyIndex, type ForeignKeyInput, type ForeignKeyOptions, ForeignKeyReference, type ForeignKeyReferenceInput, ForeignKeyReferenceSchema, ForeignKeySchema, ForeignKeySourceSchema, Index, type IndexCandidate, type IndexInput, IndexSchema, type IndexTypeBuilder, type IndexTypeEntry, type IndexTypeMap, type IndexTypeRegistration, type IndexTypeRegistry, IntegerStep, type LoweredPackEntity, type MaterializedTableConstraints, type NamespacedFieldTypeMap, type NamespacedStorageColumnTypeMap, NumberClassification, NumberClassifierSpec, type PackEntityHandle, PrimaryKey, type PrimaryKeyInput, type QueryOperationReturn, type QueryOperationSelfSpec, type QueryOperationTypeEntry, type QueryOperationTypesBase, type QueryOperationTypesOf, REFERENTIAL_ACTION_SQL, type ReferentialAction, ReferentialActionSchema, RelationKeys, type RelationNamesOf, type ReportedSqlType, type ResolveCodecTypes, type ResolvedEntityHandleRef, type ResolvedPackEntityHandle, type ResolvedPslModelRefs, type ResolvedSqlType, type ResolvedStorageTable, SQL_BUILTIN_KINDS, SQL_EXPRESSION_DATA_TYPE_ID, SQL_EXPRESSION_TAG, type Scalars, type SerializedCheckConstraint, type SerializedIndex, type Shape, type ShapeSpec, type SqlAuthoringContributions, type SqlBuiltinKind, type SqlControlDriverInstance, type SqlDataType, type SqlDataTypeCollision, type SqlDataTypeFacts, type SqlDataTypeSpec, type SqlEntityHandleLoweringContribution, type SqlModelFieldStorage, type SqlModelStorage, type SqlNamespace, SqlNamespaceBase, type SqlNamespaceEntries, type SqlNamespaceFactory, type SqlNamespaceInput, SqlNode, type SqlPslEntityPlacementOutput, type SqlQueryOperationTypes, type SqlSchemaQualifiedView, type SqlSingleNamespaceAccessors, type SqlSingleNamespaceView, SqlStorage, type SqlStorageInput, type SqlStorageTypeEntry, type SqlToOneRelationStorage, type SqlTypeLookups, type SqlTypeParams, type SqlTypeText, type SqlValueSetDerivingEntityTypeOutput, StorageColumn, type StorageColumnInput, type StorageColumnInputTypesOf, type StorageColumnMapAt, type StorageColumnTypeAcrossNamespaces, type StorageColumnTypesOf, StorageTable, type StorageTableInput, StorageTableSchema, type StorageTypeInstance, type StorageTypeInstanceInput, StorageValueSet, type StorageValueSetInput, StorageValueSetSchema, type TypeMaps, type TypeMapsPhantomKey, UniqueConstraint, type UniqueConstraintInput, ValidateSqlContractFullyOptions, accessMethodOf, applyFkDefaults, assertNothingCastsFromSqlExpression, buildSqlSchemaQualifiedView, buildSqlSingleNamespaceView, canonicalDateTime, canonicalNumeralText, canonicalSqlText, checkConstraintInputFromSerialized, checkSqlDefaultText, col, composeSqlEntityKinds, createIndexTypeRegistry, createNamespaceEntrySchema, createNumberClassifier, createSqlContractSchema, createSqlStorageSchema, dataTypeParams, declaredBackingObjectName, declaredIndexesServeForeignKey, defaultForeignKeyIndex, defineIndexTypes, deriveValueSetFromEntity, derivedBackingIndexIsRedundant, escapePslString, exactNameBodyWarning, findSqlDataTypeCollision, fk, index, indexInputFromSerialized, indexTypeRegistryOf, integerTextCanonicalForm, isAuthoredIndexInput, isMaterializedSqlNamespace, isNumeralText, isSqlAuthoringContributions, isSqlDataType, isStorageTypeInstance, isStorageValueSet, leadingBackingObjectName, lowerAuthoredCheck, lowerAuthoredIndex, materializeForeignKeysAndIndexes, model, numeralText, parseJsonText, pk, printJsonText, printSqlExpressionLiteral, providesEntityHandleLowering, providesPslEntityPlacement, providesValueSetDerivation, renderSqlCatalogText, renderSqlTypeName, rendersIndexBody, reservedSqlDefaultText, resolveReportedSqlType, resolveSqlToOneRelationStorage, resolveStorageTable, resolvedTypeParams, signedRange, sqlBaseName, sqlContractCanonicalizationHooks, sqlDataType, sqlDataTypeOfCodec, sqlExpressionAuthoringEntry, sqlExpressionDataType, sqlTextFromCanonical, sqlTextsReadBack, table, tableEntityKind, toStorageTypeInstance, unique, unquotedSqlBaseName, unquotedSqlBaseNameOfCodec, validateIndexTypes, validateModel, validateModelStorageReferences, validateSqlContractFully, validateSqlStorageConsistency, validateSqlTypeParams, validateStorage, validateStorageSemantics, valueObjectStorageTypeMissingMessage, valueSetEntityKind };
|
package/dist/contract.mjs
CHANGED
|
@@ -16,8 +16,8 @@ import { a as materializeForeignKeysAndIndexes, i as defaultForeignKeyIndex, n a
|
|
|
16
16
|
import { t as validateIndexTypes } from "./index-type-validation-Bcme_Ust.mjs";
|
|
17
17
|
import { t as REFERENTIAL_ACTION_SQL } from "./referential-action-sql-DSqkrySN.mjs";
|
|
18
18
|
import { t as resolveStorageTable } from "./resolve-storage-table-DZsfnzeW.mjs";
|
|
19
|
-
import { a as
|
|
19
|
+
import { a as printSqlExpressionLiteral, c as sqlTextFromCanonical, i as canonicalSqlText, l as sqlTextsReadBack, n as SQL_EXPRESSION_TAG, o as sqlExpressionAuthoringEntry, r as assertNothingCastsFromSqlExpression, s as sqlExpressionDataType, t as SQL_EXPRESSION_DATA_TYPE_ID } from "./sql-expression-Dek0jx_g.mjs";
|
|
20
20
|
import { a as SqlNamespaceBase, c as isMaterializedSqlNamespace, d as resolvedTypeParams, f as toStorageTypeInstance, i as RelationKeys, l as isSqlAuthoringContributions, n as DEFAULT_FK_CONSTRAINT, o as SqlStorage, r as DEFAULT_FK_INDEX, s as applyFkDefaults, t as CODEC_INSTANCE_KIND, u as isStorageTypeInstance } from "./types-DXrO0fxT.mjs";
|
|
21
21
|
import { a as createSqlStorageSchema, c as validateModel, d as validateSqlStorageConsistency, f as validateStorage, i as createSqlContractSchema, l as validateModelStorageReferences, m as valueObjectStorageTypeMissingMessage, n as checkSqlDefaultText, o as reservedSqlDefaultText, p as validateStorageSemantics, r as createNamespaceEntrySchema, s as resolveSqlToOneRelationStorage, t as ContractEnumSchema, u as validateSqlContractFully } from "./validators-CIfn8ezs.mjs";
|
|
22
22
|
import { n as providesValueSetDerivation, t as deriveValueSetFromEntity } from "./value-set-derivation-hook-Di9JZ0X7.mjs";
|
|
23
|
-
export { CODEC_INSTANCE_KIND, CheckConstraint, CheckConstraintSchema, ColumnDefaultFunctionSchema, ColumnDefaultLiteralSchema, ColumnDefaultSchema, ContractEnumSchema, DEFAULT_FK_CONSTRAINT, DEFAULT_FK_INDEX, FOREIGN_KEY_INDEX_UNRESOLVED, ForeignKey, ForeignKeyReference, ForeignKeyReferenceSchema, ForeignKeySchema, ForeignKeySourceSchema, Index, IndexSchema, PrimaryKey, REFERENTIAL_ACTION_SQL, ReferentialActionSchema, RelationKeys, SQL_BUILTIN_KINDS, SQL_EXPRESSION_DATA_TYPE_ID, SQL_EXPRESSION_TAG, SqlNamespaceBase, SqlNode, SqlStorage, StorageColumn, StorageTable, StorageTableSchema, StorageValueSet, StorageValueSetSchema, UniqueConstraint, accessMethodOf, applyFkDefaults, assertNothingCastsFromSqlExpression, buildSqlSchemaQualifiedView, buildSqlSingleNamespaceView, canonicalDateTime, canonicalNumeralText, checkConstraintInputFromSerialized, checkSqlDefaultText, col, composeSqlEntityKinds, createIndexTypeRegistry, createNamespaceEntrySchema, createNumberClassifier, createSqlContractSchema, createSqlStorageSchema, dataTypeParams, declaredBackingObjectName, declaredIndexesServeForeignKey, defaultForeignKeyIndex, defineIndexTypes, deriveValueSetFromEntity, derivedBackingIndexIsRedundant, escapePslString, exactNameBodyWarning, findSqlDataTypeCollision, fk, index, indexInputFromSerialized, indexTypeRegistryOf, integerTextCanonicalForm, isAuthoredIndexInput, isMaterializedSqlNamespace, isNumeralText, isSqlAuthoringContributions, isSqlDataType, isStorageTypeInstance, isStorageValueSet, leadingBackingObjectName, lowerAuthoredCheck, lowerAuthoredIndex, materializeForeignKeysAndIndexes, model, numeralText, parseJsonText, pk, printJsonText, printSqlExpressionLiteral, providesEntityHandleLowering, providesPslEntityPlacement, providesValueSetDerivation, renderSqlCatalogText, renderSqlTypeName, rendersIndexBody, reservedSqlDefaultText, resolveReportedSqlType, resolveSqlToOneRelationStorage, resolveStorageTable, resolvedTypeParams, signedRange, sqlBaseName, sqlContractCanonicalizationHooks, sqlDataType, sqlDataTypeOfCodec, sqlExpressionAuthoringEntry, sqlExpressionDataType, sqlTextFromCanonical, table, tableEntityKind, toStorageTypeInstance, unique, unquotedSqlBaseName, unquotedSqlBaseNameOfCodec, validateIndexTypes, validateModel, validateModelStorageReferences, validateSqlContractFully, validateSqlStorageConsistency, validateSqlTypeParams, validateStorage, validateStorageSemantics, valueObjectStorageTypeMissingMessage, valueSetEntityKind };
|
|
23
|
+
export { CODEC_INSTANCE_KIND, CheckConstraint, CheckConstraintSchema, ColumnDefaultFunctionSchema, ColumnDefaultLiteralSchema, ColumnDefaultSchema, ContractEnumSchema, DEFAULT_FK_CONSTRAINT, DEFAULT_FK_INDEX, FOREIGN_KEY_INDEX_UNRESOLVED, ForeignKey, ForeignKeyReference, ForeignKeyReferenceSchema, ForeignKeySchema, ForeignKeySourceSchema, Index, IndexSchema, PrimaryKey, REFERENTIAL_ACTION_SQL, ReferentialActionSchema, RelationKeys, SQL_BUILTIN_KINDS, SQL_EXPRESSION_DATA_TYPE_ID, SQL_EXPRESSION_TAG, SqlNamespaceBase, SqlNode, SqlStorage, StorageColumn, StorageTable, StorageTableSchema, StorageValueSet, StorageValueSetSchema, UniqueConstraint, accessMethodOf, applyFkDefaults, assertNothingCastsFromSqlExpression, buildSqlSchemaQualifiedView, buildSqlSingleNamespaceView, canonicalDateTime, canonicalNumeralText, canonicalSqlText, checkConstraintInputFromSerialized, checkSqlDefaultText, col, composeSqlEntityKinds, createIndexTypeRegistry, createNamespaceEntrySchema, createNumberClassifier, createSqlContractSchema, createSqlStorageSchema, dataTypeParams, declaredBackingObjectName, declaredIndexesServeForeignKey, defaultForeignKeyIndex, defineIndexTypes, deriveValueSetFromEntity, derivedBackingIndexIsRedundant, escapePslString, exactNameBodyWarning, findSqlDataTypeCollision, fk, index, indexInputFromSerialized, indexTypeRegistryOf, integerTextCanonicalForm, isAuthoredIndexInput, isMaterializedSqlNamespace, isNumeralText, isSqlAuthoringContributions, isSqlDataType, isStorageTypeInstance, isStorageValueSet, leadingBackingObjectName, lowerAuthoredCheck, lowerAuthoredIndex, materializeForeignKeysAndIndexes, model, numeralText, parseJsonText, pk, printJsonText, printSqlExpressionLiteral, providesEntityHandleLowering, providesPslEntityPlacement, providesValueSetDerivation, renderSqlCatalogText, renderSqlTypeName, rendersIndexBody, reservedSqlDefaultText, resolveReportedSqlType, resolveSqlToOneRelationStorage, resolveStorageTable, resolvedTypeParams, signedRange, sqlBaseName, sqlContractCanonicalizationHooks, sqlDataType, sqlDataTypeOfCodec, sqlExpressionAuthoringEntry, sqlExpressionDataType, sqlTextFromCanonical, sqlTextsReadBack, table, tableEntityKind, toStorageTypeInstance, unique, unquotedSqlBaseName, unquotedSqlBaseNameOfCodec, validateIndexTypes, validateModel, validateModelStorageReferences, validateSqlContractFully, validateSqlStorageConsistency, validateSqlTypeParams, validateStorage, validateStorageSemantics, valueObjectStorageTypeMissingMessage, valueSetEntityKind };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
export { SQL_EXPRESSION_DATA_TYPE_ID, SQL_EXPRESSION_TAG, assertNothingCastsFromSqlExpression, printSqlExpressionLiteral, sqlExpressionAuthoringEntry, sqlExpressionDataType, sqlTextFromCanonical };
|
|
1
|
+
import { a as printSqlExpressionLiteral, c as sqlTextFromCanonical, i as canonicalSqlText, l as sqlTextsReadBack, n as SQL_EXPRESSION_TAG, o as sqlExpressionAuthoringEntry, r as assertNothingCastsFromSqlExpression, s as sqlExpressionDataType, t as SQL_EXPRESSION_DATA_TYPE_ID } from "./sql-expression-DWyTh9M1.mjs";
|
|
2
|
+
export { SQL_EXPRESSION_DATA_TYPE_ID, SQL_EXPRESSION_TAG, assertNothingCastsFromSqlExpression, canonicalSqlText, printSqlExpressionLiteral, sqlExpressionAuthoringEntry, sqlExpressionDataType, sqlTextFromCanonical, sqlTextsReadBack };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
export { SQL_EXPRESSION_DATA_TYPE_ID, SQL_EXPRESSION_TAG, assertNothingCastsFromSqlExpression, printSqlExpressionLiteral, sqlExpressionAuthoringEntry, sqlExpressionDataType, sqlTextFromCanonical };
|
|
1
|
+
import { a as printSqlExpressionLiteral, c as sqlTextFromCanonical, i as canonicalSqlText, l as sqlTextsReadBack, n as SQL_EXPRESSION_TAG, o as sqlExpressionAuthoringEntry, r as assertNothingCastsFromSqlExpression, s as sqlExpressionDataType, t as SQL_EXPRESSION_DATA_TYPE_ID } from "./sql-expression-Dek0jx_g.mjs";
|
|
2
|
+
export { SQL_EXPRESSION_DATA_TYPE_ID, SQL_EXPRESSION_TAG, assertNothingCastsFromSqlExpression, canonicalSqlText, printSqlExpressionLiteral, sqlExpressionAuthoringEntry, sqlExpressionDataType, sqlTextFromCanonical, sqlTextsReadBack };
|
|
@@ -7,10 +7,11 @@ import { h as AnyQueryAst } from "./types-Sh5HuaZE-CqThc46M.mjs";
|
|
|
7
7
|
import { o as SqlExecuteRequest } from "./driver-types-DRsYeq3j-X_D6hNMZ.mjs";
|
|
8
8
|
import { a as DdlNode } from "./ddl-types-DtKZjNtN-CwtcEWLd.mjs";
|
|
9
9
|
import { p as LowererContext } from "./ast-Dp6lQXUX.mjs";
|
|
10
|
+
import { a as ParsedNullLiteral, i as EnumMemberListDefault, n as DefaultFunctionCall, r as EnumMemberDefault } from "./attribute-specs-15pm1Qvk.mjs";
|
|
10
11
|
import { s as SqlTypeLookups } from "./data-type-CpqSDmR_.mjs";
|
|
11
12
|
import { _ as SqlSchemaIR, y as SqlSchemaIRNode } from "./types-DIZSW9JI-DNUF-RnL.mjs";
|
|
12
13
|
import "./types-DqSCaTK3.mjs";
|
|
13
|
-
import { t as SQL_EXPRESSION_DATA_TYPE_ID } from "./sql-expression-
|
|
14
|
+
import { t as SQL_EXPRESSION_DATA_TYPE_ID } from "./sql-expression-DWyTh9M1.mjs";
|
|
14
15
|
import "./validators-COcD3_iw.mjs";
|
|
15
16
|
import { r as SqlControlAdapter } from "./control-adapter-CkFfBVei-DH5DAObc.mjs";
|
|
16
17
|
import { t as sqlFamilyEnumSpec } from "./authoring-entity-types-CZ-vdwYS-BQPeBSla.mjs";
|
|
@@ -376,58 +377,58 @@ declare class SqlFamilyDescriptor implements ControlFamilyDescriptor<'sql', SqlC
|
|
|
376
377
|
};
|
|
377
378
|
readonly attributeSpecs: {
|
|
378
379
|
readonly model: {
|
|
379
|
-
readonly map: () => import("@prisma/orm-framework/psl-parser").AttributeSpec<{
|
|
380
|
+
readonly map: (_ctx: import("@prisma/orm-framework/psl-parser").AttributeSpecContext) => import("@prisma/orm-framework/psl-parser").AttributeSpec<{
|
|
380
381
|
name: string;
|
|
381
382
|
}, import("@prisma/orm-framework/psl-parser").ModelAttributeCtx>;
|
|
382
|
-
readonly id: () => import("@prisma/orm-framework/psl-parser").AttributeSpec<{
|
|
383
|
+
readonly id: (_ctx: import("@prisma/orm-framework/psl-parser").AttributeSpecContext) => import("@prisma/orm-framework/psl-parser").AttributeSpec<{
|
|
383
384
|
fields: string[];
|
|
384
385
|
readonly map?: string;
|
|
385
386
|
}, import("@prisma/orm-framework/psl-parser").ModelAttributeCtx>;
|
|
386
|
-
readonly unique: () => import("@prisma/orm-framework/psl-parser").AttributeSpec<{
|
|
387
|
+
readonly unique: (_ctx: import("@prisma/orm-framework/psl-parser").AttributeSpecContext) => import("@prisma/orm-framework/psl-parser").AttributeSpec<{
|
|
387
388
|
fields: string[];
|
|
388
389
|
readonly map?: string;
|
|
389
390
|
}, import("@prisma/orm-framework/psl-parser").ModelAttributeCtx>;
|
|
390
|
-
readonly index: () => import("@prisma/orm-framework/psl-parser").AttributeSpec<{
|
|
391
|
+
readonly index: (ctx: import("@prisma/orm-framework/psl-parser").AttributeSpecContext) => import("@prisma/orm-framework/psl-parser").AttributeSpec<{
|
|
391
392
|
fields?: string[];
|
|
392
|
-
readonly expression?:
|
|
393
|
-
readonly where?:
|
|
393
|
+
readonly expression?: import("@prisma/orm-framework/psl-parser").ParsedTypedValue;
|
|
394
|
+
readonly where?: import("@prisma/orm-framework/psl-parser").ParsedTypedValue;
|
|
394
395
|
readonly unique?: boolean;
|
|
395
396
|
readonly name?: string;
|
|
396
397
|
readonly map?: string;
|
|
397
398
|
readonly type?: string;
|
|
398
399
|
readonly options?: Record<string, string>;
|
|
399
400
|
}, import("@prisma/orm-framework/psl-parser").ModelAttributeCtx>;
|
|
400
|
-
readonly check: () => import("@prisma/orm-framework/psl-parser").AttributeSpec<{
|
|
401
|
-
readonly expression:
|
|
401
|
+
readonly check: (ctx: import("@prisma/orm-framework/psl-parser").AttributeSpecContext) => import("@prisma/orm-framework/psl-parser").AttributeSpec<{
|
|
402
|
+
readonly expression: import("@prisma/orm-framework/psl-parser").ParsedTypedValue;
|
|
402
403
|
readonly name?: string;
|
|
403
404
|
readonly map?: string;
|
|
404
405
|
}, import("@prisma/orm-framework/psl-parser").ModelAttributeCtx>;
|
|
405
|
-
readonly control: () => import("@prisma/orm-framework/psl-parser").AttributeSpec<{
|
|
406
|
+
readonly control: (_ctx: import("@prisma/orm-framework/psl-parser").AttributeSpecContext) => import("@prisma/orm-framework/psl-parser").AttributeSpec<{
|
|
406
407
|
policy: "managed" | "tolerated" | "external" | "observed";
|
|
407
408
|
}, import("@prisma/orm-framework/psl-parser").ModelAttributeCtx>;
|
|
408
|
-
readonly discriminator: () => import("@prisma/orm-framework/psl-parser").AttributeSpec<{
|
|
409
|
+
readonly discriminator: (_ctx: import("@prisma/orm-framework/psl-parser").AttributeSpecContext) => import("@prisma/orm-framework/psl-parser").AttributeSpec<{
|
|
409
410
|
field: string;
|
|
410
411
|
}, import("@prisma/orm-framework/psl-parser").ModelAttributeCtx>;
|
|
411
|
-
readonly base: () => import("@prisma/orm-framework/psl-parser").AttributeSpec<{
|
|
412
|
+
readonly base: (_ctx: import("@prisma/orm-framework/psl-parser").AttributeSpecContext) => import("@prisma/orm-framework/psl-parser").AttributeSpec<{
|
|
412
413
|
base: import("@prisma/orm-framework/psl-parser").ResolvedEntityReference<import("@prisma/orm-framework/psl-parser").ModelSymbol>;
|
|
413
414
|
value: string;
|
|
414
415
|
}, import("@prisma/orm-framework/psl-parser").ModelAttributeCtx>;
|
|
415
416
|
};
|
|
416
417
|
readonly field: {
|
|
417
|
-
readonly map: () => import("@prisma/orm-framework/psl-parser").AttributeSpec<{
|
|
418
|
+
readonly map: (_ctx: import("@prisma/orm-framework/psl-parser").FieldAttributeSpecContext) => import("@prisma/orm-framework/psl-parser").AttributeSpec<{
|
|
418
419
|
name: string;
|
|
419
420
|
}, import("@prisma/orm-framework/psl-parser").FieldAttributeCtx>;
|
|
420
|
-
readonly id: () => import("@prisma/orm-framework/psl-parser").AttributeSpec<{
|
|
421
|
+
readonly id: (_ctx: import("@prisma/orm-framework/psl-parser").FieldAttributeSpecContext) => import("@prisma/orm-framework/psl-parser").AttributeSpec<{
|
|
421
422
|
readonly map?: string;
|
|
422
423
|
}, import("@prisma/orm-framework/psl-parser").FieldAttributeCtx>;
|
|
423
|
-
readonly unique: () => import("@prisma/orm-framework/psl-parser").AttributeSpec<{
|
|
424
|
+
readonly unique: (_ctx: import("@prisma/orm-framework/psl-parser").FieldAttributeSpecContext) => import("@prisma/orm-framework/psl-parser").AttributeSpec<{
|
|
424
425
|
readonly map?: string;
|
|
425
426
|
}, import("@prisma/orm-framework/psl-parser").FieldAttributeCtx>;
|
|
426
|
-
readonly noCheck: () => import("@prisma/orm-framework/psl-parser").AttributeSpec<{
|
|
427
|
+
readonly noCheck: (_ctx: import("@prisma/orm-framework/psl-parser").FieldAttributeSpecContext) => import("@prisma/orm-framework/psl-parser").AttributeSpec<{
|
|
427
428
|
first?: "membership" | "elementNotNull";
|
|
428
429
|
second?: "membership" | "elementNotNull";
|
|
429
430
|
}, import("@prisma/orm-framework/psl-parser").FieldAttributeCtx>;
|
|
430
|
-
readonly relation: () => import("@prisma/orm-framework/psl-parser").AttributeSpec<{
|
|
431
|
+
readonly relation: (_ctx: import("@prisma/orm-framework/psl-parser").FieldAttributeSpecContext) => import("@prisma/orm-framework/psl-parser").AttributeSpec<{
|
|
431
432
|
name?: string;
|
|
432
433
|
readonly fields?: string[];
|
|
433
434
|
readonly references?: string[];
|
|
@@ -437,7 +438,7 @@ declare class SqlFamilyDescriptor implements ControlFamilyDescriptor<'sql', SqlC
|
|
|
437
438
|
readonly index?: string | boolean;
|
|
438
439
|
}, import("@prisma/orm-framework/psl-parser").FieldAttributeCtx>;
|
|
439
440
|
readonly default: (ctx: import("@prisma/orm-framework/psl-parser").FieldAttributeSpecContext) => import("@prisma/orm-framework/psl-parser").AttributeSpec<{
|
|
440
|
-
value: import("@prisma/orm-framework/psl-parser").
|
|
441
|
+
value: import("@prisma/orm-framework/psl-parser").ParsedWrittenScalar | ParsedNullLiteral | import("@prisma/orm-framework/psl-parser").ParsedWrittenList<import("@prisma/orm-framework/psl-parser").ParsedWrittenScalar | ParsedNullLiteral> | DefaultFunctionCall | EnumMemberDefault | EnumMemberListDefault;
|
|
441
442
|
}, import("@prisma/orm-framework/psl-parser").FieldAttributeCtx>;
|
|
442
443
|
};
|
|
443
444
|
};
|
|
@@ -1180,4 +1181,4 @@ declare function temporalCodecPresetWithPrecision<const CodecId extends string,
|
|
|
1180
1181
|
declare const _default: SqlFamilyDescriptor;
|
|
1181
1182
|
//#endregion
|
|
1182
1183
|
export { partitionIssuesByControlPolicy as $, SqlDescribedContractSpace as A, _default as B, NoTable as C, SingleOperationCall as D, SchemaTables as E, TABLE_NAME_CASE_CHANGED_CODE as F, createMigrationPlan as G, contractNamespaceToSchemaIR as H, TableNameCaseGuardTable as I, extractCodecControlHooks as J, detectDestructiveChanges as K, TableRename as L, StatementPlanningTarget as M, SubjectStorage as N, SqlControlFamilyInstance as O, SuppressionRecord as P, partitionCallsByControlPolicy as Q, TableRenameRequest as R, ModelTable as S, PlannedStatements as T, contractToSchemaIR as U, assembleAuthoringContributions as V, controlPolicyForCall as W, fieldRenameStorageEffect as X, fieldEventStorage as Y, modelRenameStorageEffect as Z, MigrationPlanOperation$1 as _, ColumnRename as a, resolveColumnRenameAgainst as at, MigrationPlannerResult as b, ControlPolicySubject as c, runnerSuccess as ct, FieldEventCall as d, subjectsOfCalls as dt, planFieldEventCalls as et, FieldStorageEffect as f, temporalCodecPresetWithPrecision as ft, MigrationPlan$1 as g, unmatchedTableRename as gt, MigrationOperationPolicy$1 as h, unmatchedColumnRename as ht, ColumnOnOneSide as i, plannerSuccess as it, SqlPslBuildContext as j, SqlControlTargetDescriptor as k, DefaultRenderer as l, sqlTypeLookupsOf as lt, MigrationOperationClass$1 as m, unknownCallNames as mt, CallSubjects as n, planStatements as nt, ColumnRenameRequest as o, resolveTableRenameAgainst as ot, INIT_ADDITIVE_POLICY as p, temporalStringAuthoringPresets as pt, detectTableNameCaseChanges as q, CallWithCompanions as r, plannerFailure as rt, ContractToSchemaIROptions as s, runnerFailure as st, COLUMN_RENAME_UNMATCHED_CODE as t, planFieldEventOperations as tt, DefaultResolver as u, storageNameOfOperation as ut, MigrationPlanner as v, PlanFieldEventOperationsOptions as w, ModelStorageEffect as x, MigrationPlannerConflict$1 as y, TargetMigrationsCapability as z };
|
|
1183
|
-
//# sourceMappingURL=control-
|
|
1184
|
+
//# sourceMappingURL=control-3kVclzEh.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"control-3kVclzEh.d.mts","names":[],"sources":["../../../../2-sql/9-family/dist/control.d.mts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAqBU;WACC,kBAAkB,cAAc;WAChC,cAAc;;UAEf,iCAAiC,6BAA6B,kBAAkB,kBAAkB,kBAAkB,wBAAwB,kBAAkB,wBAAwB,SAAS,cAAc,yBAAyB;;;;;;;;;EAS9O,oBAAoB,wBAAwB;EAC5C,OAAO;aACI,QAAQ;aACR;aACA;aACA;aACA;MACP,QAAQ;;;;;;;;;;EAUZ,aAAa;aACF;aACA,QAAQ;aACR;aACA,qBAAqB,cAAc;MAC1C;;;;;;;;;;EAUJ,2BAA2B,OAAO,kBAAkB;;;;;;;;EAQpD,mBAAmB,OAAO;EAC1B,WAAW;aACA,QAAQ;aACR;MACP,QAAQ;EACZ,iBAAiB,UAAU,kBAAkB;EAC7C,SAAS,KAAK,cAAc,SAAS,SAAS,0BAA0B,QAAQ;;;;;;EAMhF,WAAW;aACA,QAAQ;aACR;aACA;eACE;eACA;eACA;;MAET;;;;;EAKJ,aAAa;aACF,QAAQ;aACR;aACA;aACA;eACE;eACA;eACA;;MAET;;;;;EAKJ,iBAAiB;aACN,QAAQ;aACR;aACA;eACE;eACA;eACA;eACA;eACA;eACA;eACA;;MAET;EACJ,yCAAyC;EACzC,mBAAmB,qBAAqB,2BAA6B;EACrE,cAAc,WAAW;;;;cAIb,+BAA+B,+BAA+B;WACjE;WACA;WACA;WACA;WACA,UAAU;WACV,oBAAoB;WACpB;aACE;eACE;iBACE;iBACA;mBACE;mBACA;qBACE;;;;eAIN;iBACE;iBACA;mBACE;mBACA;qBACE;;;;eAIN;iBACE;iBACA;mBACE;mBACA;mBACA;qBACE;uBACE;uBACA;uBACA;uBACA;uBACA;;;;iBAIN;mBACE;mBACA;qBACE;uBACE;uBACA;uBACA;uBACA;;;;;eAKR;iBACE;iBACA;mBACE;mBACA;qBACE;;;;eAIN;iBACE;iBACA;mBACE;mBACA;qBACE;;;;eAIN;iBACE;mBACE;mBACA;qBACE;qBACA;uBACE;;qBAEF;uBACE;yBACE;yBACA;;;qBAGJ;;;iBAGJ;mBACE;mBACA;qBACE;qBACA;uBACE;;qBAEF;uBACE;yBACE;yBACA;;;qBAGJ;;;iBAGJ;mBACE;mBACA;qBACE;qBACA;uBACE;;qBAEF;uBACE;yBACE;yBACA;;;qBAGJ;;;iBAGJ;mBACE;mBACA;qBACE;qBACA;qBACA;uBACE;yBACE;yBACA;yBACA;yBACA;yBACA;;;;mBAIN;qBACE;qBACA;uBACE;yBACE;yBACA;yBACA;yBACA;;;qBAGJ;uBACE;yBACE;yBACA;yBACA;2BACE;6BACE;6BACA;6BACA;;;;;qBAKR;;;iBAGJ;mBACE;mBACA;qBACE;qBACA;uBACE;;qBAEF;uBACE;yBACE;yBACA;;;qBAGJ;;;iBAGJ;mBACE;mBACA;qBACE;qBACA;uBACE;;qBAEF;uBACE;yBACE;yBACA;;;qBAGJ;;;;;aAKR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;WACrC,gBAAgB,OAAO;WACvB,yBAAyB,QAAQ;WACjC,kBAAkB,QAAQ;WAC1B,UAAU,SAAS;WACnB;IACP;;;iBAGa,qCAAqC,gBAAgB,6BAA6B,oCAAoC,4BAA4B,OAAO;WAC/J,cAAc;;WAEd;aACE;aACA,QAAQ,KAAK;eACX,cAAc;;eAEd;iBACE;mBACE;mBACA,IAAI;;;;;WAKZ;aACE;aACA,QAAQ,KAAK;eACX,cAAc;;eAEd;iBACE;mBACE;mBACA,IAAI;;iBAEN;mBACE;mBACA,IAAI;;;;;;;;;;;;;;;iBAeN,uCAAuC,8BAA8B,oCAAoC,4BAA4B;WAC3I,SAAS;WACT,cAAc;;WAEd;WACA;aACE;aACA;aACA;aACA;;aAEA;aACA;aACA;aACA;;aAEA;aACA;aACA;aACA;;WAEF;aACE,SAAS;aACT;eACE;iBACE;iBACA;;;aAGJ;eACE;iBACE;iBACA;iBACA;mBACE;qBACE;qBACA,qBAAqB;;;;eAI3B;iBACE;iBACA;iBACA;mBACE;qBACE;qBACA,qBAAqB;;;;;;;;;cAS5B,UAAU"}
|
|
@@ -3,13 +3,13 @@ import { t as sqlContractCanonicalizationHooks } from "./canonicalization-hooks-
|
|
|
3
3
|
import { a as renderSqlTypeName, l as sqlDataTypeOfCodec, t as dataTypeParams, u as unquotedSqlBaseName } from "./data-type-C_PI_Jsa.mjs";
|
|
4
4
|
import { c as StorageTable } from "./storage-table-B7OSPl3G-p1j6AjMS.mjs";
|
|
5
5
|
import { c as SqlSchemaIR, n as RelationalSchemaNodeKind, u as SqlTableIR } from "./types-D0GFxty0-CP8b4dR3.mjs";
|
|
6
|
-
import {
|
|
6
|
+
import { o as sqlExpressionAuthoringEntry, s as sqlExpressionDataType, t as SQL_EXPRESSION_DATA_TYPE_ID } from "./sql-expression-Dek0jx_g.mjs";
|
|
7
7
|
import { u as isStorageTypeInstance } from "./types-DXrO0fxT.mjs";
|
|
8
8
|
import { m as valueObjectStorageTypeMissingMessage } from "./validators-CIfn8ezs.mjs";
|
|
9
|
-
import {
|
|
9
|
+
import { S as sqlAttributeSpecs, a as describeUnsupportedSqlAttribute } from "./psl-field-resolution-CAJsUfST-BYuz5Nqh.mjs";
|
|
10
10
|
import { t as sqlEmission } from "./dist-D8EkCena.mjs";
|
|
11
|
-
import { i as sqlFamilyPslBlockDescriptors, n as sqlFamilyAuthoringTypes, r as sqlFamilyEntityTypes, t as sqlFamilyAuthoringFieldPresets } from "./authoring-type-constructors-0Iv2zdwS-
|
|
12
|
-
import { c as verifySqlSchemaByDiff, n as classifyDiffSubjectGranularity, o as enforceSqlDataTypeInvariants, t as classifyDiffEntityKind } from "./schema-verify-DIfHSB4I-
|
|
11
|
+
import { i as sqlFamilyPslBlockDescriptors, n as sqlFamilyAuthoringTypes, r as sqlFamilyEntityTypes, t as sqlFamilyAuthoringFieldPresets } from "./authoring-type-constructors-0Iv2zdwS-hVVlzpLW.mjs";
|
|
12
|
+
import { c as verifySqlSchemaByDiff, n as classifyDiffSubjectGranularity, o as enforceSqlDataTypeInvariants, t as classifyDiffEntityKind } from "./schema-verify-DIfHSB4I-CcxNNnKO.mjs";
|
|
13
13
|
import { t as sqlFamilyError } from "./errors-B5g0xWro-mWH2C07F.mjs";
|
|
14
14
|
import { t as SqlContractSerializer } from "./sql-contract-serializer-DDaAVCQr-CGG0I8ur.mjs";
|
|
15
15
|
import { t as collectSupportedCodecTypeIds } from "./verify-BVk5bjdH-dq5M4iIh.mjs";
|
|
@@ -2057,4 +2057,4 @@ var control_default = new SqlFamilyDescriptor();
|
|
|
2057
2057
|
//#endregion
|
|
2058
2058
|
export { temporalStringAuthoringPresets as A, resolveTableRenameAgainst as C, storageNameOfOperation as D, sqlTypeLookupsOf as E, unmatchedColumnRename as M, unmatchedTableRename as N, subjectsOfCalls as O, resolveColumnRenameAgainst as S, runnerSuccess as T, planFieldEventCalls as _, contractNamespaceToSchemaIR as a, plannerFailure as b, control_default as c, detectTableNameCaseChanges as d, fieldEventStorage as f, partitionIssuesByControlPolicy as g, partitionCallsByControlPolicy as h, assembleAuthoringContributions as i, unknownCallNames as j, temporalCodecPresetWithPrecision as k, createMigrationPlan as l, modelRenameStorageEffect as m, INIT_ADDITIVE_POLICY as n, contractToSchemaIR as o, fieldRenameStorageEffect as p, TABLE_NAME_CASE_CHANGED_CODE as r, controlPolicyForCall as s, COLUMN_RENAME_UNMATCHED_CODE as t, detectDestructiveChanges as u, planFieldEventOperations as v, runnerFailure as w, plannerSuccess as x, planStatements as y };
|
|
2059
2059
|
|
|
2060
|
-
//# sourceMappingURL=control-
|
|
2060
|
+
//# sourceMappingURL=control-CXHnIBSV.mjs.map
|