@prisma-next/family-sql 0.5.0-dev.44 → 0.5.0-dev.45

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.
@@ -1,4 +1,4 @@
1
- import { E as SqlPlanTargetDetails, n as AnySqlMigrationOperation } from "./types-gLyIyd2X.mjs";
1
+ import { T as SqlPlanTargetDetails, p as SqlMigrationPlanOperation } from "./types-UI3K69S6.mjs";
2
2
  import { Migration } from "@prisma-next/migration-tools/migration";
3
3
 
4
4
  //#region src/core/sql-migration.d.ts
@@ -6,31 +6,18 @@ import { Migration } from "@prisma-next/migration-tools/migration";
6
6
  /**
7
7
  * Family-owned base class for SQL migrations.
8
8
  *
9
- * Parameterized on the target-details shape because SQL-family targets
10
- * (Postgres, MySQL, SQLite, …) each carry their own `target.details` payload
11
- * on `SqlMigrationPlanOperation`. The type parameter is narrowed to
12
- * `SqlPlanTargetDetails` so every target-specific shape must at minimum
13
- * identify the object being targeted (schema + name); concrete targets
14
- * extend the shape with their own fields.
9
+ * Generic in `TDetails` (family plan target details, e.g. Postgres vs SQLite)
10
+ * and in `TTargetId` (the literal target identifier, e.g. `'postgres'`).
15
11
  *
16
- * Each concrete target-side subclass (e.g. Postgres's
17
- * `TypeScriptRenderablePostgresMigration`) fixes `targetId` to its own
18
- * target-id string literal, since SQL can't hardcode a single `targetId`:
19
- * `targetId` is a target-level identity, not a family-level one, and
20
- * belongs on the subclass.
12
+ * Adapters (Postgres, SQLite, …) extend this with a concrete `TDetails` and
13
+ * a fixed `TTargetId` literal, so the public `Migration<TOp>` base sees the
14
+ * fully concrete operation shape. Target-free code in SQL family / tooling
15
+ * parameterises over `TDetails` (and usually `TTargetId = string`).
21
16
  *
22
- * `familyId` is intentionally not declared here. The SQL family has no
23
- * family-scoped runtime identity today — consumers reach the family via
24
- * target descriptors rather than by family-id lookup, so adding one would
25
- * be purely decorative. Introducing it later is a non-breaking superset.
26
- *
27
- * The operation type parameter is `AnySqlMigrationOperation<TDetails>` — the
28
- * union of DDL-shaped `SqlMigrationPlanOperation` and `DataTransformOperation`
29
- * — so subclasses can return a mix of schema operations (e.g. `setNotNull`,
30
- * `addColumn`) and data-transform operations (e.g. `dataTransform`). Mirrors
31
- * `MongoMigration`'s parameterization on `AnyMongoMigrationOperation`.
17
+ * Keeps target-free contract/runtime features in the family layer while
18
+ * letting adapters own target shape.
32
19
  */
