prisma 5.20.0-dev.20 → 5.20.0-dev.21

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.
@@ -121,6 +121,13 @@ declare interface BinaryTargetsEnvValue {
121
121
  native?: boolean;
122
122
  }
123
123
 
124
+ declare interface BoundDriverAdapter extends Queryable, WithTransaction {
125
+ /**
126
+ * Optional method that returns extra connection info
127
+ */
128
+ getConnectionInfo?(): Result_4<ConnectionInfo>;
129
+ }
130
+
124
131
  export declare type Call<F extends Fn, P> = (F & {
125
132
  params: P;
126
133
  })['returns'];
@@ -868,11 +875,7 @@ export declare namespace DMMF {
868
875
  }
869
876
  }
870
877
 
871
- export declare interface DriverAdapter extends Queryable {
872
- /**
873
- * Starts new transaction.
874
- */
875
- transactionContext(): Promise<Result_4<TransactionContext>>;
878
+ export declare interface DriverAdapter extends Queryable, WithTransactionDeprecated, WithTransaction {
876
879
  /**
877
880
  * Optional method that returns extra connection info
878
881
  */
@@ -1184,7 +1187,7 @@ declare type Error_2 = {
1184
1187
  message: string;
1185
1188
  };
1186
1189
 
1187
- declare interface ErrorCapturingDriverAdapter extends DriverAdapter {
1190
+ declare interface ErrorCapturingDriverAdapter extends BoundDriverAdapter {
1188
1191
  readonly errorRegistry: ErrorRegistry;
1189
1192
  }
1190
1193
 
@@ -3375,4 +3378,20 @@ declare type WasmLoadingConfig = {
3375
3378
  getQueryEngineWasmModule: () => Promise<unknown>;
3376
3379
  };
3377
3380
 
3381
+ declare interface WithTransaction extends Queryable {
3382
+ /**
3383
+ * Starts new transaction.
3384
+ * If `startTransaction` is not defined, `transactionContext` must be defined.
3385
+ */
3386
+ transactionContext?(): Promise<Result_4<TransactionContext>>;
3387
+ }
3388
+
3389
+ declare interface WithTransactionDeprecated extends Queryable {
3390
+ /**
3391
+ * Starts new transaction.
3392
+ * @deprecated Use `transactionContext` instead.
3393
+ */
3394
+ startTransaction?(): Promise<Result_4<Transaction>>;
3395
+ }
3396
+
3378
3397
  export { }