prisma 6.4.0-dev.19 → 6.4.0-dev.20

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.
@@ -373,8 +373,6 @@ declare function debugCreate(namespace: string): ((...args: any[]) => void) & {
373
373
  extend: () => void;
374
374
  };
375
375
 
376
- export declare function Decimal(n: Decimal.Value): Decimal;
377
-
378
376
  export declare namespace Decimal {
379
377
  export type Constructor = typeof Decimal;
380
378
  export type Instance = Decimal;
@@ -1246,7 +1244,7 @@ declare type Error_2 = {
1246
1244
  kind: 'UnsupportedNativeDataType';
1247
1245
  type: string;
1248
1246
  } | {
1249
- kind: 'postgres';
1247
+ kind: 'Postgres';
1250
1248
  code: string;
1251
1249
  severity: string;
1252
1250
  message: string;
@@ -1254,12 +1252,12 @@ declare type Error_2 = {
1254
1252
  column: string | undefined;
1255
1253
  hint: string | undefined;
1256
1254
  } | {
1257
- kind: 'mysql';
1255
+ kind: 'Mysql';
1258
1256
  code: number;
1259
1257
  message: string;
1260
1258
  state: string;
1261
1259
  } | {
1262
- kind: 'sqlite';
1260
+ kind: 'Sqlite';
1263
1261
  /**
1264
1262
  * Sqlite extended error code: https://www.sqlite.org/rescode.html
1265
1263
  */
@@ -1434,6 +1432,8 @@ export declare interface FieldRef<Model, FieldType> {
1434
1432
  readonly isList: boolean;
1435
1433
  }
1436
1434
 
1435
+ declare type Flavour = 'mysql' | 'postgres' | 'sqlite';
1436
+
1437
1437
  export declare type FluentOperation = 'findUnique' | 'findUniqueOrThrow' | 'findFirst' | 'findFirstOrThrow' | 'create' | 'update' | 'upsert' | 'delete';
1438
1438
 
1439
1439
  export declare interface Fn<Params = unknown, Returns = unknown> {
@@ -2536,8 +2536,6 @@ declare type PrismaPromiseTransaction<PayloadType = unknown> = PrismaPromiseBatc
2536
2536
 
2537
2537
  export declare const PrivateResultType: unique symbol;
2538
2538
 
2539
- declare type Provider = 'mysql' | 'postgres' | 'sqlite';
2540
-
2541
2539
  declare namespace Public {
2542
2540
  export {
2543
2541
  validator
@@ -2563,7 +2561,7 @@ declare type Query = {
2563
2561
  };
2564
2562
 
2565
2563
  declare interface Queryable {
2566
- readonly provider: Provider;
2564
+ readonly provider: Flavour;
2567
2565
  readonly adapterName: (typeof officialPrismaAdapters)[number] | (string & {});
2568
2566
  /**
2569
2567
  * Execute a query given as SQL, interpolating the given parameters,
@@ -2592,7 +2590,7 @@ declare interface QueryCompilerConstructor {
2592
2590
 
2593
2591
  declare type QueryCompilerOptions = {
2594
2592
  datamodel: string;
2595
- provider: Provider;
2593
+ flavour: Flavour;
2596
2594
  connectionInfo: ConnectionInfo;
2597
2595
  };
2598
2596