33
- declare abstract class SqlMigration<TDetails extends SqlPlanTargetDetails, TTargetId extends string = string> extends Migration<AnySqlMigrationOperation<TDetails>, 'sql', TTargetId> {
20
+ declare abstract class SqlMigration<TDetails extends SqlPlanTargetDetails, TTargetId extends string = string> extends Migration<SqlMigrationPlanOperation<TDetails>, 'sql', TTargetId> {
34
21
  /**
35
22
  * Sorted, deduplicated invariant ids declared by this migration's
36
23
  * data-transform ops. Derived from `this.operations` so the field remains
@@ -1 +1 @@
1
- {"version":3,"file":"migration.d.mts","names":[],"sources":["../src/core/sql-migration.ts"],"sourcesContent":[],"mappings":";;;;;;;AA+BA;;;;;;;;;;;;;;;;;;;;;;;;;uBAAsB,8BACH,iEAET,UAAU,yBAAyB,kBAAkB"}
1
+ {"version":3,"file":"migration.d.mts","names":[],"sources":["../src/core/sql-migration.ts"],"sourcesContent":[],"mappings":";;;;;;;AAkBA;;;;;;;;;;;;uBAAsB,8BACH,iEAET,UAAU,0BAA0B,kBAAkB"}
@@ -5,29 +5,16 @@ import { Migration } from "@prisma-next/migration-tools/migration";
5
5
  /**
6
6
  * Family-owned base class for SQL migrations.
7
7
  *
8
- * Parameterized on the target-details shape because SQL-family targets
9
- * (Postgres, MySQL, SQLite, …) each carry their own `target.details` payload
10
- * on `SqlMigrationPlanOperation`. The type parameter is narrowed to
11
- * `SqlPlanTargetDetails` so every target-specific shape must at minimum
12
- * identify the object being targeted (schema + name); concrete targets
13
- * extend the shape with their own fields.
8
+ * Generic in `TDetails` (family plan target details, e.g. Postgres vs SQLite)
9
+ * and in `TTargetId` (the literal target identifier, e.g. `'postgres'`).
14
10
  *
15
- * Each concrete target-side subclass (e.g. Postgres's
16
- * `TypeScriptRenderablePostgresMigration`) fixes `targetId` to its own
17
- * target-id string literal, since SQL can't hardcode a single `targetId`:
18
- * `targetId` is a target-level identity, not a family-level one, and
19
- * belongs on the subclass.
11
+ * Adapters (Postgres, SQLite, …) extend this with a concrete `TDetails` and
12
+ * a fixed `TTargetId` literal, so the public `Migration<TOp>` base sees the
13
+ * fully concrete operation shape. Target-free code in SQL family / tooling
14
+ * parameterises over `TDetails` (and usually `TTargetId = string`).
20
15
  *
21
- * `familyId` is intentionally not declared here. The SQL family has no
22
- * family-scoped runtime identity today — consumers reach the family via
23
- * target descriptors rather than by family-id lookup, so adding one would
24
- * be purely decorative. Introducing it later is a non-breaking superset.
25
- *
26
- * The operation type parameter is `AnySqlMigrationOperation<TDetails>` — the
27
- * union of DDL-shaped `SqlMigrationPlanOperation` and `DataTransformOperation`
28
- * — so subclasses can return a mix of schema operations (e.g. `setNotNull`,
29
- * `addColumn`) and data-transform operations (e.g. `dataTransform`). Mirrors
30
- * `MongoMigration`'s parameterization on `AnyMongoMigrationOperation`.
16
+ * Keeps target-free contract/runtime features in the family layer while
17
+ * letting adapters own target shape.
31
18
  */
32
19
  var SqlMigration = class extends Migration {
33
20
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"migration.mjs","names":[],"sources":["../src/core/sql-migration.ts"],"sourcesContent":["import { deriveProvidedInvariants } from '@prisma-next/migration-tools/invariants';\nimport { Migration } from '@prisma-next/migration-tools/migration';\nimport type { AnySqlMigrationOperation, SqlPlanTargetDetails } from './migrations/types';\n\n/**\n * Family-owned base class for SQL migrations.\n *\n * Parameterized on the target-details shape because SQL-family targets\n * (Postgres, MySQL, SQLite, …) each carry their own `target.details` payload\n * on `SqlMigrationPlanOperation`. The type parameter is narrowed to\n * `SqlPlanTargetDetails` so every target-specific shape must at minimum\n * identify the object being targeted (schema + name); concrete targets\n * extend the shape with their own fields.\n *\n * Each concrete target-side subclass (e.g. Postgres's\n * `TypeScriptRenderablePostgresMigration`) fixes `targetId` to its own\n * target-id string literal, since SQL can't hardcode a single `targetId`:\n * `targetId` is a target-level identity, not a family-level one, and\n * belongs on the subclass.\n *\n * `familyId` is intentionally not declared here. The SQL family has no\n * family-scoped runtime identity today consumers reach the family via\n * target descriptors rather than by family-id lookup, so adding one would\n * be purely decorative. Introducing it later is a non-breaking superset.\n *\n * The operation type parameter is `AnySqlMigrationOperation<TDetails>` — the\n * union of DDL-shaped `SqlMigrationPlanOperation` and `DataTransformOperation`\n * so subclasses can return a mix of schema operations (e.g. `setNotNull`,\n * `addColumn`) and data-transform operations (e.g. `dataTransform`). Mirrors\n * `MongoMigration`'s parameterization on `AnyMongoMigrationOperation`.\n */\nexport abstract class SqlMigration<\n TDetails extends SqlPlanTargetDetails,\n TTargetId extends string = string,\n> extends Migration<AnySqlMigrationOperation<TDetails>, 'sql', TTargetId> {\n /**\n * Sorted, deduplicated invariant ids declared by this migration's\n * data-transform ops. Derived from `this.operations` so the field remains\n * consistent with the operation list — planner-built plans (`db init`,\n * `db update`) yield `[]` because they emit no data-transform ops.\n *\n * Required by `SqlMigrationPlan.providedInvariants` (tightened from\n * optional at the SQL-family layer); the framework-level\n * `MigrationPlan.providedInvariants?` stays optional.\n */\n get providedInvariants(): readonly string[] {\n return deriveProvidedInvariants(this.operations);\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+BA,IAAsB,eAAtB,cAGU,UAAgE;;;;;;;;;;;CAWxE,IAAI,qBAAwC;AAC1C,SAAO,yBAAyB,KAAK,WAAW"}
1
+ {"version":3,"file":"migration.mjs","names":[],"sources":["../src/core/sql-migration.ts"],"sourcesContent":["import { deriveProvidedInvariants } from '@prisma-next/migration-tools/invariants';\nimport { Migration } from '@prisma-next/migration-tools/migration';\nimport type { SqlMigrationPlanOperation, SqlPlanTargetDetails } from './migrations/types';\n\n/**\n * Family-owned base class for SQL migrations.\n *\n * Generic in `TDetails` (family plan target details, e.g. Postgres vs SQLite)\n * and in `TTargetId` (the literal target identifier, e.g. `'postgres'`).\n *\n * Adapters (Postgres, SQLite, …) extend this with a concrete `TDetails` and\n * a fixed `TTargetId` literal, so the public `Migration<TOp>` base sees the\n * fully concrete operation shape. Target-free code in SQL family / tooling\n * parameterises over `TDetails` (and usually `TTargetId = string`).\n *\n * Keeps target-free contract/runtime features in the family layer while\n * letting adapters own target shape.\n */\nexport abstract class SqlMigration<\n TDetails extends SqlPlanTargetDetails,\n TTargetId extends string = string,\n> extends Migration<SqlMigrationPlanOperation<TDetails>, 'sql', TTargetId> {\n /**\n * Sorted, deduplicated invariant ids declared by this migration's\n * data-transform ops. Derived from `this.operations` so the field remains\n * consistent with the operation list — planner-built plans (`db init`,\n * `db update`) yield `[]` because they emit no data-transform ops.\n *\n * Required by `SqlMigrationPlan.providedInvariants` (tightened from\n * optional at the SQL-family layer); the framework-level\n * `MigrationPlan.providedInvariants?` stays optional.\n */\n get providedInvariants(): readonly string[] {\n return deriveProvidedInvariants(this.operations);\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAkBA,IAAsB,eAAtB,cAGU,UAAiE;;;;;;;;;;;CAWzE,IAAI,qBAAwC;AAC1C,SAAO,yBAAyB,KAAK,WAAW"}
@@ -1,5 +1,5 @@
1
1
  import { i as verifySqlSchema, n as NativeTypeNormalizer, r as VerifySqlSchemaOptions } from "./verify-sql-schema-_EoNcGIq.mjs";
2
- import { a as ComponentDatabaseDependency } from "./types-gLyIyd2X.mjs";
2
+ import { i as ComponentDatabaseDependency } from "./types-UI3K69S6.mjs";
3
3
  import { SchemaIssue, SchemaVerificationNode } from "@prisma-next/framework-components/control";
4
4
  import { SqlIndexIR, SqlSchemaIR, SqlUniqueIR } from "@prisma-next/sql-schema-ir/types";
5
5
 
@@ -1,4 +1,4 @@
1
- import { ControlAdapterDescriptor, ControlDriverInstance, ControlExtensionDescriptor, ControlFamilyInstance, ControlStack, DataTransformOperation, MigratableTargetDescriptor, MigrationOperationPolicy, MigrationPlan, MigrationPlanOperation, MigrationPlannerConflict, MigrationPlannerFailureResult, MigrationPlannerSuccessResult, MigrationRunnerExecutionChecks, MigrationRunnerFailure, MigrationRunnerSuccessValue, OperationContext, OperationPreview, OperationPreviewCapable, PslContractInferCapable, SchemaIssue, SchemaViewCapable, SignDatabaseResult, VerifyDatabaseResult, VerifyDatabaseSchemaResult } from "@prisma-next/framework-components/control";
1
+ import { ControlAdapterDescriptor, ControlDriverInstance, ControlExtensionDescriptor, ControlFamilyInstance, ControlStack, MigratableTargetDescriptor, MigrationOperationPolicy, MigrationPlan, MigrationPlanOperation, MigrationPlannerConflict, MigrationPlannerFailureResult, MigrationPlannerSuccessResult, MigrationRunnerExecutionChecks, MigrationRunnerFailure, MigrationRunnerSuccessValue, OperationContext, OperationPreview, OperationPreviewCapable, PslContractInferCapable, SchemaIssue, SchemaViewCapable, SignDatabaseResult, VerifyDatabaseResult, VerifyDatabaseSchemaResult } from "@prisma-next/framework-components/control";
2
2
  import { Result } from "@prisma-next/utils/result";
3
3
  import { Contract } from "@prisma-next/contract/types";
4
4
  import { SqlSchemaIR } from "@prisma-next/sql-schema-ir/types";
@@ -146,6 +146,15 @@ interface SqlControlAdapterDescriptor<TTargetId extends string> extends ControlA
146
146
  interface SqlMigrationPlanOperationStep {
147
147
  readonly description: string;
148
148
  readonly sql: string;
149
+ /**
150
+ * Optional parameter values bound at execution time. The runner forwards
151
+ * these to `driver.query(sql, params ?? [])`, so step authors can use
152
+ * placeholder syntax (`$1`, `$2`, …) instead of inlining literals into
153
+ * the SQL string. Reuses the driver's parameter binder rather than
154
+ * rolling per-target literal serialization for every type the planner
155
+ * may emit.
156
+ */
157
+ readonly params?: readonly unknown[];
149
158
  readonly meta?: AnyRecord;
150
159
  }
151
160
  /**
@@ -171,16 +180,6 @@ interface SqlMigrationPlanOperation<TTargetDetails> extends MigrationPlanOperati
171
180
  readonly postcheck: readonly SqlMigrationPlanOperationStep[];
172
181
  readonly meta?: AnyRecord;
173
182
  }
174
- /**
175
- * Union of all operation shapes a SQL-family migration may emit: schema-facing
176
- * `SqlMigrationPlanOperation`s and family-agnostic `DataTransformOperation`s.
177
- *
178
- * Mirrors `AnyMongoMigrationOperation` in shape — the runner already handles
179
- * both branches via `isDataTransformOperation`, and authored `migration.ts`
180
- * files must be able to intermix `dataTransform(endContract, …)` calls with
181
- * DDL factory calls (e.g. `setNotNull(…)`) in a single `operations` array.
182
- */
183
- type AnySqlMigrationOperation<TTargetDetails> = SqlMigrationPlanOperation<TTargetDetails> | DataTransformOperation;
184
183
  interface SqlMigrationPlanContractInfo {
185
184
  readonly storageHash: string;
186
185
  readonly profileHash?: string;
@@ -322,5 +321,5 @@ interface CreateSqlMigrationPlanOptions<TTargetDetails> {
322
321
  readonly meta?: AnyRecord;
323
322
  }
324
323
  //#endregion
325
- export { SqlPlannerFailureResult as A, SqlMigrationRunnerFailure as C, SqlPlannerConflict as D, SqlPlanTargetDetails as E, isDatabaseDependencyProvider as F, SchemaVerifyOptions as I, SqlControlFamilyInstance as L, SqlPlannerSuccessResult as M, StorageTypePlanResult as N, SqlPlannerConflictKind as O, collectInitDependencies as P, SqlMigrationRunnerExecuteOptions as S, SqlMigrationRunnerSuccessValue as T, SqlMigrationPlanner as _, ComponentDatabaseDependency as a, SqlMigrationRunnerErrorCode as b, ResolveIdentityValueInput as c, SqlControlTargetDescriptor as d, SqlMigrationPlan as f, SqlMigrationPlanOperationTarget as g, SqlMigrationPlanOperationStep as h, ComponentDatabaseDependencies as i, SqlPlannerResult as j, SqlPlannerConflictLocation as k, SqlControlAdapterDescriptor as l, SqlMigrationPlanOperation as m, AnySqlMigrationOperation as n, CreateSqlMigrationPlanOptions as o, SqlMigrationPlanContractInfo as p, CodecControlHooks as r, ExpandNativeTypeInput as s, AnyRecord as t, SqlControlExtensionDescriptor as u, SqlMigrationPlannerPlanOptions as v, SqlMigrationRunnerResult as w, SqlMigrationRunnerExecuteCallbacks as x, SqlMigrationRunner as y };
326
- //# sourceMappingURL=types-gLyIyd2X.d.mts.map
324
+ export { SqlPlannerResult as A, SqlMigrationRunnerResult as C, SqlPlannerConflictKind as D, SqlPlannerConflict as E, SchemaVerifyOptions as F, SqlControlFamilyInstance as I, StorageTypePlanResult as M, collectInitDependencies as N, SqlPlannerConflictLocation as O, isDatabaseDependencyProvider as P, SqlMigrationRunnerFailure as S, SqlPlanTargetDetails as T, SqlMigrationPlannerPlanOptions as _, CreateSqlMigrationPlanOptions as a, SqlMigrationRunnerExecuteCallbacks as b, SqlControlAdapterDescriptor as c, SqlMigrationPlan as d, SqlMigrationPlanContractInfo as f, SqlMigrationPlanner as g, SqlMigrationPlanOperationTarget as h, ComponentDatabaseDependency as i, SqlPlannerSuccessResult as j, SqlPlannerFailureResult as k, SqlControlExtensionDescriptor as l, SqlMigrationPlanOperationStep as m, CodecControlHooks as n, ExpandNativeTypeInput as o, SqlMigrationPlanOperation as p, ComponentDatabaseDependencies as r, ResolveIdentityValueInput as s, AnyRecord as t, SqlControlTargetDescriptor as u, SqlMigrationRunner as v, SqlMigrationRunnerSuccessValue as w, SqlMigrationRunnerExecuteOptions as x, SqlMigrationRunnerErrorCode as y };
325
+ //# sourceMappingURL=types-UI3K69S6.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types-UI3K69S6.d.mts","names":[],"sources":["../src/core/control-instance.ts","../src/core/migrations/types.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;;UAgKU,eAAA;;;;;AA3HsE;AA2HvD,KAOpB,uBAAA,GAA0B,GAAH,CAAA,MAAA,EAAe,eAAA,CAAZ;AAAG,UAExB,sBAAA,CAAsB;EACW,SAAA,gBAAA,EAAd,aAAc,CAAA,eAAA,CAAA;EAAd,SAAA,oBAAA,EACI,aADJ,CACkB,eADlB,CAAA;EACkB,SAAA,YAAA,EACtB,aADsB,CAAA,MAAA,CAAA;EAAd,SAAA,oBAAA,EAEA,uBAFA;;AAEA,UAGhB,mBAAA,CAHgB;EAAuB,SAA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