@prisma/orm-family-sql 8.0.0-rc.19-dev.4 → 8.0.0-rc.19-dev.6
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/{control-B_FwQQXi.mjs → control-Cih61sJa.mjs} +198 -56
- package/dist/control-Cih61sJa.mjs.map +1 -0
- package/dist/{control-Xwm5kFlC.d.mts → control-Dv1ea79q.d.mts} +68 -11
- package/dist/{control-Xwm5kFlC.d.mts.map → control-Dv1ea79q.d.mts.map} +1 -1
- package/dist/family.d.mts +2 -2
- package/dist/family.mjs +2 -2
- package/dist/family__control.d.mts +2 -2
- package/dist/family__control.mjs +2 -2
- package/package.json +18 -18
- package/dist/control-B_FwQQXi.mjs.map +0 -1
|
@@ -21,7 +21,7 @@ import { Codec, CodecLookupWithDescriptors, CodecRef, DataType, DataTypeLookup,
|
|
|
21
21
|
import { ColumnDefault, Contract, ContractWithDomain, ControlPolicy } from "@prisma/orm-framework/contract/types";
|
|
22
22
|
import { GeneratorFunctionRegistry, TargetBoundComponentDescriptor } from "@prisma/orm-framework/components/components";
|
|
23
23
|
import { NotOk, Ok, Result } from "@prisma/orm-framework/utils/result";
|
|
24
|
-
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, SchemaVerifier, SchemaViewCapable, TargetMigrationsCapability, VerifyDatabaseResult, VerifyDatabaseSchemaResult, assembleAuthoringContributions as assembleAuthoringContributions$1 } from "@prisma/orm-framework/components/control";
|
|
24
|
+
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
25
|
import { EmissionSpi, TypesImportSpec } from "@prisma/orm-framework/components/emission";
|
|
26
26
|
import { PslDocumentAst } from "@prisma/orm-framework/components/psl-ast";
|
|
27
27
|
//#region ../../../2-sql/9-family/dist/control.d.mts
|
|
@@ -783,6 +783,7 @@ interface SchemaTables {
|
|
|
783
783
|
*/
|
|
784
784
|
columnsNamed(namespaceId: string, table: string, column: string): readonly string[];
|
|
785
785
|
namespacesWithTable(table: string): readonly string[];
|
|
786
|
+
hasNamespace(namespaceId: string): boolean;
|
|
786
787
|
}
|
|
787
788
|
//#endregion
|
|
788
789
|
//#region src/core/migrations/resolve-column-rename.d.ts
|
|
@@ -955,11 +956,27 @@ interface SingleOperationCall {
|
|
|
955
956
|
}
|
|
956
957
|
/**
|
|
957
958
|
* A call that lowers to its own operation, then each companion's, in that order: a table or column
|
|
958
|
-
* rename, whether a statement plans it or a hand-written migration calls it.
|
|
959
|
+
* rename, whether a statement plans it or a hand-written migration calls it. A table move has none.
|
|
959
960
|
*/
|
|
960
961
|
interface CallWithCompanions extends SingleOperationCall {
|
|
961
962
|
readonly companions: readonly SingleOperationCall[];
|
|
962
963
|
}
|
|
964
|
+
/** A namespace renamed: `from` names it in the origin contract and `to` in the destination. */
|
|
965
|
+
interface NamespaceRename {
|
|
966
|
+
readonly from: string;
|
|
967
|
+
readonly to: string;
|
|
968
|
+
}
|
|
969
|
+
/** Why a target cannot carry out a statement, in its words. */
|
|
970
|
+
interface TargetRefusal {
|
|
971
|
+
readonly reason: string;
|
|
972
|
+
readonly fix: string;
|
|
973
|
+
}
|
|
974
|
+
/** A table moving, under its own name, from one storage namespace to another. */
|
|
975
|
+
interface TableMove {
|
|
976
|
+
readonly table: string;
|
|
977
|
+
readonly from: string;
|
|
978
|
+
readonly to: string;
|
|
979
|
+
}
|
|
963
980
|
/** How a user renames a table by hand, written for the target. */
|
|
964
981
|
interface TableRenameByHand {
|
|
965
982
|
/** The `renameTable` call a user writes in `migration.ts` to make `rename` by hand. */
|
|
@@ -967,17 +984,46 @@ interface TableRenameByHand {
|
|
|
967
984
|
/** The SQL statements a user runs against the database to make `rename` by hand. */
|
|
968
985
|
tableRenameByHand(rename: TableRename): readonly string[];
|
|
969
986
|
}
|
|
987
|
+
/** What a target with several namespaces supplies for namespace renames and model moves. */
|
|
988
|
+
interface NamespaceStatementTarget<TCall extends CallWithCompanions> {
|
|
989
|
+
/**
|
|
990
|
+
* The calls a table moving into `namespaceId` needs first, such as creating the namespace: none
|
|
991
|
+
* when the working schema has it.
|
|
992
|
+
*/
|
|
993
|
+
createNamespaceCalls(namespaceId: string): readonly TCall[];
|
|
994
|
+
/** The call that moves a table to another namespace, computed against the working schema. */
|
|
995
|
+
moveTableCall(move: TableMove): TCall;
|
|
996
|
+
/** Why the target cannot rename the namespace, or `undefined` when it can. */
|
|
997
|
+
namespaceRenameRefusal(rename: NamespaceRename): TargetRefusal | undefined;
|
|
998
|
+
/** The call that renames a namespace, computed against the working schema. */
|
|
999
|
+
renameNamespaceCall(rename: NamespaceRename): TCall;
|
|
1000
|
+
}
|
|
970
1001
|
/** What a target supplies for planning statements against its working schema. */
|
|
971
1002
|
interface StatementPlanningTarget<TCall extends CallWithCompanions> extends TableRenameByHand {
|
|
972
1003
|
/** The tables of the working schema as earlier statements have left it. */
|
|
973
1004
|
tables(): SchemaTables;
|
|
974
1005
|
/** The call that renames a table, with its companions, computed against the working schema. */
|
|
975
1006
|
renameTableCall(rename: TableRename): TCall;
|
|
1007
|
+
/** Namespace renames and model moves; a target that keeps every table in one namespace has none. */
|
|
1008
|
+
readonly namespaces?: NamespaceStatementTarget<TCall> | undefined;
|
|
976
1009
|
/** The call that renames a column, with its companions, computed against the working schema. */
|
|
977
1010
|
renameColumnCall(rename: ColumnRename): TCall;
|
|
978
1011
|
/** Applies a call to the working schema. */
|
|
979
1012
|
apply(call: TCall): void;
|
|
980
1013
|
}
|
|
1014
|
+
/**
|
|
1015
|
+
* Where a table or column of the working schema came from in the origin contract, after the
|
|
1016
|
+
* statements' renames and moves: the statement planner records it, and the questions name a
|
|
1017
|
+
* subject through it.
|
|
1018
|
+
*/
|
|
1019
|
+
interface WorkingSchemaOrigins {
|
|
1020
|
+
/** The origin place of a table of the working schema. */
|
|
1021
|
+
originTable(current: ModelTable): ModelTable;
|
|
1022
|
+
/** The origin name of a column, now named `column`, of the origin table `origin`. */
|
|
1023
|
+
originColumn(origin: ModelTable, column: string): string;
|
|
1024
|
+
}
|
|
1025
|
+
/** The origins of a plan whose statements renamed and moved nothing. */
|
|
1026
|
+
declare const NO_RENAMED_ORIGINS: WorkingSchemaOrigins;
|
|
981
1027
|
interface PlannedStatements<TCall extends CallWithCompanions> {
|
|
982
1028
|
/**
|
|
983
1029
|
* The calls, which a target puts first in its plan: each statement's `operationIndexes` count
|
|
@@ -987,11 +1033,21 @@ interface PlannedStatements<TCall extends CallWithCompanions> {
|
|
|
987
1033
|
readonly tableRenames: readonly TableRename[];
|
|
988
1034
|
readonly columnRenames: readonly ColumnRename[];
|
|
989
1035
|
readonly appliedStatements: readonly AppliedMigrationStatement[];
|
|
1036
|
+
readonly origins: WorkingSchemaOrigins;
|
|
1037
|
+
}
|
|
1038
|
+
/** The contract space planned, and the oracle that says which spaces declare a namespace. */
|
|
1039
|
+
interface StatementOwnership {
|
|
1040
|
+
readonly oracle: SchemaOwnership | undefined;
|
|
1041
|
+
readonly spaceId: string;
|
|
990
1042
|
}
|
|
1043
|
+
/** A contract space other than the one planned that declares the namespace, if any. */
|
|
1044
|
+
declare function otherSpaceDeclaring(ownership: StatementOwnership, namespaceId: string): string | undefined;
|
|
991
1045
|
/**
|
|
992
|
-
* Plans the statements
|
|
993
|
-
*
|
|
994
|
-
*
|
|
1046
|
+
* Plans the statements against a target's working schema, namespace renames first and the rest in
|
|
1047
|
+
* the order given: model and field statements name the origin and destination contracts, so the
|
|
1048
|
+
* namespace renames' place among them does not matter. Each model rename becomes a table rename
|
|
1049
|
+
* and each field rename a column rename, computed against the schema earlier statements left, then
|
|
1050
|
+
* applied to it. The first statement that cannot be planned fails the whole
|
|
995
1051
|
* plan with a `statementRefused` conflict that carries the statement.
|
|
996
1052
|
*/
|
|
997
1053
|
declare function planStatements<TCall extends CallWithCompanions>(input: {
|
|
@@ -1000,6 +1056,7 @@ declare function planStatements<TCall extends CallWithCompanions>(input: {
|
|
|
1000
1056
|
readonly contract: Contract<SqlStorage>;
|
|
1001
1057
|
readonly policy: MigrationOperationPolicy;
|
|
1002
1058
|
readonly target: StatementPlanningTarget<TCall>;
|
|
1059
|
+
readonly ownership?: StatementOwnership;
|
|
1003
1060
|
}): Result<PlannedStatements<TCall>, SqlPlannerConflict>;
|
|
1004
1061
|
/**
|
|
1005
1062
|
* A column a statement names, in a table of a storage namespace, as the destination contract stores
|
|
@@ -1074,7 +1131,7 @@ interface CallSubjects {
|
|
|
1074
1131
|
readonly loss: MigrationDataLossKind;
|
|
1075
1132
|
})[];
|
|
1076
1133
|
/** What the call's operation changes access to, and whether it widens it. */
|
|
1077
|
-
readonly
|
|
1134
|
+
readonly accessChanges: readonly (SubjectStorage & {
|
|
1078
1135
|
readonly widens: boolean;
|
|
1079
1136
|
})[];
|
|
1080
1137
|
/** The new required columns the call's operation gives a temporary value in existing rows, and the value. */
|
|
@@ -1089,12 +1146,12 @@ interface TemporaryColumnValue {
|
|
|
1089
1146
|
interface SubjectContext {
|
|
1090
1147
|
readonly fromContract: ContractWithDomain | null;
|
|
1091
1148
|
readonly contract: ContractWithDomain;
|
|
1092
|
-
/**
|
|
1093
|
-
readonly
|
|
1149
|
+
/** Where the plan's statements put the origin's tables and columns. */
|
|
1150
|
+
readonly origins: WorkingSchemaOrigins;
|
|
1094
1151
|
readonly byHand: TableRenameByHand;
|
|
1095
1152
|
}
|
|
1096
1153
|
/**
|
|
1097
|
-
* The subject of each operation that loses data and each that
|
|
1154
|
+
* The subject of each operation that loses data and each that changes access, at its position in
|
|
1098
1155
|
* the plan. A subject is a model or a field of the origin contract when one stores it, found under
|
|
1099
1156
|
* its origin name when a rename statement renamed its table or column earlier in the plan.
|
|
1100
1157
|
*/
|
|
@@ -1355,5 +1412,5 @@ declare function contractColumns(contract: unknown): ContractColumns;
|
|
|
1355
1412
|
//#region src/exports/control.d.ts
|
|
1356
1413
|
declare const _default: SqlFamilyDescriptor;
|
|
1357
1414
|
//#endregion
|
|
1358
|
-
export {
|
|
1359
|
-
//# sourceMappingURL=control-
|
|
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-Dv1ea79q.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"control-
|
|
1
|
+
{"version":3,"file":"control-Dv1ea79q.d.mts","names":[],"sources":["../../../../2-sql/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;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;y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C,UAAU;WACV;;;UAGD;;EAER,SAAS,6CAA6C,eAAe,iBAAiB;;;;;iBAKvE,gBAAgB,oBAAoB;;;cAGvC,UAAU"}
|
package/dist/family.d.mts
CHANGED
|
@@ -3,7 +3,7 @@ import { h as checkSqlDefaultText } from "./validators-BDuMio1F.mjs";
|
|
|
3
3
|
import { n as Lowerer, r as SqlControlAdapter, t as ExecuteRequestLowerer } from "./control-adapter-Bn0uhplA-D0fhkvnJ.mjs";
|
|
4
4
|
import { C as SqlPlannerConflict, D as SqlPlannerResult, E as SqlPlannerFailureResult, O as SqlPlannerSuccessResult, S as SqlPlanTargetDetails, T as SqlPlannerConflictLocation, _ as SqlMigrationRunnerExecuteCallbacks, a as ResolveIdentityValueInput, b as SqlMigrationRunnerResult, c as SqlMigrationPlan, d as SqlMigrationPlanOperationStep, f as SqlMigrationPlanOperationTarget, g as SqlMigrationRunnerErrorCode, h as SqlMigrationRunner, i as FieldEventContext, k as StorageTypePlanResult, l as SqlMigrationPlanContractInfo, m as SqlMigrationPlannerPlanOptions, n as CreateSqlMigrationPlanOptions, o as SqlControlAdapterDescriptor, p as SqlMigrationPlanner, r as FieldEvent, s as SqlControlExtensionDescriptor, t as CodecControlHooks, u as SqlMigrationPlanOperation, v as SqlMigrationRunnerExecuteOptions, w as SqlPlannerConflictKind, x as SqlMigrationRunnerSuccessValue, y as SqlMigrationRunnerFailure } from "./types-Cq6ImLAB-BqOfLAYG.mjs";
|
|
5
5
|
import { n as SqlSchemaDiffInput, r as SqlSchemaDiffResult, t as SqlSchemaDiffFn } from "./schema-differ-DmP74bB8-0ZupRJKb.mjs";
|
|
6
|
-
import { $ as
|
|
6
|
+
import { $ as SubjectStorage, $t as sqlOfSlot, A as NoTable, At as isUnfilledSlot, B as SingleOperationCall, Bt as readColumnDefault, C as MigrationPlannerConflict, Ct as detectDestructiveChanges, D as NO_RENAMED_ORIGINS, Dt as fieldOfColumn, E as ModelTable, Et as fieldEventStorage, F as ReportedBody, Ft as planFieldEventCalls, G as SqlPslBuildContext, Gt as resolveColumnRenameAgainst, H as SqlControlTargetDescriptor, Ht as requiredColumnMeta, I as ReportedLiteralDefault, It as planFieldEventOperations, J as SqlSlot, Jt as rowsWithoutValueSummary, K as SqlQuote, Kt as resolveTableRenameAgainst, L as RequiredColumn, Lt as planStatements, M as PlannedStatements, Mt as otherSpaceDeclaring, N as ReadColumnDefault, Nt as partitionCallsByControlPolicy, O as NamespaceRename, Ot as fieldRenameStorageEffect, P as ReadReportedDefault, Pt as partitionIssuesByControlPolicy, Q as StatementPlanningTarget, Qt as sqlDefaultFunctions, R as RequiredColumnMark, Rt as plannerFailure, S as MigrationPlanner, St as createSqlTextSources, T as ModelStorageEffect, Tt as extractCodecControlHooks, U as SqlDefaultFunctionName, Ut as requiredColumnOf, V as SqlControlFamilyInstance, Vt as readReportedDefault, W as SqlDescribedContractSpace, Wt as requiredColumnsOfMigration, X as StatementColumn, Xt as runnerSuccess, Y as SqlTextSources, Yt as runnerFailure, Z as StatementOwnership, Zt as slotSource, _ as INIT_ADDITIVE_POLICY, _t as contractNamespaceToSchemaIR, a as ColumnRename, an as unmatchedColumnRename, at as TableRenameByHand, b as MigrationPlan, bt as convertedColumnOf, c as ContractColumns, ct as TargetRefusal, d as ConvertedColumn, dt as appliedStatementsInOrder, en as sqlTypeLookupsOf, et as SuppressionRecord, f as DefaultResolver, ft as assembleAuthoringContributions, g as FieldStorageEffect, gt as contractColumns, h as FieldStatementColumns, ht as columnTakesTemporaryValue, i as ColumnOnOneSide, in as unknownCallNames, it as TableRename, j as PlanFieldEventOperationsOptions, jt as modelRenameStorageEffect, k as NamespaceStatementTarget, kt as fieldStatementColumns, l as ContractToSchemaIROptions, lt as WorkingSchemaOrigins, m as FieldEventCall, mt as checkSqlExpressionText, n as CallSubjects, nn as subjectsOfCalls, nt as TableMove, o as ColumnRenameRequest, on as unmatchedTableRename, ot as TableRenameRequest, p as DefaultResolverColumn, pt as backfillOfDefaultedField, q as SqlQuotingRules, qt as rowsWithoutValueFailure, r as CallWithCompanions, rn as unconvertedFieldOf, rt as TableNameCaseGuardTable, s as ContractColumn, st as TargetMigrationsCapability, t as COLUMN_RENAME_UNMATCHED_CODE, tn as storageNameOfOperation, tt as TABLE_NAME_CASE_CHANGED_CODE, u as ControlPolicySubject, v as MigrationOperationClass, vt as contractToSchemaIR, w as MigrationPlannerResult, wt as detectTableNameCaseChanges, x as MigrationPlanOperation, xt as createMigrationPlan, y as MigrationOperationPolicy, yt as convertedColumnMeta, z as SchemaTables, zt as plannerSuccess } from "./control-Dv1ea79q.mjs";
|
|
7
7
|
import { t as resolveIntrospectedColumnType } from "./control-adapter-El4czoUh.mjs";
|
|
8
8
|
import { a as VerifySqlSchemaByDiffInput, c as classifySqlDiffIssue, d as verifySqlSchemaByDiff, i as StorageTypeVerdictInput, l as computeSqlDiffVerdict, n as SqlDiffVerdictInput, o as arraysEqual, r as StorageTypeVerdict, s as classifyDiffSubjectGranularity, t as SqlDiffVerdict, u as computeStorageTypeVerdict } from "./diff-D2PJJkGv.mjs";
|
|
9
9
|
import { i as SqlSchemaVerifierBase, n as SqlContractSerializerBase, r as SqlEntityHydrationFactory, t as SqlContractSerializer } from "./ir-BjC1VOuq.mjs";
|
|
@@ -14,4 +14,4 @@ import { a as InferredTypeConstructors, c as PslTypeCall, d as inferColumnTypes,
|
|
|
14
14
|
import { a as buildChildRelationField, c as inferRelations, d as toFieldName, f as toModelName, i as RelationField, l as pluralize, n as InferredRelations, o as deriveBackRelationFieldName, r as PslPrinterOptions, s as deriveRelationFieldName, t as EnumInfo, u as toEnumName } from "./psl-infer-CpTRaF5I.mjs";
|
|
15
15
|
import { a as timestampNowRuntimeGenerator, n as UNBOUND_DOMAIN_NAMESPACE_ID, r as resolveDomainModel, t as ResolvedDomainModel } from "./runtime-Bmndf-fm.mjs";
|
|
16
16
|
import { n as parseContractMarkerRow, t as ContractMarkerRow } from "./verify-zDRnw0Rn.mjs";
|
|
17
|
-
export { COLUMN_RENAME_UNMATCHED_CODE, type CallSubjects, type CallWithCompanions, type CodecControlHooks, type ColumnOnOneSide, type ColumnRename, type ColumnRenameRequest, type ColumnTypeOf, type ContractColumn, type ContractColumns, type ContractMarkerRow, type ContractToSchemaIROptions, type ControlPolicySubject, type ConvertedColumn, type CreateSqlMigrationPlanOptions, type DefaultMappingOptions, type DefaultMappingResult, type DefaultResolver, type DefaultResolverColumn, type EnumInfo, type ExecuteRequestLowerer, type FieldEvent, type FieldEventCall, type FieldEventContext, type FieldStatementColumns, type FieldStorageEffect, type GeneratorCallRefusal, type GeneratorCallsResult, INIT_ADDITIVE_POLICY, type InferredRelations, type InferredTypeConstructor, type InferredTypeConstructors, type IntrospectedTable, type Lowerer, SqlMigration as Migration, type MigrationOperationClass, type MigrationOperationPolicy, type MigrationPlan, type MigrationPlanOperation, type MigrationPlanner, type MigrationPlannerConflict, type MigrationPlannerResult, type ModelStorageEffect, type ModelTable, type NoTable, type PhaseCallText, type PlanFieldEventOperationsOptions, type PlannedStatements, type PslPrinterOptions, type PslTypeCall, type ReadColumnDefault, type ReadReportedDefault, type RelationField, type ReportedBody, type ReportedLiteralDefault, type RequiredColumn, type RequiredColumnMark, type ResolveIdentityValueInput, type ResolvedDomainModel, type ResolvedStorageTable, type SchemaTables, type SingleOperationCall, SqlContractSerializer, SqlContractSerializerBase, type SqlControlAdapter, type SqlControlExtensionDescriptor, type SqlControlFamilyInstance, type SqlControlTargetDescriptor, type SqlDefaultFunctionName, type SqlDescribedContractSpace, type SqlDiffVerdict, type SqlDiffVerdictInput, type SqlEntityHydrationFactory, type SqlMigrationPlan, type SqlMigrationPlanContractInfo, type SqlMigrationPlanOperation, type SqlMigrationPlanOperationStep, type SqlMigrationPlanOperationTarget, type SqlMigrationPlanner, type SqlMigrationPlannerPlanOptions, type SqlMigrationRunner, type SqlMigrationRunnerErrorCode, type SqlMigrationRunnerExecuteCallbacks, type SqlMigrationRunnerExecuteOptions, type SqlMigrationRunnerFailure, type SqlMigrationRunnerResult, type SqlMigrationRunnerSuccessValue, type SqlPlanTargetDetails, type SqlPlannerConflict, type SqlPlannerConflictKind, type SqlPlannerConflictLocation, type SqlPlannerFailureResult, type SqlPlannerResult, type SqlPlannerSuccessResult, type SqlPslBuildContext, type SqlQuote, type SqlQuotingRules, type SqlSchemaDiffFn, type SqlSchemaDiffInput, type SqlSchemaDiffResult, SqlSchemaVerifierBase, type SqlSlot, type SqlTextSources, type StatementColumn, type StatementPlanningTarget, type StorageTypePlanResult, type StorageTypeVerdict, type StorageTypeVerdictInput, type SubjectStorage, type SuppressionRecord, TABLE_NAME_CASE_CHANGED_CODE, type TableNameCaseGuardTable, type TableRename, type TableRenameByHand, type TableRenameRequest, type TargetMigrationsCapability, UNBOUND_DOMAIN_NAMESPACE_ID, type VerifySqlSchemaByDiffInput, appliedStatementsInOrder, arraysEqual, assembleAuthoringContributions, backfillOfDefaultedField, buildChildRelationField, checkSqlDefaultText, checkSqlExpressionText, classifyDiffSubjectGranularity, classifySqlDiffIssue, columnTakesTemporaryValue, computeSqlDiffVerdict, computeStorageTypeVerdict, contractColumns, contractNamespaceToSchemaIR, contractToSchemaIR, convertedColumnMeta, convertedColumnOf, createMigrationPlan, createSqlTextSources, deriveBackRelationFieldName, deriveRelationFieldName, detectDestructiveChanges, detectTableNameCaseChanges, extractCodecControlHooks, fewestArgumentsCall, fieldEventStorage, fieldOfColumn, fieldRenameStorageEffect, fieldStatementColumns, generatorCallsFor, idGeneratorFunctionBindings, inferColumnTypes, inferRelations, inferredTypeConstructors, isUnfilledSlot, mapDefault, modelRenameStorageEffect, parseContractMarkerRow, partitionCallsByControlPolicy, partitionIssuesByControlPolicy, planFieldEventCalls, planFieldEventOperations, planStatements, plannerFailure, plannerSuccess, pluralize, readColumnDefault, readReportedDefault, requiredColumnMeta, requiredColumnOf, requiredColumnsOfMigration, resolveColumnRenameAgainst, resolveDomainModel, resolveIntrospectedColumnType, resolveStorageTable, resolveTableRenameAgainst, rowsWithoutValueFailure, rowsWithoutValueSummary, runnerFailure, runnerSuccess, slotSource, sqlDefaultFunctions, sqlIntegerArgumentGeneratorFunctions, sqlOfSlot, sqlTargetTypeConstructors, sqlTypeLookupsOf, storageNameOfOperation, subjectsOfCalls, temporalCodecPresetWithPrecision, temporalStringAuthoringPresets, timestampNowRuntimeGenerator, toEnumMemberName, toEnumName, toFieldName, toModelName, unconvertedFieldOf, unknownCallNames, unmatchedColumnRename, unmatchedTableRename, verifySqlSchemaByDiff, writeDataTypeValue, writeDefaultLiteral, writtenTypeArguments };
|
|
17
|
+
export { COLUMN_RENAME_UNMATCHED_CODE, type CallSubjects, type CallWithCompanions, type CodecControlHooks, type ColumnOnOneSide, type ColumnRename, type ColumnRenameRequest, type ColumnTypeOf, type ContractColumn, type ContractColumns, type ContractMarkerRow, type ContractToSchemaIROptions, type ControlPolicySubject, type ConvertedColumn, type CreateSqlMigrationPlanOptions, type DefaultMappingOptions, type DefaultMappingResult, type DefaultResolver, type DefaultResolverColumn, type EnumInfo, type ExecuteRequestLowerer, type FieldEvent, type FieldEventCall, type FieldEventContext, type FieldStatementColumns, type FieldStorageEffect, type GeneratorCallRefusal, type GeneratorCallsResult, INIT_ADDITIVE_POLICY, type InferredRelations, type InferredTypeConstructor, type InferredTypeConstructors, type IntrospectedTable, type Lowerer, SqlMigration as Migration, type MigrationOperationClass, type MigrationOperationPolicy, type MigrationPlan, type MigrationPlanOperation, type MigrationPlanner, type MigrationPlannerConflict, type MigrationPlannerResult, type ModelStorageEffect, type ModelTable, NO_RENAMED_ORIGINS, type NamespaceRename, type NamespaceStatementTarget, type NoTable, type PhaseCallText, type PlanFieldEventOperationsOptions, type PlannedStatements, type PslPrinterOptions, type PslTypeCall, type ReadColumnDefault, type ReadReportedDefault, type RelationField, type ReportedBody, type ReportedLiteralDefault, type RequiredColumn, type RequiredColumnMark, type ResolveIdentityValueInput, type ResolvedDomainModel, type ResolvedStorageTable, type SchemaTables, type SingleOperationCall, SqlContractSerializer, SqlContractSerializerBase, type SqlControlAdapter, type SqlControlExtensionDescriptor, type SqlControlFamilyInstance, type SqlControlTargetDescriptor, type SqlDefaultFunctionName, type SqlDescribedContractSpace, type SqlDiffVerdict, type SqlDiffVerdictInput, type SqlEntityHydrationFactory, type SqlMigrationPlan, type SqlMigrationPlanContractInfo, type SqlMigrationPlanOperation, type SqlMigrationPlanOperationStep, type SqlMigrationPlanOperationTarget, type SqlMigrationPlanner, type SqlMigrationPlannerPlanOptions, type SqlMigrationRunner, type SqlMigrationRunnerErrorCode, type SqlMigrationRunnerExecuteCallbacks, type SqlMigrationRunnerExecuteOptions, type SqlMigrationRunnerFailure, type SqlMigrationRunnerResult, type SqlMigrationRunnerSuccessValue, type SqlPlanTargetDetails, type SqlPlannerConflict, type SqlPlannerConflictKind, type SqlPlannerConflictLocation, type SqlPlannerFailureResult, type SqlPlannerResult, type SqlPlannerSuccessResult, type SqlPslBuildContext, type SqlQuote, type SqlQuotingRules, type SqlSchemaDiffFn, type SqlSchemaDiffInput, type SqlSchemaDiffResult, SqlSchemaVerifierBase, type SqlSlot, type SqlTextSources, type StatementColumn, type StatementOwnership, type StatementPlanningTarget, type StorageTypePlanResult, type StorageTypeVerdict, type StorageTypeVerdictInput, type SubjectStorage, type SuppressionRecord, TABLE_NAME_CASE_CHANGED_CODE, type TableMove, type TableNameCaseGuardTable, type TableRename, type TableRenameByHand, type TableRenameRequest, type TargetMigrationsCapability, type TargetRefusal, UNBOUND_DOMAIN_NAMESPACE_ID, type VerifySqlSchemaByDiffInput, type WorkingSchemaOrigins, appliedStatementsInOrder, arraysEqual, assembleAuthoringContributions, backfillOfDefaultedField, buildChildRelationField, checkSqlDefaultText, checkSqlExpressionText, classifyDiffSubjectGranularity, classifySqlDiffIssue, columnTakesTemporaryValue, computeSqlDiffVerdict, computeStorageTypeVerdict, contractColumns, contractNamespaceToSchemaIR, contractToSchemaIR, convertedColumnMeta, convertedColumnOf, createMigrationPlan, createSqlTextSources, deriveBackRelationFieldName, deriveRelationFieldName, detectDestructiveChanges, detectTableNameCaseChanges, extractCodecControlHooks, fewestArgumentsCall, fieldEventStorage, fieldOfColumn, fieldRenameStorageEffect, fieldStatementColumns, generatorCallsFor, idGeneratorFunctionBindings, inferColumnTypes, inferRelations, inferredTypeConstructors, isUnfilledSlot, mapDefault, modelRenameStorageEffect, otherSpaceDeclaring, parseContractMarkerRow, partitionCallsByControlPolicy, partitionIssuesByControlPolicy, planFieldEventCalls, planFieldEventOperations, planStatements, plannerFailure, plannerSuccess, pluralize, readColumnDefault, readReportedDefault, requiredColumnMeta, requiredColumnOf, requiredColumnsOfMigration, resolveColumnRenameAgainst, resolveDomainModel, resolveIntrospectedColumnType, resolveStorageTable, resolveTableRenameAgainst, rowsWithoutValueFailure, rowsWithoutValueSummary, runnerFailure, runnerSuccess, slotSource, sqlDefaultFunctions, sqlIntegerArgumentGeneratorFunctions, sqlOfSlot, sqlTargetTypeConstructors, sqlTypeLookupsOf, storageNameOfOperation, subjectsOfCalls, temporalCodecPresetWithPrecision, temporalStringAuthoringPresets, timestampNowRuntimeGenerator, toEnumMemberName, toEnumName, toFieldName, toModelName, unconvertedFieldOf, unknownCallNames, unmatchedColumnRename, unmatchedTableRename, verifySqlSchemaByDiff, writeDataTypeValue, writeDefaultLiteral, writtenTypeArguments };
|
package/dist/family.mjs
CHANGED
|
@@ -4,7 +4,7 @@ import { c as sqlIntegerArgumentGeneratorFunctions, l as sqlTargetTypeConstructo
|
|
|
4
4
|
import { a as computeStorageTypeVerdict, c as verifySqlSchemaByDiff, i as computeSqlDiffVerdict, n as classifyDiffSubjectGranularity, r as classifySqlDiffIssue, s as extractCodecControlHooks } from "./schema-verify-C3wbdviw-BifQBCpu.mjs";
|
|
5
5
|
import { n as SqlContractSerializerBase, t as SqlContractSerializer } from "./sql-contract-serializer-sMY3prTx-BkFoHhST.mjs";
|
|
6
6
|
import { n as parseContractMarkerRow } from "./verify-BVk5bjdH-dq5M4iIh.mjs";
|
|
7
|
-
import { A as
|
|
7
|
+
import { $ as unmatchedColumnRename, A as planFieldEventOperations, B as resolveTableRenameAgainst, C as fieldStatementColumns, D as partitionCallsByControlPolicy, E as otherSpaceDeclaring, F as readReportedDefault, G as slotSource, H as rowsWithoutValueSummary, I as requiredColumnMeta, J as sqlTypeLookupsOf, K as sqlDefaultFunctions, L as requiredColumnOf, M as plannerFailure, N as plannerSuccess, O as partitionIssuesByControlPolicy, P as readColumnDefault, Q as unknownCallNames, R as requiredColumnsOfMigration, S as fieldRenameStorageEffect, T as modelRenameStorageEffect, U as runnerFailure, V as rowsWithoutValueFailure, W as runnerSuccess, X as subjectsOfCalls, Y as storageNameOfOperation, Z as unconvertedFieldOf, _ as createSqlTextSources, a as appliedStatementsInOrder, b as fieldEventStorage, c as checkSqlExpressionText, d as contractNamespaceToSchemaIR, et as unmatchedTableRename, f as contractToSchemaIR, g as createMigrationPlan, h as convertedColumnOf, i as TABLE_NAME_CASE_CHANGED_CODE, j as planStatements, k as planFieldEventCalls, l as columnTakesTemporaryValue, m as convertedColumnMeta, n as INIT_ADDITIVE_POLICY, o as assembleAuthoringContributions, q as sqlOfSlot, r as NO_RENAMED_ORIGINS, s as backfillOfDefaultedField, t as COLUMN_RENAME_UNMATCHED_CODE, u as contractColumns, v as detectDestructiveChanges, w as isUnfilledSlot, x as fieldOfColumn, y as detectTableNameCaseChanges, z as resolveColumnRenameAgainst } from "./control-Cih61sJa.mjs";
|
|
8
8
|
import { t as resolveIntrospectedColumnType } from "./control-adapter-DRlEXxsv.mjs";
|
|
9
9
|
import { t as arraysEqual } from "./diff-DZ82XaGR.mjs";
|
|
10
10
|
import { t as SqlSchemaVerifierBase } from "./ir-I-xciGUH.mjs";
|
|
@@ -14,4 +14,4 @@ import { s as toEnumMemberName } from "./psl-names-C3cwe0rg-CsuHOV7E.mjs";
|
|
|
14
14
|
import { a as mapDefault, c as writtenTypeArguments, i as inferredTypeConstructors, n as generatorCallsFor, o as writeDataTypeValue, r as inferColumnTypes, s as writeDefaultLiteral, t as fewestArgumentsCall } from "./psl-build-D5VG40ej.mjs";
|
|
15
15
|
import { a as pluralize, c as toModelName, i as inferRelations, n as deriveBackRelationFieldName, o as toEnumName, r as deriveRelationFieldName, s as toFieldName, t as buildChildRelationField } from "./psl-infer-CaEnF_x3.mjs";
|
|
16
16
|
import { i as timestampNowRuntimeGenerator, n as resolveDomainModel, t as UNBOUND_DOMAIN_NAMESPACE_ID } from "./runtime-Z3nD7ix1.mjs";
|
|
17
|
-
export { COLUMN_RENAME_UNMATCHED_CODE, INIT_ADDITIVE_POLICY, SqlMigration as Migration, SqlContractSerializer, SqlContractSerializerBase, SqlSchemaVerifierBase, TABLE_NAME_CASE_CHANGED_CODE, UNBOUND_DOMAIN_NAMESPACE_ID, appliedStatementsInOrder, arraysEqual, assembleAuthoringContributions, backfillOfDefaultedField, buildChildRelationField, checkSqlDefaultText, checkSqlExpressionText, classifyDiffSubjectGranularity, classifySqlDiffIssue, columnTakesTemporaryValue, computeSqlDiffVerdict, computeStorageTypeVerdict, contractColumns, contractNamespaceToSchemaIR, contractToSchemaIR, convertedColumnMeta, convertedColumnOf, createMigrationPlan, createSqlTextSources, deriveBackRelationFieldName, deriveRelationFieldName, detectDestructiveChanges, detectTableNameCaseChanges, extractCodecControlHooks, fewestArgumentsCall, fieldEventStorage, fieldOfColumn, fieldRenameStorageEffect, fieldStatementColumns, generatorCallsFor, idGeneratorFunctionBindings, inferColumnTypes, inferRelations, inferredTypeConstructors, isUnfilledSlot, mapDefault, modelRenameStorageEffect, parseContractMarkerRow, partitionCallsByControlPolicy, partitionIssuesByControlPolicy, planFieldEventCalls, planFieldEventOperations, planStatements, plannerFailure, plannerSuccess, pluralize, readColumnDefault, readReportedDefault, requiredColumnMeta, requiredColumnOf, requiredColumnsOfMigration, resolveColumnRenameAgainst, resolveDomainModel, resolveIntrospectedColumnType, resolveStorageTable, resolveTableRenameAgainst, rowsWithoutValueFailure, rowsWithoutValueSummary, runnerFailure, runnerSuccess, slotSource, sqlDefaultFunctions, sqlIntegerArgumentGeneratorFunctions, sqlOfSlot, sqlTargetTypeConstructors, sqlTypeLookupsOf, storageNameOfOperation, subjectsOfCalls, temporalCodecPresetWithPrecision, temporalStringAuthoringPresets, timestampNowRuntimeGenerator, toEnumMemberName, toEnumName, toFieldName, toModelName, unconvertedFieldOf, unknownCallNames, unmatchedColumnRename, unmatchedTableRename, verifySqlSchemaByDiff, writeDataTypeValue, writeDefaultLiteral, writtenTypeArguments };
|
|
17
|
+
export { COLUMN_RENAME_UNMATCHED_CODE, INIT_ADDITIVE_POLICY, SqlMigration as Migration, NO_RENAMED_ORIGINS, SqlContractSerializer, SqlContractSerializerBase, SqlSchemaVerifierBase, TABLE_NAME_CASE_CHANGED_CODE, UNBOUND_DOMAIN_NAMESPACE_ID, appliedStatementsInOrder, arraysEqual, assembleAuthoringContributions, backfillOfDefaultedField, buildChildRelationField, checkSqlDefaultText, checkSqlExpressionText, classifyDiffSubjectGranularity, classifySqlDiffIssue, columnTakesTemporaryValue, computeSqlDiffVerdict, computeStorageTypeVerdict, contractColumns, contractNamespaceToSchemaIR, contractToSchemaIR, convertedColumnMeta, convertedColumnOf, createMigrationPlan, createSqlTextSources, deriveBackRelationFieldName, deriveRelationFieldName, detectDestructiveChanges, detectTableNameCaseChanges, extractCodecControlHooks, fewestArgumentsCall, fieldEventStorage, fieldOfColumn, fieldRenameStorageEffect, fieldStatementColumns, generatorCallsFor, idGeneratorFunctionBindings, inferColumnTypes, inferRelations, inferredTypeConstructors, isUnfilledSlot, mapDefault, modelRenameStorageEffect, otherSpaceDeclaring, parseContractMarkerRow, partitionCallsByControlPolicy, partitionIssuesByControlPolicy, planFieldEventCalls, planFieldEventOperations, planStatements, plannerFailure, plannerSuccess, pluralize, readColumnDefault, readReportedDefault, requiredColumnMeta, requiredColumnOf, requiredColumnsOfMigration, resolveColumnRenameAgainst, resolveDomainModel, resolveIntrospectedColumnType, resolveStorageTable, resolveTableRenameAgainst, rowsWithoutValueFailure, rowsWithoutValueSummary, runnerFailure, runnerSuccess, slotSource, sqlDefaultFunctions, sqlIntegerArgumentGeneratorFunctions, sqlOfSlot, sqlTargetTypeConstructors, sqlTypeLookupsOf, storageNameOfOperation, subjectsOfCalls, temporalCodecPresetWithPrecision, temporalStringAuthoringPresets, timestampNowRuntimeGenerator, toEnumMemberName, toEnumName, toFieldName, toModelName, unconvertedFieldOf, unknownCallNames, unmatchedColumnRename, unmatchedTableRename, verifySqlSchemaByDiff, writeDataTypeValue, writeDefaultLiteral, writtenTypeArguments };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h as checkSqlDefaultText } from "./validators-BDuMio1F.mjs";
|
|
2
2
|
import { C as SqlPlannerConflict, D as SqlPlannerResult, E as SqlPlannerFailureResult, O as SqlPlannerSuccessResult, S as SqlPlanTargetDetails, T as SqlPlannerConflictLocation, _ as SqlMigrationRunnerExecuteCallbacks, a as ResolveIdentityValueInput, b as SqlMigrationRunnerResult, c as SqlMigrationPlan, d as SqlMigrationPlanOperationStep, f as SqlMigrationPlanOperationTarget, g as SqlMigrationRunnerErrorCode, h as SqlMigrationRunner, i as FieldEventContext, k as StorageTypePlanResult, l as SqlMigrationPlanContractInfo, m as SqlMigrationPlannerPlanOptions, n as CreateSqlMigrationPlanOptions, o as SqlControlAdapterDescriptor, p as SqlMigrationPlanner, r as FieldEvent, s as SqlControlExtensionDescriptor, t as CodecControlHooks, u as SqlMigrationPlanOperation, v as SqlMigrationRunnerExecuteOptions, w as SqlPlannerConflictKind, x as SqlMigrationRunnerSuccessValue, y as SqlMigrationRunnerFailure } from "./types-Cq6ImLAB-BqOfLAYG.mjs";
|
|
3
3
|
import { n as SqlSchemaDiffInput, r as SqlSchemaDiffResult, t as SqlSchemaDiffFn } from "./schema-differ-DmP74bB8-0ZupRJKb.mjs";
|
|
4
|
-
import { $ as
|
|
5
|
-
export { COLUMN_RENAME_UNMATCHED_CODE, type CallSubjects, type CallWithCompanions, type CodecControlHooks, type ColumnOnOneSide, type ColumnRename, type ColumnRenameRequest, type ContractColumn, type ContractColumns, type ContractToSchemaIROptions, type ControlPolicySubject, type ConvertedColumn, type CreateSqlMigrationPlanOptions, type DefaultResolver, type DefaultResolverColumn, type FieldEvent, type FieldEventCall, type FieldEventContext, type FieldStatementColumns, type FieldStorageEffect, INIT_ADDITIVE_POLICY, type MigrationOperationClass, type MigrationOperationPolicy, type MigrationPlan, type MigrationPlanOperation, type MigrationPlanner, type MigrationPlannerConflict, type MigrationPlannerResult, type ModelStorageEffect, type ModelTable, type NoTable, type PlanFieldEventOperationsOptions, type PlannedStatements, type ReadColumnDefault, type ReadReportedDefault, type ReportedBody, type ReportedLiteralDefault, type RequiredColumn, type RequiredColumnMark, type ResolveIdentityValueInput, type SchemaTables, type SingleOperationCall, type SqlControlAdapterDescriptor, type SqlControlExtensionDescriptor, type SqlControlFamilyInstance, type SqlControlTargetDescriptor, type SqlDefaultFunctionName, type SqlDescribedContractSpace, type SqlMigrationPlan, type SqlMigrationPlanContractInfo, type SqlMigrationPlanOperation, type SqlMigrationPlanOperationStep, type SqlMigrationPlanOperationTarget, type SqlMigrationPlanner, type SqlMigrationPlannerPlanOptions, type SqlMigrationRunner, type SqlMigrationRunnerErrorCode, type SqlMigrationRunnerExecuteCallbacks, type SqlMigrationRunnerExecuteOptions, type SqlMigrationRunnerFailure, type SqlMigrationRunnerResult, type SqlMigrationRunnerSuccessValue, type SqlPlanTargetDetails, type SqlPlannerConflict, type SqlPlannerConflictKind, type SqlPlannerConflictLocation, type SqlPlannerFailureResult, type SqlPlannerResult, type SqlPlannerSuccessResult, type SqlPslBuildContext, type SqlQuote, type SqlQuotingRules, type SqlSchemaDiffFn, type SqlSchemaDiffInput, type SqlSchemaDiffResult, type SqlSlot, type SqlTextSources, type StatementColumn, type StatementPlanningTarget, type StorageTypePlanResult, type SubjectStorage, type SuppressionRecord, TABLE_NAME_CASE_CHANGED_CODE, type TableNameCaseGuardTable, type TableRename, type TableRenameByHand, type TableRenameRequest, type TargetMigrationsCapability, appliedStatementsInOrder, assembleAuthoringContributions, backfillOfDefaultedField, checkSqlDefaultText, checkSqlExpressionText, columnTakesTemporaryValue, contractColumns, contractNamespaceToSchemaIR, contractToSchemaIR, convertedColumnMeta, convertedColumnOf, createMigrationPlan, createSqlTextSources, _default as default, detectDestructiveChanges, detectTableNameCaseChanges, extractCodecControlHooks, fieldEventStorage, fieldOfColumn, fieldRenameStorageEffect, fieldStatementColumns, isUnfilledSlot, modelRenameStorageEffect, partitionCallsByControlPolicy, partitionIssuesByControlPolicy, planFieldEventCalls, planFieldEventOperations, planStatements, plannerFailure, plannerSuccess, readColumnDefault, readReportedDefault, requiredColumnMeta, requiredColumnOf, requiredColumnsOfMigration, resolveColumnRenameAgainst, resolveTableRenameAgainst, rowsWithoutValueFailure, rowsWithoutValueSummary, runnerFailure, runnerSuccess, slotSource, sqlDefaultFunctions, sqlOfSlot, sqlTypeLookupsOf, storageNameOfOperation, subjectsOfCalls, unconvertedFieldOf, unknownCallNames, unmatchedColumnRename, unmatchedTableRename };
|
|
4
|
+
import { $ as SubjectStorage, $t as sqlOfSlot, A as NoTable, At as isUnfilledSlot, B as SingleOperationCall, Bt as readColumnDefault, C as MigrationPlannerConflict, Ct as detectDestructiveChanges, D as NO_RENAMED_ORIGINS, Dt as fieldOfColumn, E as ModelTable, Et as fieldEventStorage, F as ReportedBody, Ft as planFieldEventCalls, G as SqlPslBuildContext, Gt as resolveColumnRenameAgainst, H as SqlControlTargetDescriptor, Ht as requiredColumnMeta, I as ReportedLiteralDefault, It as planFieldEventOperations, J as SqlSlot, Jt as rowsWithoutValueSummary, K as SqlQuote, Kt as resolveTableRenameAgainst, L as RequiredColumn, Lt as planStatements, M as PlannedStatements, Mt as otherSpaceDeclaring, N as ReadColumnDefault, Nt as partitionCallsByControlPolicy, O as NamespaceRename, Ot as fieldRenameStorageEffect, P as ReadReportedDefault, Pt as partitionIssuesByControlPolicy, Q as StatementPlanningTarget, Qt as sqlDefaultFunctions, R as RequiredColumnMark, Rt as plannerFailure, S as MigrationPlanner, St as createSqlTextSources, T as ModelStorageEffect, Tt as extractCodecControlHooks, U as SqlDefaultFunctionName, Ut as requiredColumnOf, V as SqlControlFamilyInstance, Vt as readReportedDefault, W as SqlDescribedContractSpace, Wt as requiredColumnsOfMigration, X as StatementColumn, Xt as runnerSuccess, Y as SqlTextSources, Yt as runnerFailure, Z as StatementOwnership, Zt as slotSource, _ as INIT_ADDITIVE_POLICY, _t as contractNamespaceToSchemaIR, a as ColumnRename, an as unmatchedColumnRename, at as TableRenameByHand, b as MigrationPlan, bt as convertedColumnOf, c as ContractColumns, ct as TargetRefusal, d as ConvertedColumn, dt as appliedStatementsInOrder, en as sqlTypeLookupsOf, et as SuppressionRecord, f as DefaultResolver, ft as assembleAuthoringContributions, g as FieldStorageEffect, gt as contractColumns, h as FieldStatementColumns, ht as columnTakesTemporaryValue, i as ColumnOnOneSide, in as unknownCallNames, it as TableRename, j as PlanFieldEventOperationsOptions, jt as modelRenameStorageEffect, k as NamespaceStatementTarget, kt as fieldStatementColumns, l as ContractToSchemaIROptions, lt as WorkingSchemaOrigins, m as FieldEventCall, mt as checkSqlExpressionText, n as CallSubjects, nn as subjectsOfCalls, nt as TableMove, o as ColumnRenameRequest, on as unmatchedTableRename, ot as TableRenameRequest, p as DefaultResolverColumn, pt as backfillOfDefaultedField, q as SqlQuotingRules, qt as rowsWithoutValueFailure, r as CallWithCompanions, rn as unconvertedFieldOf, rt as TableNameCaseGuardTable, s as ContractColumn, st as TargetMigrationsCapability, t as COLUMN_RENAME_UNMATCHED_CODE, tn as storageNameOfOperation, tt as TABLE_NAME_CASE_CHANGED_CODE, u as ControlPolicySubject, ut as _default, v as MigrationOperationClass, vt as contractToSchemaIR, w as MigrationPlannerResult, wt as detectTableNameCaseChanges, x as MigrationPlanOperation, xt as createMigrationPlan, y as MigrationOperationPolicy, yt as convertedColumnMeta, z as SchemaTables, zt as plannerSuccess } from "./control-Dv1ea79q.mjs";
|
|
5
|
+
export { COLUMN_RENAME_UNMATCHED_CODE, type CallSubjects, type CallWithCompanions, type CodecControlHooks, type ColumnOnOneSide, type ColumnRename, type ColumnRenameRequest, type ContractColumn, type ContractColumns, type ContractToSchemaIROptions, type ControlPolicySubject, type ConvertedColumn, type CreateSqlMigrationPlanOptions, type DefaultResolver, type DefaultResolverColumn, type FieldEvent, type FieldEventCall, type FieldEventContext, type FieldStatementColumns, type FieldStorageEffect, INIT_ADDITIVE_POLICY, type MigrationOperationClass, type MigrationOperationPolicy, type MigrationPlan, type MigrationPlanOperation, type MigrationPlanner, type MigrationPlannerConflict, type MigrationPlannerResult, type ModelStorageEffect, type ModelTable, NO_RENAMED_ORIGINS, type NamespaceRename, type NamespaceStatementTarget, type NoTable, type PlanFieldEventOperationsOptions, type PlannedStatements, type ReadColumnDefault, type ReadReportedDefault, type ReportedBody, type ReportedLiteralDefault, type RequiredColumn, type RequiredColumnMark, type ResolveIdentityValueInput, type SchemaTables, type SingleOperationCall, type SqlControlAdapterDescriptor, type SqlControlExtensionDescriptor, type SqlControlFamilyInstance, type SqlControlTargetDescriptor, type SqlDefaultFunctionName, type SqlDescribedContractSpace, type SqlMigrationPlan, type SqlMigrationPlanContractInfo, type SqlMigrationPlanOperation, type SqlMigrationPlanOperationStep, type SqlMigrationPlanOperationTarget, type SqlMigrationPlanner, type SqlMigrationPlannerPlanOptions, type SqlMigrationRunner, type SqlMigrationRunnerErrorCode, type SqlMigrationRunnerExecuteCallbacks, type SqlMigrationRunnerExecuteOptions, type SqlMigrationRunnerFailure, type SqlMigrationRunnerResult, type SqlMigrationRunnerSuccessValue, type SqlPlanTargetDetails, type SqlPlannerConflict, type SqlPlannerConflictKind, type SqlPlannerConflictLocation, type SqlPlannerFailureResult, type SqlPlannerResult, type SqlPlannerSuccessResult, type SqlPslBuildContext, type SqlQuote, type SqlQuotingRules, type SqlSchemaDiffFn, type SqlSchemaDiffInput, type SqlSchemaDiffResult, type SqlSlot, type SqlTextSources, type StatementColumn, type StatementOwnership, type StatementPlanningTarget, type StorageTypePlanResult, type SubjectStorage, type SuppressionRecord, TABLE_NAME_CASE_CHANGED_CODE, type TableMove, type TableNameCaseGuardTable, type TableRename, type TableRenameByHand, type TableRenameRequest, type TargetMigrationsCapability, type TargetRefusal, type WorkingSchemaOrigins, appliedStatementsInOrder, assembleAuthoringContributions, backfillOfDefaultedField, checkSqlDefaultText, checkSqlExpressionText, columnTakesTemporaryValue, contractColumns, contractNamespaceToSchemaIR, contractToSchemaIR, convertedColumnMeta, convertedColumnOf, createMigrationPlan, createSqlTextSources, _default as default, detectDestructiveChanges, detectTableNameCaseChanges, extractCodecControlHooks, fieldEventStorage, fieldOfColumn, fieldRenameStorageEffect, fieldStatementColumns, isUnfilledSlot, modelRenameStorageEffect, otherSpaceDeclaring, partitionCallsByControlPolicy, partitionIssuesByControlPolicy, planFieldEventCalls, planFieldEventOperations, planStatements, plannerFailure, plannerSuccess, readColumnDefault, readReportedDefault, requiredColumnMeta, requiredColumnOf, requiredColumnsOfMigration, resolveColumnRenameAgainst, resolveTableRenameAgainst, rowsWithoutValueFailure, rowsWithoutValueSummary, runnerFailure, runnerSuccess, slotSource, sqlDefaultFunctions, sqlOfSlot, sqlTypeLookupsOf, storageNameOfOperation, subjectsOfCalls, unconvertedFieldOf, unknownCallNames, unmatchedColumnRename, unmatchedTableRename };
|
package/dist/family__control.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { n as checkSqlDefaultText } from "./validators-xXKEHvnw.mjs";
|
|
2
2
|
import { s as extractCodecControlHooks } from "./schema-verify-C3wbdviw-BifQBCpu.mjs";
|
|
3
|
-
import { A as
|
|
4
|
-
export { COLUMN_RENAME_UNMATCHED_CODE, INIT_ADDITIVE_POLICY, TABLE_NAME_CASE_CHANGED_CODE, appliedStatementsInOrder, assembleAuthoringContributions, backfillOfDefaultedField, checkSqlDefaultText, checkSqlExpressionText, columnTakesTemporaryValue, contractColumns, contractNamespaceToSchemaIR, contractToSchemaIR, convertedColumnMeta, convertedColumnOf, createMigrationPlan, createSqlTextSources, control_default as default, detectDestructiveChanges, detectTableNameCaseChanges, extractCodecControlHooks, fieldEventStorage, fieldOfColumn, fieldRenameStorageEffect, fieldStatementColumns, isUnfilledSlot, modelRenameStorageEffect, partitionCallsByControlPolicy, partitionIssuesByControlPolicy, planFieldEventCalls, planFieldEventOperations, planStatements, plannerFailure, plannerSuccess, readColumnDefault, readReportedDefault, requiredColumnMeta, requiredColumnOf, requiredColumnsOfMigration, resolveColumnRenameAgainst, resolveTableRenameAgainst, rowsWithoutValueFailure, rowsWithoutValueSummary, runnerFailure, runnerSuccess, slotSource, sqlDefaultFunctions, sqlOfSlot, sqlTypeLookupsOf, storageNameOfOperation, subjectsOfCalls, unconvertedFieldOf, unknownCallNames, unmatchedColumnRename, unmatchedTableRename };
|
|
3
|
+
import { $ as unmatchedColumnRename, A as planFieldEventOperations, B as resolveTableRenameAgainst, C as fieldStatementColumns, D as partitionCallsByControlPolicy, E as otherSpaceDeclaring, F as readReportedDefault, G as slotSource, H as rowsWithoutValueSummary, I as requiredColumnMeta, J as sqlTypeLookupsOf, K as sqlDefaultFunctions, L as requiredColumnOf, M as plannerFailure, N as plannerSuccess, O as partitionIssuesByControlPolicy, P as readColumnDefault, Q as unknownCallNames, R as requiredColumnsOfMigration, S as fieldRenameStorageEffect, T as modelRenameStorageEffect, U as runnerFailure, V as rowsWithoutValueFailure, W as runnerSuccess, X as subjectsOfCalls, Y as storageNameOfOperation, Z as unconvertedFieldOf, _ as createSqlTextSources, a as appliedStatementsInOrder, b as fieldEventStorage, c as checkSqlExpressionText, d as contractNamespaceToSchemaIR, et as unmatchedTableRename, f as contractToSchemaIR, g as createMigrationPlan, h as convertedColumnOf, i as TABLE_NAME_CASE_CHANGED_CODE, j as planStatements, k as planFieldEventCalls, l as columnTakesTemporaryValue, m as convertedColumnMeta, n as INIT_ADDITIVE_POLICY, o as assembleAuthoringContributions, p as control_default, q as sqlOfSlot, r as NO_RENAMED_ORIGINS, s as backfillOfDefaultedField, t as COLUMN_RENAME_UNMATCHED_CODE, u as contractColumns, v as detectDestructiveChanges, w as isUnfilledSlot, x as fieldOfColumn, y as detectTableNameCaseChanges, z as resolveColumnRenameAgainst } from "./control-Cih61sJa.mjs";
|
|
4
|
+
export { COLUMN_RENAME_UNMATCHED_CODE, INIT_ADDITIVE_POLICY, NO_RENAMED_ORIGINS, TABLE_NAME_CASE_CHANGED_CODE, appliedStatementsInOrder, assembleAuthoringContributions, backfillOfDefaultedField, checkSqlDefaultText, checkSqlExpressionText, columnTakesTemporaryValue, contractColumns, contractNamespaceToSchemaIR, contractToSchemaIR, convertedColumnMeta, convertedColumnOf, createMigrationPlan, createSqlTextSources, control_default as default, detectDestructiveChanges, detectTableNameCaseChanges, extractCodecControlHooks, fieldEventStorage, fieldOfColumn, fieldRenameStorageEffect, fieldStatementColumns, isUnfilledSlot, modelRenameStorageEffect, otherSpaceDeclaring, partitionCallsByControlPolicy, partitionIssuesByControlPolicy, planFieldEventCalls, planFieldEventOperations, planStatements, plannerFailure, plannerSuccess, readColumnDefault, readReportedDefault, requiredColumnMeta, requiredColumnOf, requiredColumnsOfMigration, resolveColumnRenameAgainst, resolveTableRenameAgainst, rowsWithoutValueFailure, rowsWithoutValueSummary, runnerFailure, runnerSuccess, slotSource, sqlDefaultFunctions, sqlOfSlot, sqlTypeLookupsOf, storageNameOfOperation, subjectsOfCalls, unconvertedFieldOf, unknownCallNames, unmatchedColumnRename, unmatchedTableRename };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma/orm-family-sql",
|
|
3
|
-
"version": "8.0.0-rc.19-dev.
|
|
3
|
+
"version": "8.0.0-rc.19-dev.6",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
"dist"
|
|
10
10
|
],
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@prisma/orm-framework": "8.0.0-rc.19-dev.
|
|
13
|
-
"@prisma/orm-toolchain": "8.0.0-rc.19-dev.
|
|
12
|
+
"@prisma/orm-framework": "8.0.0-rc.19-dev.6",
|
|
13
|
+
"@prisma/orm-toolchain": "8.0.0-rc.19-dev.6",
|
|
14
14
|
"@standard-schema/spec": "^1.1.0",
|
|
15
15
|
"arktype": "^2.2.2",
|
|
16
16
|
"pathe": "^2.0.3",
|
|
@@ -19,21 +19,21 @@
|
|
|
19
19
|
"ts-toolbelt": "^9.6.0"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
|
-
"@internal/family-sql": "8.0.0-rc.19-dev.
|
|
23
|
-
"@internal/sql-builder": "8.0.0-rc.19-dev.
|
|
24
|
-
"@internal/sql-contract": "8.0.0-rc.19-dev.
|
|
25
|
-
"@internal/sql-contract-emitter": "8.0.0-rc.19-dev.
|
|
26
|
-
"@internal/sql-contract-prisma7": "8.0.0-rc.19-dev.
|
|
27
|
-
"@internal/sql-contract-psl": "8.0.0-rc.19-dev.
|
|
28
|
-
"@internal/sql-contract-ts": "8.0.0-rc.19-dev.
|
|
29
|
-
"@internal/sql-errors": "8.0.0-rc.19-dev.
|
|
30
|
-
"@internal/sql-operations": "8.0.0-rc.19-dev.
|
|
31
|
-
"@internal/sql-orm-client": "8.0.0-rc.19-dev.
|
|
32
|
-
"@internal/sql-relational-core": "8.0.0-rc.19-dev.
|
|
33
|
-
"@internal/sql-runtime": "8.0.0-rc.19-dev.
|
|
34
|
-
"@internal/sql-schema-ir": "8.0.0-rc.19-dev.
|
|
35
|
-
"@repo/tsconfig": "8.0.0-rc.19-dev.
|
|
36
|
-
"@repo/tsdown": "8.0.0-rc.19-dev.
|
|
22
|
+
"@internal/family-sql": "8.0.0-rc.19-dev.6",
|
|
23
|
+
"@internal/sql-builder": "8.0.0-rc.19-dev.6",
|
|
24
|
+
"@internal/sql-contract": "8.0.0-rc.19-dev.6",
|
|
25
|
+
"@internal/sql-contract-emitter": "8.0.0-rc.19-dev.6",
|
|
26
|
+
"@internal/sql-contract-prisma7": "8.0.0-rc.19-dev.6",
|
|
27
|
+
"@internal/sql-contract-psl": "8.0.0-rc.19-dev.6",
|
|
28
|
+
"@internal/sql-contract-ts": "8.0.0-rc.19-dev.6",
|
|
29
|
+
"@internal/sql-errors": "8.0.0-rc.19-dev.6",
|
|
30
|
+
"@internal/sql-operations": "8.0.0-rc.19-dev.6",
|
|
31
|
+
"@internal/sql-orm-client": "8.0.0-rc.19-dev.6",
|
|
32
|
+
"@internal/sql-relational-core": "8.0.0-rc.19-dev.6",
|
|
33
|
+
"@internal/sql-runtime": "8.0.0-rc.19-dev.6",
|
|
34
|
+
"@internal/sql-schema-ir": "8.0.0-rc.19-dev.6",
|
|
35
|
+
"@repo/tsconfig": "8.0.0-rc.19-dev.6",
|
|
36
|
+
"@repo/tsdown": "8.0.0-rc.19-dev.6",
|
|
37
37
|
"tsdown": "0.22.14",
|
|
38
38
|
"typescript": "5.9.3"
|
|
39
39
|
},
|