@prisma/orm-family-sql 8.0.0-rc.22-dev.8 → 8.0.0-rc.22-dev.10

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.
Files changed (47) hide show
  1. package/dist/{canonicalization-hooks-Ce1v_TDl.mjs → canonicalization-hooks-BeJHD713.mjs} +18 -1
  2. package/dist/canonicalization-hooks-BeJHD713.mjs.map +1 -0
  3. package/dist/{check-expressions-DuWjvG4h.d.mts → check-expressions-Bh5KC2X5.d.mts} +8 -2
  4. package/dist/{check-expressions-DuWjvG4h.d.mts.map → check-expressions-Bh5KC2X5.d.mts.map} +1 -1
  5. package/dist/{check-expressions-BDsLvzqN.mjs → check-expressions-Mmzgx0XE.mjs} +4 -3
  6. package/dist/check-expressions-Mmzgx0XE.mjs.map +1 -0
  7. package/dist/{config-types-BCXwEBZH.mjs → config-types-YRGsoUT7.mjs} +2 -2
  8. package/dist/{config-types-BCXwEBZH.mjs.map → config-types-YRGsoUT7.mjs.map} +1 -1
  9. package/dist/{contract-builder-Y2rB4xMf.mjs → contract-builder-BwPOolrg.mjs} +2 -2
  10. package/dist/{contract-builder-Y2rB4xMf.mjs.map → contract-builder-BwPOolrg.mjs.map} +1 -1
  11. package/dist/contract-prisma7__provider.mjs +4 -4
  12. package/dist/contract-psl.mjs +1 -1
  13. package/dist/contract-psl__attribute-specs.mjs +1 -1
  14. package/dist/contract-psl__provider.mjs +2 -2
  15. package/dist/contract-ts.mjs +3 -3
  16. package/dist/contract-ts__config-types.mjs +1 -1
  17. package/dist/contract-ts__contract-builder.mjs +2 -2
  18. package/dist/contract.d.mts +2 -2
  19. package/dist/contract.mjs +3 -3
  20. package/dist/contract__canonicalization-hooks.mjs +1 -1
  21. package/dist/contract__check-expressions.d.mts +2 -2
  22. package/dist/contract__check-expressions.mjs +2 -2
  23. package/dist/{control-CdumaQYh.d.mts → control-CyJM0mMS.d.mts} +372 -26
  24. package/dist/control-CyJM0mMS.d.mts.map +1 -0
  25. package/dist/{control-BSX7UWk2.mjs → control-Ltpja41u.mjs} +1159 -59
  26. package/dist/control-Ltpja41u.mjs.map +1 -0
  27. package/dist/{derived-checks-D__agoFB-Boa1MHcA.mjs → derived-checks-D__agoFB-DxuPwZ7v.mjs} +3 -3
  28. package/dist/{derived-checks-D__agoFB-Boa1MHcA.mjs.map → derived-checks-D__agoFB-DxuPwZ7v.mjs.map} +1 -1
  29. package/dist/family.d.mts +2 -2
  30. package/dist/family.mjs +4 -4
  31. package/dist/family__control.d.mts +2 -2
  32. package/dist/family__control.mjs +2 -2
  33. package/dist/family__ir.mjs +1 -1
  34. package/dist/family__pack.mjs +2 -2
  35. package/dist/{generator-functions-Hy4pDDr9-HEQuSSaK.mjs → generator-functions-Hy4pDDr9-DlmTbI_c.mjs} +2 -2
  36. package/dist/{generator-functions-Hy4pDDr9-HEQuSSaK.mjs.map → generator-functions-Hy4pDDr9-DlmTbI_c.mjs.map} +1 -1
  37. package/dist/{interpreter-Ct1zWXKw-CRkWwRAw.mjs → interpreter-Ct1zWXKw-CLQnlWhR.mjs} +4 -4
  38. package/dist/{interpreter-Ct1zWXKw-CRkWwRAw.mjs.map → interpreter-Ct1zWXKw-CLQnlWhR.mjs.map} +1 -1
  39. package/dist/{psl-field-resolution-BnusQmZy-CX0b0mPk.mjs → psl-field-resolution-BnusQmZy-_QYc6Ywf.mjs} +2 -2
  40. package/dist/{psl-field-resolution-BnusQmZy-CX0b0mPk.mjs.map → psl-field-resolution-BnusQmZy-_QYc6Ywf.mjs.map} +1 -1
  41. package/dist/{sql-contract-serializer-sMY3prTx-CBHrlt9O.mjs → sql-contract-serializer-sMY3prTx-BfYfhVR_.mjs} +2 -2
  42. package/dist/{sql-contract-serializer-sMY3prTx-CBHrlt9O.mjs.map → sql-contract-serializer-sMY3prTx-BfYfhVR_.mjs.map} +1 -1
  43. package/package.json +18 -18
  44. package/dist/canonicalization-hooks-Ce1v_TDl.mjs.map +0 -1
  45. package/dist/check-expressions-BDsLvzqN.mjs.map +0 -1
  46. package/dist/control-BSX7UWk2.mjs.map +0 -1
  47. package/dist/control-CdumaQYh.d.mts.map +0 -1
@@ -16,13 +16,13 @@ import { t as sqlFamilyEnumSpec } from "./authoring-entity-types-CgKIgWq5-DrdNt_
16
16
  import { C as SqlPlannerConflict, E as SqlPlannerFailureResult, O as SqlPlannerSuccessResult, c as SqlMigrationPlan, d as SqlMigrationPlanOperationStep, g as SqlMigrationRunnerErrorCode, h as SqlMigrationRunner, n as CreateSqlMigrationPlanOptions, p as SqlMigrationPlanner, t as CodecControlHooks, x as SqlMigrationRunnerSuccessValue, y as SqlMigrationRunnerFailure } from "./types-COXfSNOP-D9vt9QDL.mjs";
17
17
  import { t as SqlSchemaDiffFn } from "./schema-differ-DmP74bB8-BXkhxcPs.mjs";
18
18
  import { StructuredError } from "@prisma/orm-framework/utils/structured-error";
19
- import { DataTypeSupport } from "@prisma/orm-framework/components/authoring";
20
- import { ColumnDefault, Contract, ContractWithDomain, ControlPolicy } from "@prisma/orm-framework/contract/types";
19
+ import { AuthoringTypeNamespace, DataTypeSupport } from "@prisma/orm-framework/components/authoring";
20
+ import { ColumnDefault, Contract, ContractWithDomain, ControlPolicy, JsonValue } from "@prisma/orm-framework/contract/types";
21
21
  import { Codec, CodecLookupWithDescriptors, CodecRef, DataType, DataTypeLookup, TypeLookups } from "@prisma/orm-framework/components/codec";
