prisma 6.4.0-dev.21 → 6.4.0-dev.22

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> {
@@ -1534,6 +1534,7 @@ export declare function getPrismaClient(config: GetPrismaClientConfig): {
1534
1534
  _clientVersion: string;
1535
1535
  _errorFormat: ErrorFormat;
1536
1536
  _tracingHelper: TracingHelper;
1537
+ _metrics: MetricsClient;
1537
1538
  _middlewares: MiddlewareHandler<QueryMiddleware>;
1538
1539
  _previewFeatures: string[];
1539
1540
  _activeProvider: string;
@@ -1647,7 +1648,7 @@ export declare function getPrismaClient(config: GetPrismaClientConfig): {
1647
1648
  */
1648
1649
  _request(internalParams: InternalRequestParams): Promise<any>;
1649
1650
  _executeRequest({ args, clientMethod, dataPath, callsite, action, model, argsMapper, transaction, unpacker, otelParentCtx, customDataProxyFetch, }: InternalRequestParams): Promise<any>;
1650
- $metrics: MetricsClient;
1651
+ readonly $metrics: MetricsClient;
1651
1652
  /**
1652
1653
  * Shortcut for checking a preview flag
1653
1654
  * @param feature preview flag
@@ -2161,8 +2162,8 @@ export declare type Metrics = {
2161
2162
  };
2162
2163
 
2163
2164
  export declare class MetricsClient {
2164
- private _client;
2165
- constructor(client: Client);
2165
+ private _engine;
2166
+ constructor(engine: Engine);
2166
2167
  /**
2167
2168
  * Returns all metrics gathered up to this point in prometheus format.
2168
2169
  * Result of this call can be exposed directly to prometheus scraping endpoint
@@ -2535,8 +2536,6 @@ declare type PrismaPromiseTransaction<PayloadType = unknown> = PrismaPromiseBatc
2535
2536
 
2536
2537
  export declare const PrivateResultType: unique symbol;
2537
2538
 
2538
- declare type Provider = 'mysql' | 'postgres' | 'sqlite';
2539
-
2540
2539
  declare namespace Public {
2541
2540
  export {
2542
2541
  validator
@@ -2562,7 +2561,7 @@ declare type Query = {
2562
2561
  };
2563
2562
 
2564
2563
  declare interface Queryable {
2565
- readonly provider: Provider;
2564
+ readonly provider: Flavour;
2566
2565
  readonly adapterName: (typeof officialPrismaAdapters)[number] | (string & {});
2567
2566
  /**
2568
2567
  * Execute a query given as SQL, interpolating the given parameters,
@@ -2591,7 +2590,7 @@ declare interface QueryCompilerConstructor {
2591
2590
 
2592
2591
  declare type QueryCompilerOptions = {
2593
2592
  datamodel: string;
2594
- provider: Provider;
2593
+ flavour: Flavour;
2595
2594
  connectionInfo: ConnectionInfo;
2596
2595
  };
2597
2596