@prisma-next/family-sql 0.6.0-dev.1 → 0.6.0-dev.11
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.d.mts +1 -1
- package/dist/control.mjs +5 -2
- package/dist/control.mjs.map +1 -1
- package/dist/migration.d.mts +1 -1
- package/dist/schema-verify.mjs +1 -1
- package/dist/{types-mhjAPuMn.d.mts → types-Da-eOg20.d.mts} +3 -1
- package/dist/types-Da-eOg20.d.mts.map +1 -0
- package/dist/verify-sql-schema-CPHiuYHR.d.mts.map +1 -1
- package/dist/{verify-sql-schema-1tDh3x5x.mjs → verify-sql-schema-DV-UsTG9.mjs} +5 -19
- package/dist/verify-sql-schema-DV-UsTG9.mjs.map +1 -0
- package/package.json +20 -20
- package/src/core/control-instance.ts +14 -1
- package/src/core/schema-verify/verify-sql-schema.ts +4 -21
- package/dist/types-mhjAPuMn.d.mts.map +0 -1
- package/dist/verify-sql-schema-1tDh3x5x.mjs.map +0 -1
package/dist/control.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as SqlPlannerConflictKind, C as SqlMigrationRunnerExecuteCallbacks, D as SqlMigrationRunnerSuccessValue, E as SqlMigrationRunnerResult, F as StorageTypePlanResult, I as SchemaVerifyOptions, L as SqlControlFamilyInstance, M as SqlPlannerFailureResult, N as SqlPlannerResult, O as SqlPlanTargetDetails, P as SqlPlannerSuccessResult, S as SqlMigrationRunnerErrorCode, T as SqlMigrationRunnerFailure, _ as SqlMigrationPlanOperationStep, a as FieldEvent, b as SqlMigrationPlannerPlanOptions, c as MultiSpaceRunnerResult, d as SqlControlAdapterDescriptor, f as SqlControlExtensionDescriptor, g as SqlMigrationPlanOperation, h as SqlMigrationPlanContractInfo, i as ExpandNativeTypeInput, j as SqlPlannerConflictLocation, k as SqlPlannerConflict, l as MultiSpaceRunnerSuccessValue, m as SqlMigrationPlan, n as CodecControlHooks, o as FieldEventContext, p as SqlControlTargetDescriptor, r as CreateSqlMigrationPlanOptions, s as MultiSpaceRunnerFailure, t as AnyRecord, u as ResolveIdentityValueInput, v as SqlMigrationPlanOperationTarget, w as SqlMigrationRunnerExecuteOptions, x as SqlMigrationRunner, y as SqlMigrationPlanner } from "./types-
|
|
1
|
+
import { A as SqlPlannerConflictKind, C as SqlMigrationRunnerExecuteCallbacks, D as SqlMigrationRunnerSuccessValue, E as SqlMigrationRunnerResult, F as StorageTypePlanResult, I as SchemaVerifyOptions, L as SqlControlFamilyInstance, M as SqlPlannerFailureResult, N as SqlPlannerResult, O as SqlPlanTargetDetails, P as SqlPlannerSuccessResult, S as SqlMigrationRunnerErrorCode, T as SqlMigrationRunnerFailure, _ as SqlMigrationPlanOperationStep, a as FieldEvent, b as SqlMigrationPlannerPlanOptions, c as MultiSpaceRunnerResult, d as SqlControlAdapterDescriptor, f as SqlControlExtensionDescriptor, g as SqlMigrationPlanOperation, h as SqlMigrationPlanContractInfo, i as ExpandNativeTypeInput, j as SqlPlannerConflictLocation, k as SqlPlannerConflict, l as MultiSpaceRunnerSuccessValue, m as SqlMigrationPlan, n as CodecControlHooks, o as FieldEventContext, p as SqlControlTargetDescriptor, r as CreateSqlMigrationPlanOptions, s as MultiSpaceRunnerFailure, t as AnyRecord, u as ResolveIdentityValueInput, v as SqlMigrationPlanOperationTarget, w as SqlMigrationRunnerExecuteOptions, x as SqlMigrationRunner, y as SqlMigrationPlanner } from "./types-Da-eOg20.mjs";
|
|
2
2
|
import { ControlFamilyDescriptor, ControlStack, MigrationOperationClass, MigrationOperationPolicy, MigrationOperationPolicy as MigrationOperationPolicy$1, MigrationPlan, MigrationPlanOperation, MigrationPlanner, MigrationPlannerConflict, MigrationPlannerConflict as MigrationPlannerConflict$1, MigrationPlannerResult, MutationDefaultGeneratorDescriptor, OpFactoryCall, TargetMigrationsCapability, assembleAuthoringContributions } from "@prisma-next/framework-components/control";
|
|
3
3
|
import { NotOk, Ok } from "@prisma-next/utils/result";
|
|
4
4
|
import { ColumnDefault, Contract } from "@prisma-next/contract/types";
|
package/dist/control.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as sqlFamilyAuthoringFieldPresets, t as sqlFamilyAuthoringTypes } from "./authoring-type-constructors-F4JpCJl7.mjs";
|
|
2
|
-
import { a as extractCodecControlHooks, t as verifySqlSchema } from "./verify-sql-schema-
|
|
2
|
+
import { a as extractCodecControlHooks, t as verifySqlSchema } from "./verify-sql-schema-DV-UsTG9.mjs";
|
|
3
3
|
import { t as collectSupportedCodecTypeIds } from "./verify-pRYxnpiG.mjs";
|
|
4
4
|
import { n as temporalAuthoringPresets, r as timestampNowControlDescriptor } from "./timestamp-now-generator-BWp8S2sa.mjs";
|
|
5
5
|
import { sqlEmission } from "@prisma-next/sql-contract-emitter";
|
|
@@ -1048,7 +1048,7 @@ function createVerifyResult(options) {
|
|
|
1048
1048
|
return result;
|
|
1049
1049
|
}
|
|
1050
1050
|
function isSqlControlAdapter(value) {
|
|
1051
|
-
return typeof value === "object" && value !== null && "introspect" in value && typeof value.introspect === "function" && "readMarker" in value && typeof value.readMarker === "function" && "readAllMarkers" in value && typeof value.readAllMarkers === "function";
|
|
1051
|
+
return typeof value === "object" && value !== null && "introspect" in value && typeof value.introspect === "function" && "readMarker" in value && typeof value.readMarker === "function" && "readAllMarkers" in value && typeof value.readAllMarkers === "function" && "lower" in value && typeof value.lower === "function";
|
|
1052
1052
|
}
|
|
1053
1053
|
function buildSqlTypeMetadataRegistry(options) {
|
|
1054
1054
|
const { target, adapter, extensionPacks: extensions } = options;
|
|
@@ -1306,6 +1306,9 @@ function createSqlFamilyInstance(stack) {
|
|
|
1306
1306
|
inferPslContract(schemaIR) {
|
|
1307
1307
|
return sqlSchemaIrToPslAst(schemaIR);
|
|
1308
1308
|
},
|
|
1309
|
+
lowerAst(ast, context) {
|
|
1310
|
+
return getControlAdapter().lower(ast, context);
|
|
1311
|
+
},
|
|
1309
1312
|
toOperationPreview(operations) {
|
|
1310
1313
|
return sqlOperationsToPreview(operations);
|
|
1311
1314
|
},
|