22
22
  import { GeneratorFunctionRegistry, TargetBoundComponentDescriptor } from "@prisma/orm-framework/components/components";
23
23
  import { PslDocumentAst } from "@prisma/orm-framework/components/psl-ast";
24
24
  import { NotOk, Ok, Result } from "@prisma/orm-framework/utils/result";
25
- import { AppliedMigrationStatement, AssembledAuthoringContributions, ContractSerializer, ControlFamilyDescriptor, ControlFamilyInstance, ControlMutationDefaultEntry, ControlStack, DiffSubjectGranularity, EnumValueCoordinate, EnumValueCoordinateJson, FieldCoordinate, ImportRequirement, KeepDataEdit, MigratableTargetDescriptor, MigrationDataLossKind, MigrationOperationClass, MigrationOperationClass as MigrationOperationClass$1, MigrationOperationPolicy, MigrationOperationPolicy as MigrationOperationPolicy$1, MigrationPlan as MigrationPlan$1, MigrationPlanOperation, MigrationPlanOperation as MigrationPlanOperation$1, MigrationPlanSubjects, MigrationPlanner, MigrationPlannerConflict, MigrationPlannerConflict as MigrationPlannerConflict$1, MigrationPlannerResult, MigrationRunnerFailureMeta, MigrationSubject, ModelCoordinate, OpFactoryCall, OperationPreview, OperationPreviewCapable, PslContractBuildCapable, PslContractInferCapable, ResolvedEnumValueRenameStatement, ResolvedFieldRenameStatement, ResolvedMigrationStatement, ResolvedModelRenameStatement, ResolvedRenameStatement, RowsWithoutValue, SchemaDiffIssue, SchemaOwnership, SchemaVerifier, SchemaViewCapable, TargetMigrationsCapability, VerifyDatabaseResult, VerifyDatabaseSchemaResult, assembleAuthoringContributions as assembleAuthoringContributions$1 } from "@prisma/orm-framework/components/control";
25
+ import { AppliedMigrationStatement, AssembledAuthoringContributions, ContractSerializer, ControlFamilyDescriptor, ControlFamilyInstance, ControlMutationDefaultEntry, ControlStack, DiffSubjectGranularity, EnumValueCoordinate, EnumValueCoordinateJson, FieldCoordinate, ImportRequirement, KeepDataEdit, MigratableTargetDescriptor, MigrationDataLossKind, MigrationOperationClass, MigrationOperationClass as MigrationOperationClass$1, MigrationOperationPolicy, MigrationOperationPolicy as MigrationOperationPolicy$1, MigrationPlan as MigrationPlan$1, MigrationPlanOperation, MigrationPlanOperation as MigrationPlanOperation$1, MigrationPlanSubjects, MigrationPlanner, MigrationPlannerConflict, MigrationPlannerConflict as MigrationPlannerConflict$1, MigrationPlannerResult, MigrationRunnerFailureMeta, MigrationSubject, ModelCoordinate, OpFactoryCall, OperationPreview, OperationPreviewCapable, PslContractBuildCapable, PslContractInferCapable, ResolvedEnumValueRenameStatement, ResolvedFieldRenameStatement, ResolvedMigrationStatement, ResolvedModelRenameStatement, ResolvedRenameStatement, ResolvedValueObjectFieldBackfillStatement, ResolvedValueObjectFieldRenameStatement, ResolvedVariantConvertStatement, RowsHoldingValue, RowsWithoutValue, SchemaDiffIssue, SchemaOwnership, SchemaVerifier, SchemaViewCapable, TargetMigrationsCapability, ValueObjectFieldCoordinate, VerifyDatabaseResult, VerifyDatabaseSchemaResult, assembleAuthoringContributions as assembleAuthoringContributions$1 } from "@prisma/orm-framework/components/control";
26
26
  import { EmissionSpi, TypesImportSpec } from "@prisma/orm-framework/components/emission";
27
27
  //#region ../../../2-sql-family/9-family/dist/control.d.mts
28
28
  //#region src/core/control-instance.d.ts
@@ -460,6 +460,10 @@ type SqlDefaultFunctionName = 'autoincrement' | 'now';
460
460
  */
461
461
  declare function sqlDefaultFunctions(): Readonly<Record<SqlDefaultFunctionName, ControlMutationDefaultEntry>>;
462
462
  //#endregion
463
+ //#region src/core/migrations/accepted-by-data-type.d.ts
464
+ /** Whether the data type of `codecRef`'s codec reads `json` as `contract.json` would; a codec the stack does not know accepts nothing. */
465
+ declare function acceptedByDataType(json: JsonValue, codecRef: CodecRef, types: TypeLookups): boolean;
466
+ //#endregion
463
467
  //#region src/core/migrations/contract-to-schema-ir.d.ts
464
468
  /**
465
469
  * Target-supplied hook that names a contract's expression default the way the target's introspection names the same database function, such as `now()` for `CURRENT_TIMESTAMP`, so the two compare equal. When omitted, the contract's default is the resolved default unchanged.
@@ -674,10 +678,12 @@ interface StoredValueRewrite {
674
678
  readonly namespaceId: string;
675
679
  readonly table: string;
676
680
  readonly column: string;
677
- /** The column's codec, which writes `from` and `to` as the database stores them. */
678
- readonly codecRef: CodecRef;
681
+ /** The column's codec, which writes `from` and `to` as the database stores them; none for a member inside JSON, whose value is compared as a JSON value. */
682
+ readonly codecRef: CodecRef | undefined;
679
683
  /** Whether the column holds a list of the enum's values. */
680
684
  readonly many: boolean;
685
+ /** The member of a value object inside the column's JSON that holds the value, if any. */
686
+ readonly member: StoredValueMember | undefined;
681
687
  readonly from: StoredEnumValue;
682
688
  readonly to: StoredEnumValue | undefined;
683
689
  /** The rename statement the rewrite carries out, if any. */
@@ -695,6 +701,13 @@ interface StoredValueReplacement {
695
701
  readonly from: StoredEnumValue;
696
702
  readonly to: StoredEnumValue;
697
703
  }
704
+ /** A member of a value object, inside the JSON of a column, that the enum types. */
705
+ interface StoredValueMember {
706
+ /** The RFC 9535 path from the column's value to the member, ending at `[*]` for a list member. */
707
+ readonly path: string;
708
+ /** Whether the member takes JSON `null`, which a removal then writes. */
709
+ readonly nullable: boolean;
710
+ }
698
711
  type CodecSource = Pick<CodecLookupWithDescriptors, 'descriptorFor'>;
699
712
  /**
700
713
  * The rewrites of stored enum values a plan makes. Enums are compared by the stored value of each
@@ -713,11 +726,6 @@ declare function planEnumValueRewrites(input: {
713
726
  /** The stack's codecs, which read stored values for messages. */
