@prisma/orm-family-sql 8.0.0-rc.20-dev.8 → 8.0.0-rc.20-dev.9

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.
@@ -22,7 +22,7 @@ import { ColumnDefault, Contract, ContractWithDomain, ControlPolicy } from "@pri
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, FieldCoordinate, ImportRequirement, 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, 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, RowsWithoutValue, SchemaDiffIssue, SchemaOwnership, SchemaVerifier, SchemaViewCapable, TargetMigrationsCapability, 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
@@ -786,6 +786,75 @@ interface SchemaTables {
786
786
  hasNamespace(namespaceId: string): boolean;
787
787
  }
788
788
  //#endregion
789
+ //#region src/core/migrations/enum-value-planning.d.ts
790
+ /** A stored value of an enum: the only values a rewrite compares and writes. */
791
+ type StoredEnumValue = string | number;
792
+ /**
793
+ * One column's rewrite of one stored value of an enum: `to` replaces `from`, or, when `to` is
794
+ * absent, `from` is removed. The column is named as the destination contract stores it.
795
+ */
796
+ interface StoredValueRewrite {
797
+ /** The enum value whose stored value is rewritten, as the origin contract names it. */
798
+ readonly enumValue: EnumValueCoordinate;
799
+ readonly namespaceId: string;
800
+ readonly table: string;
801
+ readonly column: string;
802
+ /** The column's codec, which writes `from` and `to` as the database stores them. */
803
+ readonly codecRef: CodecRef;
804
+ /** Whether the column holds a list of the enum's values. */
805
+ readonly many: boolean;
806
+ readonly from: StoredEnumValue;
807
+ readonly to: StoredEnumValue | undefined;
808
+ /** The rename statement the rewrite carries out, if any. */
809
+ readonly statement: ResolvedEnumValueRenameStatement | undefined;
810
+ /**
811
+ * For a removal the plan asks about, the replacements that would keep its data instead, in the
812
+ * order they run; none when keeping it would merge it with another member's data.
813
+ */
814
+ readonly keepData: readonly StoredValueReplacement[] | undefined;
815
+ /** Whether the value moves in a cycle with other values of the enum, so keeping its data swaps values. */
816
+ readonly swapsValues: boolean;
817
+ }
818
+ /** One replacement of a stored value by another. */
819
+ interface StoredValueReplacement {
820
+ readonly from: StoredEnumValue;
821
+ readonly to: StoredEnumValue;
822
+ }
823
+ type CodecSource = Pick<CodecLookupWithDescriptors, 'descriptorFor'>;
824
+ /**
825
+ * The rewrites of stored enum values a plan makes. Enums are compared by the stored value of each
826
+ * member (see `valueChanges`). A changed value is rewritten in every column, in the working schema,
827
+ * whose field the destination enum types: a rename statement replaces it, and any other change
828
+ * removes it, which the plan asks about, with the replacements that would keep its data. Changes
829
+ * that shift values along are ordered so none overwrites a value another still has to read; rename
830
+ * statements that move values in a cycle are refused, and other changes in a cycle keep their data
831
+ * through a temporary value. With no origin contract, nothing is known to have changed.
832
+ */
833
+ declare function planEnumValueRewrites(input: {
834
+ readonly statements: readonly ResolvedMigrationStatement[];
835
+ readonly fromContract: Contract<SqlStorage> | null;
836
+ readonly contract: Contract<SqlStorage>;
837
+ readonly tables: SchemaTables;
838
+ /** The stack's codecs, which read stored values for messages. */
839
+ readonly codecs: CodecSource;
840
+ }): Result<readonly StoredValueRewrite[], SqlPlannerConflict>;
841
+ /**
842
+ * The applied statements with each enum value rename given the operations its rewrites lowered
843
+ * to, at their positions in the plan: the rewrites are ordered with the diff, not with the renames.
844
+ */
845
+ declare function withEnumValueOperations(applied: readonly AppliedMigrationStatement[], operationIndexesOf: (statement: ResolvedEnumValueRenameStatement) => readonly number[]): readonly AppliedMigrationStatement[];
846
+ /** The codec of the column a stored value is in, and the stack's codecs, which build it. */
847
+ interface StoredValueCodec {
848
+ readonly codecRef: CodecRef;
849
+ readonly codecs: Pick<CodecLookupWithDescriptors, 'descriptorFor'>;
850
+ }
851
+ /**
852
+ * The value the database stores for `value`, a stored value as the contract writes it: the column's
853
+ * codec reads it as a value of its data type and writes it with `toWire`, as a literal default is
854
+ * written. With no codec, or one the stack does not have, the value is used as written.
855
+ */
856
+ declare function encodeStoredValue(value: StoredEnumValue, codec: StoredValueCodec | undefined): Promise<StoredEnumValue>;
857
+ //#endregion
789
858
  //#region src/core/migrations/resolve-column-rename.d.ts
