@prisma/config 6.6.0-dev.90 → 6.6.0-dev.92

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/index.d.ts CHANGED
@@ -93,6 +93,55 @@ declare interface DriverAdapterFactory<Query, Result> extends AdapterInfo {
93
93
 
94
94
  declare type EnvVars = Record<string, string | undefined>;
95
95
 
96
+ declare type Error_2 = {
97
+ kind: 'GenericJs';
98
+ id: number;
99
+ } | {
100
+ kind: 'UnsupportedNativeDataType';
101
+ type: string;
102
+ } | {
103
+ kind: 'InvalidIsolationLevel';
104
+ level: string;
105
+ } | {
106
+ kind: 'postgres';
107
+ code: string;
108
+ severity: string;
109
+ message: string;
110
+ detail: string | undefined;
111
+ column: string | undefined;
112
+ hint: string | undefined;
113
+ } | {
114
+ kind: 'mysql';
115
+ code: number;
116
+ message: string;
117
+ state: string;
118
+ } | {
119
+ kind: 'sqlite';
120
+ /**
121
+ * Sqlite extended error code: https://www.sqlite.org/rescode.html
122
+ */
123
+ extendedCode: number;
124
+ message: string;
125
+ };
126
+
127
+ declare type ErrorCapturingFunction<T> = T extends (...args: infer A) => Promise<infer R> ? (...args: A) => Promise<Result<ErrorCapturingInterface<R>>> : T extends (...args: infer A) => infer R ? (...args: A) => Result<ErrorCapturingInterface<R>> : T;
128
+
129
+ declare type ErrorCapturingInterface<T> = {
130
+ [K in keyof T]: ErrorCapturingFunction<T[K]>;
131
+ };
132
+
133
+ declare interface ErrorCapturingSqlMigrationAwareDriverAdapterFactory extends ErrorCapturingInterface<SqlMigrationAwareDriverAdapterFactory> {
134
+ readonly errorRegistry: ErrorRegistry;
135
+ }
136
+
137
+ declare type ErrorRecord = {
138
+ error: unknown;
139
+ };
140
+
141
+ declare interface ErrorRegistry {
142
+ consumeError(id: number): ErrorRecord | undefined;
143
+ }
144
+
96
145
  declare type IsolationLevel = 'READ UNCOMMITTED' | 'READ COMMITTED' | 'REPEATABLE READ' | 'SNAPSHOT' | 'SERIALIZABLE';
97
146
 
98
147
  /**
@@ -178,7 +227,7 @@ declare type _PrismaConfigInternal<Env extends EnvVars = never> = {
178
227
  /**
179
228
  * The configuration for Prisma Migrate + Introspect
180
229
  */
181
- migrate?: PrismaMigrateConfigShape<Env>;
230
+ migrate?: PrismaMigrateConfigInternalShape<Env>;
182
231
  /**
183
232
  * The path from where the config was loaded.
184
233
  * It's set to `null` if no config file was found and only default config is applied.
@@ -186,12 +235,16 @@ declare type _PrismaConfigInternal<Env extends EnvVars = never> = {
186
235
  loadedFromFile: string | null;
187
236
  };
188
237
 
238
+ declare type PrismaMigrateConfigInternalShape<Env extends EnvVars = never> = {
239
+ adapter: (env: Env) => Promise<ErrorCapturingSqlMigrationAwareDriverAdapterFactory>;
240
+ };
241
+
189
242
  declare type PrismaMigrateConfigShape<Env extends EnvVars = never> = {
190
243
  adapter: (env: Env) => Promise<SqlMigrationAwareDriverAdapterFactory>;
191
244
  };
192
245
 
193
246
  declare type PrismaStudioConfigShape<Env extends EnvVars = never> = {
194
- adapter: (env: Env) => Promise<SqlDriverAdapter>;
247
+ adapter: (env: Env) => Promise<SqlMigrationAwareDriverAdapterFactory>;
195
248
  };
196
249
 
197
250
  declare type Provider = 'mysql' | 'postgres' | 'sqlite';
@@ -207,6 +260,17 @@ declare interface Queryable<Query, Result> extends AdapterInfo {
207
260
  executeRaw(params: Query): Promise<number>;
208
261
  }
209
262
 
263
+ declare type Result<T> = {
264
+ map<U>(fn: (value: T) => U): Result<U>;
265
+ flatMap<U>(fn: (value: T) => Result<U>): Result<U>;
266
+ } & ({
267
+ readonly ok: true;
268
+ readonly value: T;
269
+ } | {
270
+ readonly ok: false;
271
+ readonly error: Error_2;
272
+ });
273
+
210
274
  declare interface SqlDriverAdapter extends SqlQueryable {
211
275
  /**
212
276
  * Execute multiple SQL statements separated by semicolon.
package/dist/index.js CHANGED
@@ -222,6 +222,129 @@ function safeStringify(value3, indent = 2) {
222
222
  );
223
223
  }
224
224
 
225
+ // ../driver-adapter-utils/dist/index.mjs
226
+ function isDriverAdapterError(error) {
227
+ return error["name"] === "DriverAdapterError" && typeof error["cause"] === "object";
228
+ }
229
+ function ok(value3) {
230
+ return {
231
+ ok: true,
232
+ value: value3,
233
+ map(fn) {
234
+ return ok(fn(value3));
235
+ },
236
+ flatMap(fn) {
237
+ return fn(value3);
238
+ }
239
+ };
240
+ }
241
+ function err(error) {
242
+ return {
243
+ ok: false,
244
+ error,
245
+ map() {
246
+ return err(error);
247
+ },
248
+ flatMap() {
249
+ return err(error);
250
+ }
251
+ };
252
+ }
253
+ var ErrorRegistryInternal = class {
254
+ registeredErrors = [];
255
+ consumeError(id) {
256
+ return this.registeredErrors[id];
257
+ }
258
+ registerNewError(error) {
259
+ let i = 0;
260
+ while (this.registeredErrors[i] !== void 0) {
261
+ i++;
262
+ }
263
+ this.registeredErrors[i] = { error };
264
+ return i;
265
+ }
266
+ };
267
+ var bindMigrationAwareSqlAdapterFactory = (adapterFactory) => {
268
+ const errorRegistry = new ErrorRegistryInternal();
269
+ const boundFactory = {
270
+ adapterName: adapterFactory.adapterName,
271
+ provider: adapterFactory.provider,
272
+ errorRegistry,
273
+ connect: async (...args2) => {
274
+ const ctx = await wrapAsync(errorRegistry, adapterFactory.connect.bind(adapterFactory))(...args2);
275
+ return ctx.map((ctx2) => bindAdapter(ctx2, errorRegistry));
276
+ },
277
+ connectToShadowDb: async (...args2) => {
278
+ const ctx = await wrapAsync(errorRegistry, adapterFactory.connectToShadowDb.bind(adapterFactory))(...args2);
279
+ return ctx.map((ctx2) => bindAdapter(ctx2, errorRegistry));
280
+ }
281
+ };
282
+ return boundFactory;
283
+ };
284
+ var bindAdapter = (adapter4, errorRegistry = new ErrorRegistryInternal()) => {
285
+ const boundAdapter = {
286
+ adapterName: adapter4.adapterName,
287
+ errorRegistry,
288
+ queryRaw: wrapAsync(errorRegistry, adapter4.queryRaw.bind(adapter4)),
289
+ executeRaw: wrapAsync(errorRegistry, adapter4.executeRaw.bind(adapter4)),
290
+ executeScript: wrapAsync(errorRegistry, adapter4.executeScript.bind(adapter4)),
291
+ dispose: wrapAsync(errorRegistry, adapter4.dispose.bind(adapter4)),
292
+ provider: adapter4.provider,
293
+ startTransaction: async (...args2) => {
294
+ const ctx = await wrapAsync(errorRegistry, adapter4.startTransaction.bind(adapter4))(...args2);
295
+ return ctx.map((ctx2) => bindTransaction(errorRegistry, ctx2));
296
+ }
297
+ };
298
+ if (adapter4.getConnectionInfo) {
299
+ boundAdapter.getConnectionInfo = wrapSync(errorRegistry, adapter4.getConnectionInfo.bind(adapter4));
300
+ }
301
+ return boundAdapter;
302
+ };
303
+ var bindTransaction = (errorRegistry, transaction) => {
304
+ return {
305
+ adapterName: transaction.adapterName,
306
+ provider: transaction.provider,
307
+ options: transaction.options,
308
+ queryRaw: wrapAsync(errorRegistry, transaction.queryRaw.bind(transaction)),
309
+ executeRaw: wrapAsync(errorRegistry, transaction.executeRaw.bind(transaction)),
310
+ commit: wrapAsync(errorRegistry, transaction.commit.bind(transaction)),
311
+ rollback: wrapAsync(errorRegistry, transaction.rollback.bind(transaction))
312
+ };
313
+ };
314
+ function wrapAsync(registry, fn) {
315
+ return async (...args2) => {
316
+ try {
317
+ return ok(await fn(...args2));
318
+ } catch (error) {
319
+ if (isDriverAdapterError(error)) {
320
+ return err(error.cause);
321
+ }
322
+ const id = registry.registerNewError(error);
323
+ return err({ kind: "GenericJs", id });
324
+ }
325
+ };
326
+ }
327
+ function wrapSync(registry, fn) {
328
+ return (...args2) => {
329
+ try {
330
+ return ok(fn(...args2));
331
+ } catch (error) {
332
+ if (isDriverAdapterError(error)) {
333
+ return err(error.cause);
334
+ }
335
+ const id = registry.registerNewError(error);
336
+ return err({ kind: "GenericJs", id });
337
+ }
338
+ };
339
+ }
340
+ var mockAdapterErrors = {
341
+ queryRaw: new Error("Not implemented: queryRaw"),
342
+ executeRaw: new Error("Not implemented: executeRaw"),
343
+ startTransaction: new Error("Not implemented: startTransaction"),
344
+ executeScript: new Error("Not implemented: executeScript"),
345
+ dispose: new Error("Not implemented: dispose")
346
+ };
347
+
225
348
  // ../../node_modules/.pnpm/effect@3.12.10/node_modules/effect/dist/esm/Function.js
226
349
  var isFunction = (input) => typeof input === "function";
227
350
  var dual = function(arity, body) {
@@ -1564,8 +1687,8 @@ var PreconditionFailure = class _PreconditionFailure extends Error {
1564
1687
  this.interruptExecution = interruptExecution;
1565
1688
  this.footprint = _PreconditionFailure.SharedFootPrint;
1566
1689
  }
1567
- static isFailure(err) {
1568
- return err != null && err.footprint === _PreconditionFailure.SharedFootPrint;
1690
+ static isFailure(err2) {
1691
+ return err2 != null && err2.footprint === _PreconditionFailure.SharedFootPrint;
1569
1692
  }
1570
1693
  };
1571
1694
  PreconditionFailure.SharedFootPrint = Symbol.for("fast-check/PreconditionFailure");
@@ -1930,7 +2053,7 @@ var ApplySymbol = Symbol("apply");
1930
2053
  function safeExtractApply(f) {
1931
2054
  try {
1932
2055
  return f.apply;
1933
- } catch (err) {
2056
+ } catch (err2) {
1934
2057
  return void 0;
1935
2058
  }
1936
2059
  }
@@ -1968,42 +2091,42 @@ var untouchedEvery = Array.prototype.every;
1968
2091
  function extractIndexOf(instance) {
1969
2092
  try {
1970
2093
  return instance.indexOf;
1971
- } catch (err) {
2094
+ } catch (err2) {
1972
2095
  return void 0;
1973
2096
  }
1974
2097
  }
1975
2098
  function extractJoin(instance) {
1976
2099
  try {
1977
2100
  return instance.join;
1978
- } catch (err) {
2101
+ } catch (err2) {
1979
2102
  return void 0;
1980
2103
  }
1981
2104
  }
1982
2105
  function extractMap(instance) {
1983
2106
  try {
1984
2107
  return instance.map;
1985
- } catch (err) {
2108
+ } catch (err2) {
1986
2109
  return void 0;
1987
2110
  }
1988
2111
  }
1989
2112
  function extractFilter(instance) {
1990
2113
  try {
1991
2114
  return instance.filter;
1992
- } catch (err) {
2115
+ } catch (err2) {
1993
2116
  return void 0;
1994
2117
  }
1995
2118
  }
1996
2119
  function extractPush(instance) {
1997
2120
  try {
1998
2121
  return instance.push;
1999
- } catch (err) {
2122
+ } catch (err2) {
2000
2123
  return void 0;
2001
2124
  }
2002
2125
  }
2003
2126
  function extractSlice(instance) {
2004
2127
  try {
2005
2128
  return instance.slice;
2006
- } catch (err) {
2129
+ } catch (err2) {
2007
2130
  return void 0;
2008
2131
  }
2009
2132
  }
@@ -2048,14 +2171,14 @@ var untouchedToISOString = Date.prototype.toISOString;
2048
2171
  function extractGetTime(instance) {
2049
2172
  try {
2050
2173
  return instance.getTime;
2051
- } catch (err) {
2174
+ } catch (err2) {
2052
2175
  return void 0;
2053
2176
  }
2054
2177
  }
2055
2178
  function extractToISOString(instance) {
2056
2179
  try {
2057
2180
  return instance.toISOString;
2058
- } catch (err) {
2181
+ } catch (err2) {
2059
2182
  return void 0;
2060
2183
  }
2061
2184
  }
@@ -2080,14 +2203,14 @@ var untouchedMapGet = Map.prototype.get;
2080
2203
  function extractMapSet(instance) {
2081
2204
  try {
2082
2205
  return instance.set;
2083
- } catch (err) {
2206
+ } catch (err2) {
2084
2207
  return void 0;
2085
2208
  }
2086
2209
  }
2087
2210
  function extractMapGet(instance) {
2088
2211
  try {
2089
2212
  return instance.get;
2090
- } catch (err) {
2213
+ } catch (err2) {
2091
2214
  return void 0;
2092
2215
  }
2093
2216
  }
@@ -2116,14 +2239,14 @@ var untouchedReplace = String.prototype.replace;
2116
2239
  function extractSplit(instance) {
2117
2240
  try {
2118
2241
  return instance.split;
2119
- } catch (err) {
2242
+ } catch (err2) {
2120
2243
  return void 0;
2121
2244
  }
2122
2245
  }
2123
2246
  function extractCharCodeAt(instance) {
2124
2247
  try {
2125
2248
  return instance.charCodeAt;
2126
- } catch (err) {
2249
+ } catch (err2) {
2127
2250
  return void 0;
2128
2251
  }
2129
2252
  }
@@ -2143,7 +2266,7 @@ var untouchedNumberToString = Number.prototype.toString;
2143
2266
  function extractNumberToString(instance) {
2144
2267
  try {
2145
2268
  return instance.toString;
2146
- } catch (err) {
2269
+ } catch (err2) {
2147
2270
  return void 0;
2148
2271
  }
2149
2272
  }
@@ -2252,13 +2375,13 @@ var AsyncProperty = class _AsyncProperty {
2252
2375
  error: new SError("Property failed by returning false"),
2253
2376
  errorMessage: "Error: Property failed by returning false"
2254
2377
  };
2255
- } catch (err) {
2256
- if (PreconditionFailure.isFailure(err))
2257
- return err;
2258
- if (err instanceof SError && err.stack) {
2259
- return { error: err, errorMessage: err.stack };
2378
+ } catch (err2) {
2379
+ if (PreconditionFailure.isFailure(err2))
2380
+ return err2;
2381
+ if (err2 instanceof SError && err2.stack) {
2382
+ return { error: err2, errorMessage: err2.stack };
2260
2383
  }
2261
- return { error: err, errorMessage: SString(err) };
2384
+ return { error: err2, errorMessage: SString(err2) };
2262
2385
  } finally {
2263
2386
  if (!dontRunHook) {
2264
2387
  await this.afterEachHook();
@@ -2324,13 +2447,13 @@ var Property = class _Property {
2324
2447
  error: new SError("Property failed by returning false"),
2325
2448
  errorMessage: "Error: Property failed by returning false"
2326
2449
  };
2327
- } catch (err) {
2328
- if (PreconditionFailure.isFailure(err))
2329
- return err;
2330
- if (err instanceof SError && err.stack) {
2331
- return { error: err, errorMessage: err.stack };
2450
+ } catch (err2) {
2451
+ if (PreconditionFailure.isFailure(err2))
2452
+ return err2;
2453
+ if (err2 instanceof SError && err2.stack) {
2454
+ return { error: err2, errorMessage: err2.stack };
2332
2455
  }
2333
- return { error: err, errorMessage: SString(err) };
2456
+ return { error: err2, errorMessage: SString(err2) };
2334
2457
  } finally {
2335
2458
  if (!dontRunHook) {
2336
2459
  this.afterEachHook();
@@ -3178,7 +3301,7 @@ function stringifyInternal(value3, previousValues, getAsyncContent) {
3178
3301
  if (hasToStringMethod(value3)) {
3179
3302
  try {
3180
3303
  return value3[toStringMethod]();
3181
- } catch (err) {
3304
+ } catch (err2) {
3182
3305
  }
3183
3306
  }
3184
3307
  switch (safeToString(value3)) {
@@ -3217,7 +3340,7 @@ function stringifyInternal(value3, previousValues, getAsyncContent) {
3217
3340
  if (typeof toStringAccessor === "function" && toStringAccessor !== Object.prototype.toString) {
3218
3341
  return value3.toString();
3219
3342
  }
3220
- } catch (err) {
3343
+ } catch (err2) {
3221
3344
  return "[object Object]";
3222
3345
  }
3223
3346
  const mapper = (k) => `${k === "__proto__" ? '["__proto__"]' : typeof k === "symbol" ? `[${stringifyInternal(k, currentValues, getAsyncContent)}]` : safeJsonStringify(k)}:${stringifyInternal(value3[k], currentValues, getAsyncContent)}`;
@@ -4268,9 +4391,9 @@ var SchedulerImplem = class _SchedulerImplem {
4268
4391
  (thenTaskToBeAwaited ? task.then(() => thenTaskToBeAwaited()) : task).then((data) => {
4269
4392
  this.log(schedulingType, taskId, label, metadata, "resolved", data);
4270
4393
  return resolve(data);
4271
- }, (err) => {
4272
- this.log(schedulingType, taskId, label, metadata, "rejected", err);
4273
- return reject(err);
4394
+ }, (err2) => {
4395
+ this.log(schedulingType, taskId, label, metadata, "rejected", err2);
4396
+ return reject(err2);
4274
4397
  });
4275
4398
  };
4276
4399
  });
@@ -4382,15 +4505,15 @@ var SchedulerImplem = class _SchedulerImplem {
4382
4505
  clearAndReplaceWatcher();
4383
4506
  return ret;
4384
4507
  });
4385
- }, (err) => {
4508
+ }, (err2) => {
4386
4509
  taskResolved = true;
4387
4510
  if (awaiterPromise === null) {
4388
4511
  clearAndReplaceWatcher();
4389
- throw err;
4512
+ throw err2;
4390
4513
  }
4391
4514
  return awaiterPromise.then(() => {
4392
4515
  clearAndReplaceWatcher();
4393
- throw err;
4516
+ throw err2;
4394
4517
  });
4395
4518
  });
4396
4519
  if (this.scheduledTasks.length > 0 && this.scheduledWatchers.length === 0) {
@@ -12391,8 +12514,8 @@ var forEach3 = (iterable, f, options) => withMicroFiber((parent) => {
12391
12514
  pump();
12392
12515
  }
12393
12516
  });
12394
- } catch (err) {
12395
- result = exitDie2(err);
12517
+ } catch (err2) {
12518
+ result = exitDie2(err2);
12396
12519
  length2 = index;
12397
12520
  fibers.forEach((fiber) => fiber.unsafeInterrupt());
12398
12521
  }
@@ -21855,14 +21978,14 @@ var Defect = /* @__PURE__ */ transform2(Unknown, Unknown, {
21855
21978
  strict: true,
21856
21979
  decode: (u) => {
21857
21980
  if (isObject(u) && "message" in u && typeof u.message === "string") {
21858
- const err = new Error(u.message, {
21981
+ const err2 = new Error(u.message, {
21859
21982
  cause: u
21860
21983
  });
21861
21984
  if ("name" in u && typeof u.name === "string") {
21862
- err.name = u.name;
21985
+ err2.name = u.name;
21863
21986
  }
21864
- err.stack = "stack" in u && typeof u.stack === "string" ? u.stack : "";
21865
- return err;
21987
+ err2.stack = "stack" in u && typeof u.stack === "string" ? u.stack : "";
21988
+ return err2;
21866
21989
  }
21867
21990
  return String(u);
21868
21991
  },
@@ -22350,7 +22473,7 @@ function defaultConfig() {
22350
22473
  var debug = Debug("prisma:config:defineConfig");
22351
22474
  function defineConfig(configInput) {
22352
22475
  const config2 = defaultConfig();
22353
- debug("Prisma config [default]: %o", config2);
22476
+ debug("[default]: %o", config2);
22354
22477
  defineSchemaConfig(config2, configInput);
22355
22478
  defineStudioConfig(config2, configInput);
22356
22479
  defineMigrateConfig(config2, configInput);
@@ -22361,60 +22484,70 @@ function defineSchemaConfig(config2, configInput) {
22361
22484
  return;
22362
22485
  }
22363
22486
  config2.schema = configInput.schema;
22364
- debug("Prisma config [schema]: %o", config2.schema);
22487
+ debug("[config.schema]: %o", config2.schema);
22365
22488
  }
22366
22489
  function defineStudioConfig(config2, configInput) {
22367
22490
  if (!configInput.studio) {
22368
22491
  return;
22369
22492
  }
22493
+ const { adapter: getAdapterFactory } = configInput.studio;
22370
22494
  config2.studio = {
22371
- adapter: configInput.studio.adapter
22495
+ adapter: async (env) => {
22496
+ const adapterFactory = await getAdapterFactory(env);
22497
+ debug("[config.studio.adapter]: %o", adapterFactory.adapterName);
22498
+ return adapterFactory;
22499
+ }
22372
22500
  };
22373
- debug("Prisma config [studio]: %o", config2.studio);
22501
+ debug("[config.studio]: %o", config2.studio);
22374
22502
  }
22375
22503
  function defineMigrateConfig(config2, configInput) {
22376
22504
  if (!configInput.migrate) {
22377
22505
  return;
22378
22506
  }
22507
+ const { adapter: getAdapterFactory } = configInput.migrate;
22379
22508
  config2.migrate = {
22380
- adapter: configInput.migrate.adapter
22509
+ adapter: async (env) => {
22510
+ const adapterFactory = await getAdapterFactory(env);
22511
+ debug("[config.migrate.adapter]: %o", adapterFactory.adapterName);
22512
+ return bindMigrationAwareSqlAdapterFactory(adapterFactory);
22513
+ }
22381
22514
  };
22382
- debug("Prisma config [migrate]: %o", config2.migrate);
22515
+ debug("[config.schema]: %o", config2.migrate);
22383
22516
  }
22384
22517
 
22385
22518
  // src/PrismaConfig.ts
22386
22519
  var debug2 = Debug("prisma:config:PrismaConfig");
22387
- var adapterShape = () => Schema_exports.declare(
22520
+ var sqlMigrationAwareDriverAdapterFactoryShape = () => Schema_exports.declare(
22388
22521
  (input) => {
22389
22522
  return input instanceof Function;
22390
22523
  },
22391
22524
  {
22392
- identifier: "Adapter<Env>",
22525
+ identifier: "SqlMigrationAwareDriverAdapterFactory<Env>",
22393
22526
  encode: identity,
22394
22527
  decode: identity
22395
22528
  }
22396
22529
  );
22397
- var migrationAwareAdapterShape = () => Schema_exports.declare(
22530
+ var errorCapturingSqlMigrationAwareDriverAdapterFactoryShape = () => Schema_exports.declare(
22398
22531
  (input) => {
22399
22532
  return input instanceof Function;
22400
22533
  },
22401
22534
  {
22402
- identifier: "MigrationAwareAdapter<Env>",
22535
+ identifier: "ErrorCapturingSqlMigrationAwareDriverAdapterFactory<Env>",
22403
22536
  encode: identity,
22404
22537
  decode: identity
22405
22538
  }
22406
22539
  );
22407
- var createPrismaStudioConfigInternalShape = () => Schema_exports.Struct({
22540
+ var createPrismaStudioConfigShape = () => Schema_exports.Struct({
22408
22541
  /**
22409
22542
  * Instantiates the Prisma driver adapter to use for Prisma Studio.
22410
22543
  */
22411
- adapter: adapterShape()
22544
+ adapter: sqlMigrationAwareDriverAdapterFactoryShape()
22412
22545
  });
22413
22546
  var createPrismaMigrateConfigInternalShape = () => Schema_exports.Struct({
22414
22547
  /**
22415
22548
  * Instantiates the Prisma driver adapter to use for Prisma Migrate + Introspect.
22416
22549
  */
22417
- adapter: migrationAwareAdapterShape()
22550
+ adapter: errorCapturingSqlMigrationAwareDriverAdapterFactoryShape()
22418
22551
  });
22419
22552
  if (false) {
22420
22553
  __testPrismaStudioConfigShapeValueA;
@@ -22439,7 +22572,7 @@ var PRISMA_CONFIG_INTERNAL_BRAND = Symbol.for("PrismaConfigInternal");
22439
22572
  var createPrismaConfigInternalShape = () => Schema_exports.Struct({
22440
22573
  earlyAccess: Schema_exports.Literal(true),
22441
22574
  schema: Schema_exports.optional(Schema_exports.String),
22442
- studio: Schema_exports.optional(createPrismaStudioConfigInternalShape()),
22575
+ studio: Schema_exports.optional(createPrismaStudioConfigShape()),
22443
22576
  migrate: Schema_exports.optional(createPrismaMigrateConfigInternalShape()),
22444
22577
  loadedFromFile: Schema_exports.NullOr(Schema_exports.String)
22445
22578
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prisma/config",
3
- "version": "6.6.0-dev.90",
3
+ "version": "6.6.0-dev.92",
4
4
  "description": "Internal package used to define and read Prisma configuration files",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -22,8 +22,8 @@
22
22
  "esbuild-register": "3.6.0",
23
23
  "jest": "29.7.0",
24
24
  "jest-junit": "16.0.0",
25
- "@prisma/driver-adapter-utils": "6.6.0-dev.90",
26
- "@prisma/get-platform": "6.6.0-dev.90"
25
+ "@prisma/driver-adapter-utils": "6.6.0-dev.92",
26
+ "@prisma/get-platform": "6.6.0-dev.92"
27
27
  },
28
28
  "files": [
29
29
  "dist"