714
727
  readonly codecs: CodecSource;
715
728
  }): Result<readonly StoredValueRewrite[], SqlPlannerConflict>;
716
- /**
717
- * The applied statements with each enum value rename given the operations its rewrites lowered
718
- * to, at their positions in the plan: the rewrites are ordered with the diff, not with the renames.
719
- */
720
- declare function withEnumValueOperations(applied: readonly AppliedMigrationStatement[], operationIndexesOf: (statement: ResolvedEnumValueRenameStatement) => readonly number[]): readonly AppliedMigrationStatement[];
721
729
  /** The codec of the column a stored value is in, and the stack's codecs, which build it. */
722
730
  interface StoredValueCodec {
723
731
  readonly codecRef: CodecRef;
@@ -840,6 +848,73 @@ declare function planFieldEventCalls(options: PlanFieldEventOperationsOptions):
840
848
  */
841
849
  declare function fieldOfColumn(contract: ContractWithDomain, table: string, column: string): MigrationSubject | undefined;
842
850
  //#endregion
851
+ //#region src/core/migrations/fill-value-check.d.ts
852
+ /** The codecs and data types of a stack, and the name its authors write each scalar type as. */
853
+ interface FillValueTypes extends TypeLookups {
854
+ /** The type name a schema writes for a codec, such as `String`, when the stack has one. */
855
+ readonly scalarTypeName: (codecRef: CodecRef) => string | undefined;
856
+ }
857
+ /** The contract and the stack a `fillStoredKey` value is checked against. */
858
+ interface FillValueCheck {
859
+ readonly contract: Contract<SqlStorage>;
860
+ readonly types: FillValueTypes;
861
+ }
862
+ /**
863
+ * The value object field a `fillStoredKey` call fills, as a statement names it, such as
864
+ * `Address.country`. With `check`, the call's value must be one the field takes; the planner's own
865
+ * placeholders and temporary values need none.
866
+ */
867
+ interface StoredKeyFillField {
868
+ readonly text: string;
869
+ readonly check: FillValueCheck | undefined;
870
+ }
871
+ /** The name each scalar type constructor of `namespace` is written as, by the codec it makes; the first declared wins. */
872
+ declare function scalarTypeNamesOf(namespace: AuthoringTypeNamespace): (codecRef: CodecRef) => string | undefined;
873
+ /** Why `field` cannot be the field a `fillStoredKey` call fills at `keyPath`: its last name must be the key the path ends at. */
874
+ declare function fillKeyProblem(keyPath: {
875
+ readonly key: string;
876
+ readonly path: string;
877
+ }, field: StoredKeyFillField | undefined): string | undefined;
878
+ /**
879
+ * Why `value` cannot fill the field, or `undefined` when the field has no check or takes the value:
880
+ * an enum value must be one of its value set's values, a list must hold values of its element's
881
+ * type, a value object must hold its required fields and no other key, each checked the same way,
882
+ * and a scalar must be one its codec's data type accepts.
883
+ */
884
+ declare function fillValueProblem(value: JsonValue, field: StoredKeyFillField | undefined): string | undefined;
885
+ //#endregion
886
+ //#region src/core/migrations/json-path.d.ts
887
+ /** One selector of a JSON path: a member name, or the wildcard, which selects every child: the elements of a list and the member values of an object. */
888
+ type JsonPathStep = {
889
+ readonly kind: 'member';
890
+ readonly name: string;
891
+ } | {
892
+ readonly kind: 'wildcard';
893
+ };
894
+ /** A JSON path a migration operation acts at: the RFC 9535 text and its selectors in order. */
895
+ interface JsonPath {
896
+ readonly text: string;
897
+ readonly steps: readonly JsonPathStep[];
898
+ }
899
+ /**
900
+ * Parses an RFC 9535 JSONPath that uses only member name selectors (`.lat`, `['lat']`) and the
901
+ * wildcard selector (`[*]`, `.*`), which selects the elements of a list and the member values of an
902
+ * object. Any other JSONPath feature is refused with the reason.
903
+ */
904
+ declare function parseJsonPath(text: string): Result<JsonPath, string>;
905
+ /** A path that ends at a member name: the steps that reach the objects, and the key it ends at. */
906
+ interface JsonKeyPath {
907
+ readonly path: JsonPath;
908
+ readonly objects: readonly JsonPathStep[];
909
+ /** The path to the objects as it was written: the path's text without its last selector. */
910
+ readonly objectsText: string;
911
+ readonly key: string;
912
+ }
913
+ /** The path split at its last selector, when that selector is a member name. */
914
+ declare function keyPathOf(path: JsonPath): JsonKeyPath | undefined;
915
+ /** The steps as a JSONPath: a member name in shorthand when it is an identifier, else in brackets. */
916
+ declare function jsonPathText(steps: readonly JsonPathStep[]): string;
917
+ //#endregion
843
918
  //#region src/core/migrations/operation-storage-name.d.ts
844
919
  /**
845
920
  * The name the database knows an operation's object by, read from the operation's target
@@ -968,15 +1043,29 @@ interface WorkingSchemaOrigins {
968
1043
  }
969
1044
  /** The origins of a plan whose statements renamed and moved nothing. */
970
1045
  declare const NO_RENAMED_ORIGINS: WorkingSchemaOrigins;
1046
+ /**
1047
+ * The operations a statement accounts for: `planned` among the statement planner's calls, or
1048
+ * `plannedWithDiff`, which the target plans with the diff and whose positions it fills in.
1049
+ */
1050
+ type StatementOperations = {
1051
+ readonly kind: 'planned';
1052
+ readonly operationIndexes: readonly number[];
1053
+ } | {
1054
+ readonly kind: 'plannedWithDiff';
1055
+ };
1056
+ interface PlannedStatement {
1057
+ readonly statement: ResolvedMigrationStatement;
1058
+ readonly operations: StatementOperations;
1059
+ }
971
1060
  interface PlannedStatements<TCall extends CallWithCompanions> {
972
1061
  /**
973
- * The calls, which a target puts first in its plan: each statement's `operationIndexes` count
974
- * from the first operation of the first call.
1062
+ * The calls, which a target puts first in its plan: each planned statement's `operationIndexes`
1063
+ * count from the first operation of the first call.
975
1064
  */
976
1065
  readonly calls: readonly TCall[];
977
1066
  readonly tableRenames: readonly TableRename[];
978
1067
  readonly columnRenames: readonly ColumnRename[];
979
- readonly appliedStatements: readonly AppliedMigrationStatement[];
1068
+ readonly plannedStatements: readonly PlannedStatement[];
980
1069
  readonly origins: WorkingSchemaOrigins;
981
1070
  }
982
1071
  /** The contract space planned, and the oracle that says which spaces declare a namespace. */
@@ -1033,10 +1122,12 @@ declare function fieldStatementColumns(statements: readonly ResolvedMigrationSta
1033
1122
  */
1034
1123
  declare function backfillOfDefaultedField(statements: readonly ResolvedMigrationStatement[], fromContract: ContractWithDomain | null, contract: Contract<SqlStorage>): SqlPlannerConflict | undefined;
1035
1124
  /**
1036
- * Every statement of a plan in the order given, with the operations it accounts for: a rename's
1037
- * from `renames`, and none yet for any other statement.
1125
+ * Every statement of a plan in the order given, with the operations it accounts for: a planned
1126
+ * statement's from `planned`, and a statement planned with the diff's from
1127
+ * `operationIndexesPlannedWithDiff`, which finds them among the target's whole plan. A model rename
1128
+ * takes both, since renaming a variant whose discriminator value changed also rewrites the value.
1038
1129
  */
1039
- declare function appliedStatementsInOrder(statements: readonly ResolvedMigrationStatement[], renames: readonly AppliedMigrationStatement[]): readonly AppliedMigrationStatement[];
1130
+ declare function appliedStatementsInOrder(statements: readonly ResolvedMigrationStatement[], planned: readonly PlannedStatement[], operationIndexesPlannedWithDiff: (statement: ResolvedMigrationStatement) => readonly number[]): readonly AppliedMigrationStatement[];
1040
1131
  //#endregion
1041
1132
  //#region src/core/migrations/operation-subjects.d.ts
1042
1133
  /**
@@ -1053,6 +1144,10 @@ interface SubjectStorage {
1053
1144
  } | undefined;
1054
1145
  /** The enum value the operation is about, when it rewrites one stored value of an enum. */
1055
1146
  readonly enumValue?: EnumValueCoordinate;
1147
+ /** The value object field the operation is about, when it rewrites one key of a value object. */
1148
+ readonly valueObjectField?: ValueObjectFieldCoordinate;
1149
+ /** The variant the operation is about, when it deletes the rows of one variant. */
1150
+ readonly model?: ModelCoordinate;
1056
1151
  }
1057
1152
  /** What a codec hook's call is about: the column of the field event it was returned for. */
1058
1153
  declare function fieldEventStorage(field: {
@@ -1076,6 +1171,8 @@ interface CallSubjects {
1076
1171
  readonly dataLoss: readonly (SubjectStorage & {
1077
1172
  readonly loss: MigrationDataLossKind;
1078
1173
  readonly keepDataEdit?: KeepDataEdit;
1174
+ /** What the user should know to keep the data, which the question repeats. */
1175
+ readonly keepDataAdvice?: string;
1079
1176
  })[];
1080
1177
  /** What the call's operation changes access to, and whether it widens it. */
1081
1178
  readonly accessChanges: readonly (SubjectStorage & {
@@ -1084,11 +1181,15 @@ interface CallSubjects {
1084
1181
  /** The new required columns the call's operation gives a temporary value in existing rows, and the value. */
1085
1182
  readonly temporaryValues: readonly TemporaryColumnValue[];
1086
1183
  }
1087
- /** A new required column of `table` in the destination, and the temporary value its existing rows get. */
1184
+ /**
1185
+ * A new required column of `table` in the destination, and the temporary value its existing rows
1186
+ * get; or, with `valueObjectField`, the column whose objects get a temporary value for that field.
1187
+ */
1088
1188
  interface TemporaryColumnValue {
1089
1189
  readonly table: string;
1090
1190
  readonly column: string;
1091
1191
  readonly value: string;
1192
+ readonly valueObjectField?: ValueObjectFieldCoordinate;
1092
1193
  }
1093
1194
  interface SubjectContext {
1094
1195
  readonly fromContract: ContractWithDomain | null;
@@ -1096,6 +1197,8 @@ interface SubjectContext {
1096
1197
  /** Where the plan's statements put the origin's tables and columns. */
1097
1198
  readonly origins: WorkingSchemaOrigins;
1098
1199
  readonly byHand: TableRenameByHand;
1200
+ /** The variants of the origin the destination no longer has and no rename names: their columns are asked about as the variant. */
1201
+ readonly removedVariants: readonly ModelCoordinate[];
1099
1202
  }
1100
1203
  /**
1101
1204
  * The subject of each operation that loses data and each that changes access, at its position in
@@ -1154,10 +1257,7 @@ interface RequiredColumnMark<TOperation> {
1154
1257
  readonly operationIndex: number;
1155
1258
  readonly required: RequiredColumn;
1156
1259
  }
1157
- /**
1158
- * The marks of the steps of `operations` that belong to the same migration as the operation at
1159
- * `operationIndex`, in plan order: `edges` say how many operations each migration of the plan has.
1160
- */
1260
+ /** The marks of the steps that mark a column as becoming required, as {@link marksOfMigration} finds them. */
1161
1261
  declare function requiredColumnsOfMigration<TOperation extends {
1162
1262
  readonly precheck: readonly SqlMigrationPlanOperationStep[];
1163
1263
  readonly execute: readonly SqlMigrationPlanOperationStep[];
@@ -1185,12 +1285,18 @@ declare function rowsWithoutValueFailure<TOperation>(input: {
1185
1285
  //#region src/core/migrations/rows-holding-value.d.ts
1186
1286
  /**
1187
1287
  * The enum value a removal check guards, with its stored value as the contract stores it and the
1188
- * column's codec, which the call that removes it carries.
1288
+ * column's codec, which the call that removes it carries, and the column it is removed from.
1189
1289
  */
1190
1290
  interface RowsHoldingValueMark {
1191
1291
  readonly enumValue: EnumValueCoordinateJson;
1192
1292
  readonly value: string | number;
1193
1293
  readonly codecRef?: CodecRef;
1294
+ readonly table: string;
1295
+ readonly column: string;
1296
+ /** The value as the database stores it, which the runner counts. */
1297
+ readonly storedValue: string | number;
1298
+ /** The JSON path inside the column at which the value is removed, for a member of JSON. */
1299
+ readonly path?: string;
1194
1300
  }
1195
1301
  /**
1196
1302
  * The meta of the check before a stored enum value is removed from a column: it fails while rows
@@ -1201,8 +1307,38 @@ declare function rowsHoldingValueMeta(mark: RowsHoldingValueMark): {
1201
1307
  };
1202
1308
  /** The enum value a check guards, as {@link rowsHoldingValueMeta} marks it. */
1203
1309
  declare function rowsHoldingValueOf(step: SqlMigrationPlanOperationStep): RowsHoldingValueMark | undefined;
1204
- /** What a runner failure says of the rows that hold a stored value a column cannot lose: the value as the database stores it. */
1205
- declare function rowsHoldingValueSummary(table: string, column: string, storedValue: unknown, rows: number): string;
1310
+ /** A removal check of a plan's operation, with the {@link RowsHoldingValueMark} it carries. */
1311
+ interface MarkedRemoval<TOperation> {
1312
+ readonly operation: TOperation;
1313
+ readonly operationIndex: number;
1314
+ readonly check: SqlMigrationPlanOperationStep;
1315
+ readonly mark: RowsHoldingValueMark;
1316
+ }
1317
+ /** The marked removal checks of the migration of the operation at `operationIndex`, in plan order. */
1318
+ declare function removalsOfMigration<TOperation extends {
1319
+ readonly precheck: readonly SqlMigrationPlanOperationStep[];
1320
+ readonly execute: readonly SqlMigrationPlanOperationStep[];
1321
+ readonly postcheck: readonly SqlMigrationPlanOperationStep[];
1322
+ }>(operations: readonly TOperation[], edges: readonly {
1323
+ readonly operationCount: number;
1324
+ }[], operationIndex: number): readonly MarkedRemoval<TOperation>[];
1325
+ /**
1326
+ * A runner failure's summary and reports for the rows that hold stored values removals cannot take
1327
+ * out of required columns. The failed removal is counted first, and the summary names it; undefined
1328
+ * when that count fails. Then each other removal of `others` whose check `checkFails` says fails is
1329
+ * counted, until a count fails, such as for a column an earlier operation adds, so that the advice
1330
+ * can name every column that still holds a removed value.
1331
+ */
1332
+ declare function rowsHoldingValueFailure<TOperation>(input: {
1333
+ readonly failed: MarkedRemoval<TOperation>;
1334
+ readonly others: readonly MarkedRemoval<TOperation>[];
1335
+ readonly checkFails: (removal: MarkedRemoval<TOperation>) => Promise<boolean>;
1336
+ readonly count: (removal: MarkedRemoval<TOperation>) => Promise<number>;
1337
+ readonly keepDataEdit: (removal: MarkedRemoval<TOperation>) => KeepDataEdit | undefined;
1338
+ }): Promise<{
1339
+ readonly summary: string;
1340
+ readonly reports: readonly RowsHoldingValue[];
1341
+ } | undefined>;
1206
1342
  //#endregion
1207
1343
  //#region src/core/migrations/sql-expression-text.d.ts
1208
1344
  /**
@@ -1266,6 +1402,216 @@ declare function slotSource(slot: SqlSlot, sql: SqlTextSources): string;
1266
1402
  /** The codecs and data types a set of composed components registers. */
1267
1403
  declare function sqlTypeLookupsOf(frameworkComponents: ReadonlyArray<TargetBoundComponentDescriptor<'sql', string>>): TypeLookups;
1268
1404
  //#endregion
1405
+ //#region src/core/migrations/stored-value-calls.d.ts
1406
+ /** What a planned stored value call is about, for its data-loss question. */
1407
+ interface StoredValueSubject {
1408
+ readonly enumValue: EnumValueCoordinate;
1409
+ readonly keepDataEdit?: KeepDataEdit;
1410
+ }
1411
+ /** How the stored value code tells a target's removal calls apart and builds its replacement calls. */
1412
+ interface StoredValueCallClasses<TRemoval extends OpFactoryCall> {
1413
+ isRemoval(call: OpFactoryCall): call is TRemoval;
1414
+ /** The call that replaces one stored value with another in the column `removal` removes from. */
1415
+ replacementOf(removal: TRemoval, replacement: StoredValueReplacement): OpFactoryCall;
1416
+ }
1417
+ /**
1418
+ * The enum value each removal is about, with the edit that keeps its data when the member keeps
1419
+ * its name and only its stored value changes.
1420
+ */
1421
+ declare function storedValueSubjects<TRemoval extends OpFactoryCall>(calls: ReadonlyMap<OpFactoryCall, StoredValueRewrite>, classes: StoredValueCallClasses<TRemoval>): ReadonlyMap<OpFactoryCall, StoredValueSubject>;
1422
+ /**
1423
+ * The edit that keeps the data a failed removal check found: `removal`, the call the check's mark
1424
+ * and its column describe, replaced by a replacement whose new value is the placeholder
1425
+ * `"<stored value>"`.
1426
+ */
1427
+ declare function keepRowsEdit<TRemoval extends OpFactoryCall>(removal: TRemoval, mark: RowsHoldingValueMark, classes: StoredValueCallClasses<TRemoval>): KeepDataEdit;
1428
+ /** The positions, among the plan's operations, of the operations that carry out `statement`. */
1429
+ declare function storedValueOperationIndexes(planCalls: readonly OpFactoryCall[], calls: ReadonlyMap<OpFactoryCall, {
1430
+ readonly statement: ResolvedMigrationStatement | undefined;
1431
+ }>, statement: ResolvedMigrationStatement): readonly number[];
1432
+ //#endregion
1433
+ //#region src/core/migrations/unfilled-value.d.ts
1434
+ /** A value a planner-written operation takes from the user: its `migration.ts` writes `placeholder(slot)` where the value goes. */
1435
+ declare class UnfilledValue {
1436
+ readonly slot: string;
1437
+ constructor(slot: string);
1438
+ }
1439
+ //#endregion
1440
+ //#region src/core/migrations/value-object-field-fills.d.ts
1441
+ /**
1442
+ * One column's fill of a required value object field: the key at `path` is set to `value` in every
1443
+ * object that lacks it or holds JSON `null` there. The field, column and path are named as the
1444
+ * destination contract names them.
1445
+ */
1446
+ interface StoredKeyFill {
1447
+ readonly valueObjectField: ValueObjectFieldCoordinate;
1448
+ readonly namespaceId: string;
1449
+ readonly table: string;
1450
+ readonly column: string;
1451
+ /** The RFC 9535 path from the column's value to the key. */
1452
+ readonly path: string;
1453
+ /** The value the user writes for a backfill statement, or a temporary value. */
1454
+ readonly value: JsonValue | UnfilledValue;
1455
+ /** The value object field as a statement names it, such as `Address.country`. */
1456
+ readonly field: string;
1457
+ /** The backfill statement the fill carries out, if any. */
1458
+ readonly statement: ResolvedValueObjectFieldBackfillStatement | undefined;
1459
+ }
1460
+ /**
1461
+ * What a plan does for a required value object field that no backfill statement names: `refuse`
1462
+ * names the statement that would fill it, and `temporaryValue` fills it with one temporary value
1463
+ * when its codec has one.
1464
+ */
1465
+ type UnnamedFieldFill = 'refuse' | 'temporaryValue';
1466
+ /**
1467
+ * A policy that allows `data` operations plans a migration whose `migration.ts` the user can fill,
1468
+ * so it refuses; any other, as `db update` runs, fills a temporary value, as it does for a new
1469
+ * required column. It assumes that a policy that allows `data` operations means a `migration.ts` is
1470
+ * written, which holds while `migration plan` is the only command whose planner policy allows them.
1471
+ */
1472
+ declare function unnamedFieldFillOf(policy: MigrationOperationPolicy): UnnamedFieldFill;
1473
+ /**
1474
+ * The fills of value object fields a plan makes. A field of a value object that both contracts have
1475
+ * is filled when the destination makes it required and the origin lacks it or makes it optional. A
1476
+ * backfill statement fills it with a value the user writes in `migration.ts`. Without one,
1477
+ * `unnamed` decides: `refuse` names the statement, and `temporaryValue` fills a scalar field whose
1478
+ * codec has a temporary value its data type takes, and refuses any other. Under `refuse`, when the
1479
+ * value object also lost a field no statement renames, the refusal offers that rename first. Each
1480
+ * fill acts on every column of the working schema whose field holds the value object, at every path to its objects, nested or in lists, as
1481
+ * the destination names them. A column that holds the value object where its paths cannot be listed
1482
+ * is refused. With no origin contract, nothing is known to have changed.
1483
+ */
1484
+ declare function planValueObjectFieldFills(input: {
1485
+ readonly statements: readonly ResolvedMigrationStatement[];
1486
+ readonly fromContract: Contract<SqlStorage> | null;
1487
+ readonly contract: Contract<SqlStorage>;
1488
+ readonly tables: SchemaTables;
1489
+ readonly types: TypeLookups;
1490
+ readonly unnamed: UnnamedFieldFill;
1491
+ }): Result<readonly StoredKeyFill[], SqlPlannerConflict>;
1492
+ //#endregion
1493
+ //#region src/core/migrations/value-object-field-planning.d.ts
1494
+ /**
1495
+ * One column's rewrite of one key of a value object field: the key at `path` is renamed to `to`,
1496
+ * or, when `to` is absent, removed. The column and the path to the objects are named as the
1497
+ * destination contract names them; the path ends at the key the origin contract names.
1498
+ */
1499
+ interface StoredKeyRewrite {
1500
+ /** The value object field whose key is rewritten, as the origin contract names it. */
1501
+ readonly valueObjectField: ValueObjectFieldCoordinate;
1502
+ readonly namespaceId: string;
1503
+ readonly table: string;
1504
+ readonly column: string;
1505
+ /** The RFC 9535 path from the column's value to the key. */
1506
+ readonly path: string;
1507
+ readonly to: string | undefined;
1508
+ /** The rename statement the rewrite carries out, if any. */
1509
+ readonly statement: ResolvedValueObjectFieldRenameStatement | undefined;
1510
+ }
1511
+ /**
1512
+ * The key rewrites of value object fields a plan makes. A value object of the origin is compared,
1513
+ * field by field, with the value object of the same name in the destination: a rename statement
1514
+ * renames a field's key, and a field the destination lacks that no statement renames is removed,
1515
+ * which the plan asks about. Each rewrite acts on every column of the working schema whose field
1516
+ * holds the value object, at every path to its objects, nested or in lists. The paths are written
1517
+ * with the destination's names, so an outer rename runs before an inner one: the rewrites come out
1518
+ * ordered by the depth of their paths. A path through a value object that contains itself, or a
1519
+ * column that holds a union or a dictionary of value objects, is refused. With no origin contract,
1520
+ * nothing is known to have changed.
1521
+ */
1522
+ declare function planValueObjectFieldRewrites(input: {
1523
+ readonly statements: readonly ResolvedMigrationStatement[];
1524
+ readonly fromContract: Contract<SqlStorage> | null;
1525
+ readonly contract: Contract<SqlStorage>;
1526
+ readonly tables: SchemaTables;
1527
+ }): Result<readonly StoredKeyRewrite[], SqlPlannerConflict>;
1528
+ //#endregion
1529
+ //#region src/core/migrations/variant-planning.d.ts
1530
+ /**
1531
+ * One variant's rewrite of the rows of its base table: the discriminator value `from` becomes `to`,
1532
+ * or, when `to` is absent, the rows that hold `from` are deleted. The base table and its
1533
+ * discriminator column are named as the destination contract names them.
1534
+ */
1535
+ interface VariantRowRewrite {
1536
+ /** The variant, as the origin contract names it. */
1537
+ readonly model: ModelCoordinate;
1538
+ readonly namespaceId: string;
1539
+ readonly table: string;
1540
+ readonly column: string;
1541
+ /** The discriminator column's codec, which writes `from` and `to` as the database stores them. */
1542
+ readonly codecRef: CodecRef;
1543
+ readonly from: string;
1544
+ readonly to: string | undefined;
1545
+ /** Whether the destination contract has no such variant, so the plan also drops its columns or table. */
1546
+ readonly removed: boolean;
1547
+ /** The variant's own table in the destination when its foreign key to the base table cascades, so that deleting base rows deletes its rows too; undefined when the variant shares the base table or its foreign key does not cascade. */
1548
+ readonly cascadingTable: CascadingTable | undefined;
1549
+ /** The rename or convert statement the rewrite carries out, if any. */
1550
+ readonly statement: ResolvedModelRenameStatement | ResolvedVariantConvertStatement | undefined;
1551
+ }
1552
+ /** A variant's own table and the foreign key that ties each of its rows to a row of the base table, with `onDelete: 'cascade'`. */
1553
+ interface CascadingTable {
1554
+ readonly namespaceId: string;
1555
+ readonly table: string;
1556
+ /** The columns of the variant's table the foreign key reads. */
1557
+ readonly columns: readonly string[];
1558
+ /** The columns of the base table those columns reference. */
1559
+ readonly references: readonly string[];
1560
+ }
1561
+ /**
1562
+ * The row rewrites a plan makes for the variants of the origin whose discriminator value the
1563
+ * destination changes or drops. A rename or convert statement rewrites a changed value in the base
1564
+ * table's discriminator column; a changed value with no statement, and a variant the destination no
1565
+ * longer has, delete the rows that hold the old value, which the plan asks about. Deletions come
1566
+ * first, so a value freed by a deleted variant can be taken by another. A rewrite whose new value
1567
+ * another variant still moves from is refused. With no origin contract, nothing is known to have
1568
+ * changed.
1569
+ */
1570
+ declare function planVariantRowRewrites(input: {
1571
+ readonly statements: readonly ResolvedMigrationStatement[];
1572
+ readonly fromContract: Contract<SqlStorage> | null;
1573
+ readonly contract: Contract<SqlStorage>;
1574
+ readonly tables: SchemaTables;
1575
+ }): Result<readonly VariantRowRewrite[], SqlPlannerConflict>;
1576
+ //#endregion
1577
+ //#region src/core/migrations/stored-rewrites.d.ts
1578
+ /** A rewrite of stored data a plan makes: a key of value object JSON, a key filled, a stored value, or the rows of a variant. */
1579
+ type StoredRewrite = StoredKeyRewrite | StoredKeyFill | StoredValueRewrite | VariantRowRewrite;
1580
+ /** How a target builds the calls that carry out each kind of stored rewrite, each call with the rewrite it carries out. */
1581
+ interface StoredRewriteCalls<TCall extends OpFactoryCall, TRemoval extends TCall> {
1582
+ storedKeyCalls(rewrites: readonly StoredKeyRewrite[]): ReadonlyMap<TCall, StoredKeyRewrite>;
1583
+ storedKeyFillCalls(fills: readonly StoredKeyFill[]): ReadonlyMap<TCall, StoredKeyFill>;
1584
+ storedValueCalls(rewrites: readonly StoredValueRewrite[]): ReadonlyMap<TCall, StoredValueRewrite>;
1585
+ variantRowCalls(rewrites: readonly VariantRowRewrite[]): ReadonlyMap<TCall, VariantRowRewrite>;
1586
+ readonly storedValueClasses: StoredValueCallClasses<TRemoval>;
1587
+ }
1588
+ /** The calls of a plan's stored rewrites, with what the planner reports of them. */
1589
+ interface PlannedStoredRewrites<TCall extends OpFactoryCall> {
1590
+ /** Key renames and removals first, then fills, stored values and variant rows, as the plan runs them. */
1591
+ readonly calls: readonly TCall[];
1592
+ /** The positions, among the plan's operations, of the operations that carry out `statement`. */
1593
+ operationIndexes(planCalls: readonly OpFactoryCall[], statement: ResolvedMigrationStatement): readonly number[];
1594
+ readonly storedValues: ReadonlyMap<OpFactoryCall, StoredValueSubject>;
1595
+ readonly storedKeys: ReadonlyMap<OpFactoryCall, ValueObjectFieldCoordinate>;
1596
+ readonly variantRows: ReadonlyMap<OpFactoryCall, ModelCoordinate>;
1597
+ /** The variants of the origin the destination no longer has. */
1598
+ readonly removedVariants: readonly ModelCoordinate[];
1599
+ }
1600
+ /**
1601
+ * The stored rewrites of a plan, as the target's calls: the key rewrites and fills of value object
1602
+ * fields, the stored value rewrites of enum values, and the row rewrites of variants. The first
1603
+ * kind a plan refuses is the plan's failure.
1604
+ */
1605
+ declare function planStoredRewrites<TCall extends OpFactoryCall, TRemoval extends TCall>(input: {
1606
+ readonly statements: readonly ResolvedMigrationStatement[];
1607
+ readonly fromContract: Contract<SqlStorage> | null;
1608
+ readonly contract: Contract<SqlStorage>;
1609
+ readonly tables: SchemaTables;
1610
+ readonly types: TypeLookups;
1611
+ readonly policy: MigrationOperationPolicy;
1612
+ readonly calls: StoredRewriteCalls<TCall, TRemoval>;
1613
+ }): Result<PlannedStoredRewrites<TCall>, SqlPlannerConflict>;
1614
+ //#endregion
1269
1615
  //#region src/core/migrations/table-name-case-guard.d.ts
1270
1616
  declare const TABLE_NAME_CASE_CHANGED_CODE = "MIGRATION.TABLE_NAME_CASE_CHANGED";
1271
1617
  /** The one fact the guard needs about a table the plan would drop or create. */
@@ -1381,5 +1727,5 @@ declare function contractColumns(contract: unknown): ContractColumns;
1381
1727
  //#region src/exports/control.d.ts
1382
1728
  declare const _default: SqlFamilyDescriptor;
1383
1729
  //#endregion
1384
- export { StatementPlanningTarget as $, resolveTableRenameAgainst as $t, NoTable as A, encodeStoredValue as At, SchemaTables as B, partitionIssuesByControlPolicy as Bt, MigrationPlannerConflict$1 as C, contractToSchemaIR as Ct, NO_RENAMED_ORIGINS as D, createSqlTextSources as Dt, ModelTable as E, createMigrationPlan as Et, ReportedBody as F, fieldStatementColumns as Ft, SqlDescribedContractSpace as G, plannerFailure as Gt, SqlControlFamilyInstance as H, planFieldEventCalls as Ht, ReportedLiteralDefault as I, isUnfilledSlot as It, SqlQuotingRules as J, readReportedDefault as Jt, SqlPslBuildContext as K, plannerSuccess as Kt, RequiredColumn as L, modelRenameStorageEffect as Lt, PlannedStatements as M, fieldEventStorage as Mt, ReadColumnDefault as N, fieldOfColumn as Nt, NamespaceRename as O, detectDestructiveChanges as Ot, ReadReportedDefault as P, fieldRenameStorageEffect as Pt, StatementOwnership as Q, resolveColumnRenameAgainst as Qt, RequiredColumnMark as R, otherSpaceDeclaring as Rt, MigrationPlanner as S, contractNamespaceToSchemaIR as St, ModelStorageEffect as T, convertedColumnOf as Tt, SqlControlTargetDescriptor as U, planFieldEventOperations as Ut, SingleOperationCall as V, planEnumValueRewrites as Vt, SqlDefaultFunctionName as W, planStatements as Wt, SqlTextSources as X, requiredColumnOf as Xt, SqlSlot as Y, requiredColumnMeta as Yt, StatementColumn as Z, requiredColumnsOfMigration as Zt, INIT_ADDITIVE_POLICY as _, withEnumValueOperations as _n, assembleAuthoringContributions$1 as _t, ColumnRename as a, runnerFailure as an, SuppressionRecord as at, MigrationPlan$1 as b, columnTakesTemporaryValue as bt, ContractColumns as c, sqlDefaultFunctions as cn, TableNameCaseGuardTable as ct, ConvertedColumn as d, storageNameOfOperation as dn, TableRenameRequest as dt, rowsHoldingValueMeta as en, StoredEnumValue as et, DefaultResolver as f, subjectsOfCalls as fn, TargetMigrationsCapability as ft, FieldStorageEffect as g, unmatchedTableRename as gn, appliedStatementsInOrder as gt, FieldStatementColumns as h, unmatchedColumnRename as hn, _default as ht, ColumnOnOneSide as i, rowsWithoutValueSummary as in, SubjectStorage as it, PlanFieldEventOperationsOptions as j, extractCodecControlHooks as jt, NamespaceStatementTarget as k, detectTableNameCaseChanges as kt, ContractToSchemaIROptions as l, sqlOfSlot as ln, TableRename as lt, FieldEventCall as m, unknownCallNames as mn, WorkingSchemaOrigins as mt, CallSubjects as n, rowsHoldingValueSummary as nn, StoredValueReplacement as nt, ColumnRenameRequest as o, runnerSuccess as on, TABLE_NAME_CASE_CHANGED_CODE as ot, DefaultResolverColumn as p, unconvertedFieldOf as pn, TargetRefusal as pt, SqlQuote as q, readColumnDefault as qt, CallWithCompanions as r, rowsWithoutValueFailure as rn, StoredValueRewrite as rt, ContractColumn as s, slotSource as sn, TableMove as st, COLUMN_RENAME_UNMATCHED_CODE as t, rowsHoldingValueOf as tn, StoredValueCodec as tt, ControlPolicySubject as u, sqlTypeLookupsOf as un, TableRenameByHand as ut, MigrationOperationClass$1 as v, backfillOfDefaultedField as vt, MigrationPlannerResult as w, convertedColumnMeta as wt, MigrationPlanOperation$1 as x, contractColumns as xt, MigrationOperationPolicy$1 as y, checkSqlExpressionText as yt, RowsHoldingValueMark as z, partitionCallsByControlPolicy as zt };
1385
- //# sourceMappingURL=control-CdumaQYh.d.mts.map
1730
+ export { SqlDescribedContractSpace as $, fieldOfColumn as $t, MigrationPlannerResult as A, resolveTableRenameAgainst as An, UnfilledValue as At, PlannedStoredRewrites as B, sqlDefaultFunctions as Bn, columnTakesTemporaryValue as Bt, MarkedRemoval as C, readColumnDefault as Cn, TableMove as Ct, MigrationPlanOperation$1 as D, requiredColumnOf as Dn, TableRenameRequest as Dt, MigrationPlan$1 as E, requiredColumnMeta as En, TableRenameByHand as Et, NamespaceStatementTarget as F, rowsWithoutValueSummary as Fn, acceptedByDataType as Ft, RequiredColumn as G, storedValueSubjects as Gn, convertedColumnOf as Gt, ReadReportedDefault as H, sqlTypeLookupsOf as Hn, contractNamespaceToSchemaIR as Ht, NoTable as I, runnerFailure as In, appliedStatementsInOrder as It, SchemaTables as J, unknownCallNames as Jn, detectDestructiveChanges as Jt, RequiredColumnMark as K, subjectsOfCalls as Kn, createMigrationPlan as Kt, PlanFieldEventOperationsOptions as L, runnerSuccess as Ln, assembleAuthoringContributions$1 as Lt, ModelTable as M, rowsHoldingValueMeta as Mn, VariantRowRewrite as Mt, NO_RENAMED_ORIGINS as N, rowsHoldingValueOf as Nn, WorkingSchemaOrigins as Nt, MigrationPlanner as O, requiredColumnsOfMigration as On, TargetMigrationsCapability as Ot, NamespaceRename as P, rowsWithoutValueFailure as Pn, _default as Pt, SqlDefaultFunctionName as Q, fieldEventStorage as Qt, PlannedStatement as R, scalarTypeNamesOf as Rn, backfillOfDefaultedField as Rt, JsonPathStep as S, plannerSuccess as Sn, TABLE_NAME_CASE_CHANGED_CODE as St, MigrationOperationPolicy$1 as T, removalsOfMigration as Tn, TableRename as Tt, ReportedBody as U, storageNameOfOperation as Un, contractToSchemaIR as Ut, ReadColumnDefault as V, sqlOfSlot as Vn, contractColumns as Vt, ReportedLiteralDefault as W, storedValueOperationIndexes as Wn, convertedColumnMeta as Wt, SqlControlFamilyInstance as X, unmatchedTableRename as Xn, encodeStoredValue as Xt, SingleOperationCall as Y, unmatchedColumnRename as Yn, detectTableNameCaseChanges as Yt, SqlControlTargetDescriptor as Z, unnamedFieldFillOf as Zn, extractCodecControlHooks as Zt, FillValueCheck as _, planStoredRewrites as _n, StoredValueReplacement as _t, ColumnRename as a, jsonPathText as an, StatementColumn as at, JsonKeyPath as b, planVariantRowRewrites as bn, SubjectStorage as bt, ContractColumns as c, modelRenameStorageEffect as cn, StatementPlanningTarget as ct, ConvertedColumn as d, partitionCallsByControlPolicy as dn, StoredKeyFillField as dt, fieldRenameStorageEffect as en, SqlPslBuildContext as et, DefaultResolver as f, partitionIssuesByControlPolicy as fn, StoredKeyRewrite as ft, FieldStorageEffect as g, planStatements as gn, StoredValueCodec as gt, FieldStatementColumns as h, planFieldEventOperations as hn, StoredValueCallClasses as ht, ColumnOnOneSide as i, isUnfilledSlot as in, SqlTextSources as it, ModelStorageEffect as j, rowsHoldingValueFailure as jn, UnnamedFieldFill as jt, MigrationPlannerConflict$1 as k, resolveColumnRenameAgainst as kn, TargetRefusal as kt, ContractToSchemaIROptions as l, otherSpaceDeclaring as ln, StoredEnumValue as lt, FieldEventCall as m, planFieldEventCalls as mn, StoredRewriteCalls as mt, CallSubjects as n, fillKeyProblem as nn, SqlQuotingRules as nt, ColumnRenameRequest as o, keepRowsEdit as on, StatementOperations as ot, DefaultResolverColumn as p, planEnumValueRewrites as pn, StoredRewrite as pt, RowsHoldingValueMark as q, unconvertedFieldOf as qn, createSqlTextSources as qt, CallWithCompanions as r, fillValueProblem as rn, SqlSlot as rt, ContractColumn as s, keyPathOf as sn, StatementOwnership as st, COLUMN_RENAME_UNMATCHED_CODE as t, fieldStatementColumns as tn, SqlQuote as tt, ControlPolicySubject as u, parseJsonPath as un, StoredKeyFill as ut, FillValueTypes as v, planValueObjectFieldFills as vn, StoredValueRewrite as vt, MigrationOperationClass$1 as w, readReportedDefault as wn, TableNameCaseGuardTable as wt, JsonPath as x, plannerFailure as xn, SuppressionRecord as xt, INIT_ADDITIVE_POLICY as y, planValueObjectFieldRewrites as yn, StoredValueSubject as yt, PlannedStatements as z, slotSource as zn, checkSqlExpressionText as zt };
1731
+ //# sourceMappingURL=control-CyJM0mMS.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"control-CyJM0mMS.d.mts","names":[],"sources":["../../../../2-sql-family/9-family/dist/control.d.mts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;UAmBU;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,QAAQ;EACrD,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;iBACA;mBACE;mBACA;mBACA;;iBAEF;mBACE;mBACA;qBACE;uBACE;uBACA;;;;;eAKR;iBAC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