790
859
  declare const COLUMN_RENAME_UNMATCHED_CODE = "MIGRATION.COLUMN_RENAME_UNMATCHED";
791
860
  /**
@@ -1107,6 +1176,8 @@ interface SubjectStorage {
1107
1176
  readonly table: string;
1108
1177
  readonly column: string | undefined;
1109
1178
  } | undefined;
1179
+ /** The enum value the operation is about, when it rewrites one stored value of an enum. */
1180
+ readonly enumValue?: EnumValueCoordinate;
1110
1181
  }
1111
1182
  /** What a codec hook's call is about: the column of the field event it was returned for. */
1112
1183
  declare function fieldEventStorage(field: {
@@ -1126,9 +1197,10 @@ interface CallSubjects {
1126
1197
  readonly operationCount: number;
1127
1198
  /** The call's label, which names its operation before the plan's slots are filled. */
1128
1199
  readonly label: string;
1129
- /** What the call's operation loses, one entry per model, field or storage name, and how. */
1200
+ /** What the call's operation loses, one entry per model, field or storage name, how, and how to keep it. */
1130
1201
  readonly dataLoss: readonly (SubjectStorage & {
1131
1202
  readonly loss: MigrationDataLossKind;
1203
+ readonly keepDataEdit?: KeepDataEdit;
1132
1204
  })[];
1133
1205
  /** What the call's operation changes access to, and whether it widens it. */
1134
1206
  readonly accessChanges: readonly (SubjectStorage & {
@@ -1235,6 +1307,28 @@ declare function rowsWithoutValueFailure<TOperation>(input: {
1235
1307
  readonly reports: readonly RowsWithoutValue[];
1236
1308
  } | undefined>;
1237
1309
  //#endregion
1310
+ //#region src/core/migrations/rows-holding-value.d.ts
1311
+ /**
1312
+ * The enum value a removal check guards, with its stored value as the contract stores it and the
1313
+ * column's codec, which the call that removes it carries.
1314
+ */
1315
+ interface RowsHoldingValueMark {
1316
+ readonly enumValue: EnumValueCoordinateJson;
1317
+ readonly value: string | number;
1318
+ readonly codecRef?: CodecRef;
1319
+ }
1320
+ /**
1321
+ * The meta of the check before a stored enum value is removed from a column: it fails while rows
1322
+ * hold the value in a column that takes no NULL, and the runner then counts those rows.
1323
+ */
1324
+ declare function rowsHoldingValueMeta(mark: RowsHoldingValueMark): {
1325
+ readonly rowsHoldingValue: RowsHoldingValueMark;
1326
+ };
1327
+ /** The enum value a check guards, as {@link rowsHoldingValueMeta} marks it. */
1328
+ declare function rowsHoldingValueOf(step: SqlMigrationPlanOperationStep): RowsHoldingValueMark | undefined;
1329
+ /** What a runner failure says of the rows that hold a stored value a column cannot lose: the value as the database stores it. */
1330
+ declare function rowsHoldingValueSummary(table: string, column: string, storedValue: unknown, rows: number): string;
1331
+ //#endregion
1238
1332
  //#region src/core/migrations/sql-expression-text.d.ts
1239
1333
  /**
1240
1334
  * One way a target's SQL quotes a literal or an identifier. Inside the quote, the closing text
@@ -1412,5 +1506,5 @@ declare function contractColumns(contract: unknown): ContractColumns;
1412
1506
  //#region src/exports/control.d.ts
1413
1507
  declare const _default: SqlFamilyDescriptor;
1414
1508
  //#endregion
1415
- export { SubjectStorage as $, sqlOfSlot as $t, NoTable as A, isUnfilledSlot as At, SingleOperationCall as B, readColumnDefault as Bt, MigrationPlannerConflict$1 as C, detectDestructiveChanges as Ct, NO_RENAMED_ORIGINS as D, fieldOfColumn as Dt, ModelTable as E, fieldEventStorage as Et, ReportedBody as F, planFieldEventCalls as Ft, SqlPslBuildContext as G, resolveColumnRenameAgainst as Gt, SqlControlTargetDescriptor as H, requiredColumnMeta as Ht, ReportedLiteralDefault as I, planFieldEventOperations as It, SqlSlot as J, rowsWithoutValueSummary as Jt, SqlQuote as K, resolveTableRenameAgainst as Kt, RequiredColumn as L, planStatements as Lt, PlannedStatements as M, otherSpaceDeclaring as Mt, ReadColumnDefault as N, partitionCallsByControlPolicy as Nt, NamespaceRename as O, fieldRenameStorageEffect as Ot, ReadReportedDefault as P, partitionIssuesByControlPolicy as Pt, StatementPlanningTarget as Q, sqlDefaultFunctions as Qt, RequiredColumnMark as R, plannerFailure as Rt, MigrationPlanner as S, createSqlTextSources as St, ModelStorageEffect as T, extractCodecControlHooks as Tt, SqlDefaultFunctionName as U, requiredColumnOf as Ut, SqlControlFamilyInstance as V, readReportedDefault as Vt, SqlDescribedContractSpace as W, requiredColumnsOfMigration as Wt, StatementColumn as X, runnerSuccess as Xt, SqlTextSources as Y, runnerFailure as Yt, StatementOwnership as Z, slotSource as Zt, INIT_ADDITIVE_POLICY as _, contractNamespaceToSchemaIR as _t, ColumnRename as a, unmatchedColumnRename as an, TableRenameByHand as at, MigrationPlan$1 as b, convertedColumnOf as bt, ContractColumns as c, TargetRefusal as ct, ConvertedColumn as d, appliedStatementsInOrder as dt, sqlTypeLookupsOf as en, SuppressionRecord as et, DefaultResolver as f, assembleAuthoringContributions$1 as ft, FieldStorageEffect as g, contractColumns as gt, FieldStatementColumns as h, columnTakesTemporaryValue as ht, ColumnOnOneSide as i, unknownCallNames as in, TableRename as it, PlanFieldEventOperationsOptions as j, modelRenameStorageEffect as jt, NamespaceStatementTarget as k, fieldStatementColumns as kt, ContractToSchemaIROptions as l, WorkingSchemaOrigins as lt, FieldEventCall as m, checkSqlExpressionText as mt, CallSubjects as n, subjectsOfCalls as nn, TableMove as nt, ColumnRenameRequest as o, unmatchedTableRename as on, TableRenameRequest as ot, DefaultResolverColumn as p, backfillOfDefaultedField as pt, SqlQuotingRules as q, rowsWithoutValueFailure as qt, CallWithCompanions as r, unconvertedFieldOf as rn, TableNameCaseGuardTable as rt, ContractColumn as s, TargetMigrationsCapability as st, COLUMN_RENAME_UNMATCHED_CODE as t, storageNameOfOperation as tn, TABLE_NAME_CASE_CHANGED_CODE as tt, ControlPolicySubject as u, _default as ut, MigrationOperationClass$1 as v, contractToSchemaIR as vt, MigrationPlannerResult as w, detectTableNameCaseChanges as wt, MigrationPlanOperation$1 as x, createMigrationPlan as xt, MigrationOperationPolicy$1 as y, convertedColumnMeta as yt, SchemaTables as z, plannerSuccess as zt };
1416
- //# sourceMappingURL=control-C24G0Gx8.d.mts.map
1509
+ 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 };
1510
+ //# sourceMappingURL=control-CffuMKgt.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"control-CffuMKgt.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,w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