prisma 6.4.0-dev.2 → 6.4.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.
@@ -373,6 +373,8 @@ 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
+
376
378
  export declare namespace Decimal {
377
379
  export type Constructor = typeof Decimal;
378
380
  export type Instance = Decimal;
@@ -1244,7 +1246,7 @@ declare type Error_2 = {
1244
1246
  kind: 'UnsupportedNativeDataType';
1245
1247
  type: string;
1246
1248
  } | {
1247
- kind: 'Postgres';
1249
+ kind: 'postgres';
1248
1250
  code: string;
1249
1251
  severity: string;
1250
1252
  message: string;
@@ -1252,12 +1254,12 @@ declare type Error_2 = {
1252
1254
  column: string | undefined;
1253
1255
  hint: string | undefined;
1254
1256
  } | {
1255
- kind: 'Mysql';
1257
+ kind: 'mysql';
1256
1258
  code: number;
1257
1259
  message: string;
1258
1260
  state: string;
1259
1261
  } | {
1260
- kind: 'Sqlite';
1262
+ kind: 'sqlite';
1261
1263
  /**
1262
1264
  * Sqlite extended error code: https://www.sqlite.org/rescode.html
1263
1265
  */
@@ -1432,8 +1434,6 @@ export declare interface FieldRef<Model, FieldType> {
1432
1434
  readonly isList: boolean;
1433
1435
  }
1434
1436
 
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,7 +1534,6 @@ export declare function getPrismaClient(config: GetPrismaClientConfig): {
1534
1534
  _clientVersion: string;
1535
1535
  _errorFormat: ErrorFormat;
1536
1536
  _tracingHelper: TracingHelper;
1537
- _metrics: MetricsClient;
1538
1537
  _middlewares: MiddlewareHandler<QueryMiddleware>;
1539
1538
  _previewFeatures: string[];
1540
1539
  _activeProvider: string;
@@ -1648,7 +1647,7 @@ export declare function getPrismaClient(config: GetPrismaClientConfig): {
1648
1647
  */
1649
1648
  _request(internalParams: InternalRequestParams): Promise<any>;
1650
1649
  _executeRequest({ args, clientMethod, dataPath, callsite, action, model, argsMapper, transaction, unpacker, otelParentCtx, customDataProxyFetch, }: InternalRequestParams): Promise<any>;
1651
- readonly $metrics: MetricsClient;
1650
+ $metrics: MetricsClient;
1652
1651
  /**
1653
1652
  * Shortcut for checking a preview flag
1654
1653
  * @param feature preview flag
@@ -2162,8 +2161,8 @@ export declare type Metrics = {
2162
2161
  };
2163
2162
 
2164
2163
  export declare class MetricsClient {
2165
- private _engine;
2166
- constructor(engine: Engine);
2164
+ private _client;
2165
+ constructor(client: Client);
2167
2166
  /**
2168
2167
  * Returns all metrics gathered up to this point in prometheus format.
2169
2168
  * Result of this call can be exposed directly to prometheus scraping endpoint
@@ -2536,6 +2535,8 @@ declare type PrismaPromiseTransaction<PayloadType = unknown> = PrismaPromiseBatc
2536
2535
 
2537
2536
  export declare const PrivateResultType: unique symbol;
2538
2537
 
2538
+ declare type Provider = 'mysql' | 'postgres' | 'sqlite';
2539
+
2539
2540
  declare namespace Public {
2540
2541
  export {
2541
2542
  validator
@@ -2561,7 +2562,7 @@ declare type Query = {
2561
2562
  };
2562
2563
 
2563
2564
  declare interface Queryable {
2564
- readonly provider: Flavour;
2565
+ readonly provider: Provider;
2565
2566
  readonly adapterName: (typeof officialPrismaAdapters)[number] | (string & {});
2566
2567
  /**
2567
2568
  * Execute a query given as SQL, interpolating the given parameters,
@@ -2590,7 +2591,7 @@ declare interface QueryCompilerConstructor {
2590
2591
 
2591
2592
  declare type QueryCompilerOptions = {
2592
2593
  datamodel: string;
2593
- flavour: Flavour;
2594
+ provider: Provider;
2594
2595
  connectionInfo: ConnectionInfo;
2595
2596
  };
2596
2597