prisma 6.4.0-dev.5 → 6.4.0-dev.50
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/build/index.js +1012 -921
- package/build/prisma_schema_build_bg.wasm +0 -0
- package/package.json +13 -10
- package/prisma-client/generator-build/index.js +29 -18
- package/prisma-client/package.json +22 -11
- package/prisma-client/runtime/binary.js +83 -85
- package/prisma-client/runtime/client.d.ts +32 -24
- package/prisma-client/runtime/client.js +33 -33
- package/prisma-client/runtime/edge-esm.js +18 -18
- package/prisma-client/runtime/edge.js +18 -18
- package/prisma-client/runtime/index-browser.d.ts +2 -0
- package/prisma-client/runtime/index-browser.js +3 -3
- package/prisma-client/runtime/library.d.ts +32 -24
- package/prisma-client/runtime/library.js +49 -49
- package/prisma-client/runtime/query_engine_bg.mysql.js +2 -2
- package/prisma-client/runtime/query_engine_bg.postgresql.js +2 -2
- package/prisma-client/runtime/query_engine_bg.sqlite.js +2 -2
- package/prisma-client/runtime/react-native.d.ts +32 -24
- package/prisma-client/runtime/react-native.js +23 -23
- package/prisma-client/scripts/default-index.js +3 -3
|
@@ -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;
|
|
@@ -1118,6 +1120,9 @@ declare interface EngineConfig {
|
|
|
1118
1120
|
allowTriggerPanic?: boolean;
|
|
1119
1121
|
prismaPath?: string;
|
|
1120
1122
|
generator?: GeneratorConfig;
|
|
1123
|
+
/**
|
|
1124
|
+
* @remarks this field is used internally by Policy, do not rename or remove
|
|
1125
|
+
*/
|
|
1121
1126
|
overrideDatasources: Datasources;
|
|
1122
1127
|
showColors?: boolean;
|
|
1123
1128
|
logQueries?: boolean;
|
|
@@ -1146,6 +1151,7 @@ declare interface EngineConfig {
|
|
|
1146
1151
|
/**
|
|
1147
1152
|
* The contents of the datasource url saved in a string
|
|
1148
1153
|
* @remarks only used by DataProxyEngine.ts
|
|
1154
|
+
* @remarks this field is used internally by Policy, do not rename or remove
|
|
1149
1155
|
*/
|
|
1150
1156
|
inlineDatasources: GetPrismaClientConfig['inlineDatasources'];
|
|
1151
1157
|
/**
|
|
@@ -1244,7 +1250,7 @@ declare type Error_2 = {
|
|
|
1244
1250
|
kind: 'UnsupportedNativeDataType';
|
|
1245
1251
|
type: string;
|
|
1246
1252
|
} | {
|
|
1247
|
-
kind: '
|
|
1253
|
+
kind: 'postgres';
|
|
1248
1254
|
code: string;
|
|
1249
1255
|
severity: string;
|
|
1250
1256
|
message: string;
|
|
@@ -1252,12 +1258,12 @@ declare type Error_2 = {
|
|
|
1252
1258
|
column: string | undefined;
|
|
1253
1259
|
hint: string | undefined;
|
|
1254
1260
|
} | {
|
|
1255
|
-
kind: '
|
|
1261
|
+
kind: 'mysql';
|
|
1256
1262
|
code: number;
|
|
1257
1263
|
message: string;
|
|
1258
1264
|
state: string;
|
|
1259
1265
|
} | {
|
|
1260
|
-
kind: '
|
|
1266
|
+
kind: 'sqlite';
|
|
1261
1267
|
/**
|
|
1262
1268
|
* Sqlite extended error code: https://www.sqlite.org/rescode.html
|
|
1263
1269
|
*/
|
|
@@ -1432,8 +1438,6 @@ export declare interface FieldRef<Model, FieldType> {
|
|
|
1432
1438
|
readonly isList: boolean;
|
|
1433
1439
|
}
|
|
1434
1440
|
|
|
1435
|
-
declare type Flavour = 'mysql' | 'postgres' | 'sqlite';
|
|
1436
|
-
|
|
1437
1441
|
export declare type FluentOperation = 'findUnique' | 'findUniqueOrThrow' | 'findFirst' | 'findFirstOrThrow' | 'create' | 'update' | 'upsert' | 'delete';
|
|
1438
1442
|
|
|
1439
1443
|
export declare interface Fn<Params = unknown, Returns = unknown> {
|
|
@@ -1470,7 +1474,7 @@ export declare type GetAggregateResult<P extends OperationPayload, A> = {
|
|
|
1470
1474
|
};
|
|
1471
1475
|
};
|
|
1472
1476
|
|
|
1473
|
-
declare function getBatchRequestPayload(batch: JsonQuery[], transaction?:
|
|
1477
|
+
declare function getBatchRequestPayload(batch: JsonQuery[], transaction?: TransactionOptions_3<unknown>): QueryEngineBatchRequest;
|
|
1474
1478
|
|
|
1475
1479
|
export declare type GetBatchResult = {
|
|
1476
1480
|
count: number;
|
|
@@ -1534,12 +1538,14 @@ export declare function getPrismaClient(config: GetPrismaClientConfig): {
|
|
|
1534
1538
|
_clientVersion: string;
|
|
1535
1539
|
_errorFormat: ErrorFormat;
|
|
1536
1540
|
_tracingHelper: TracingHelper;
|
|
1537
|
-
_metrics: MetricsClient;
|
|
1538
1541
|
_middlewares: MiddlewareHandler<QueryMiddleware>;
|
|
1539
1542
|
_previewFeatures: string[];
|
|
1540
1543
|
_activeProvider: string;
|
|
1541
1544
|
_globalOmit?: GlobalOmitOptions | undefined;
|
|
1542
1545
|
_extensions: MergedExtensionsList;
|
|
1546
|
+
/**
|
|
1547
|
+
* @remarks This is used internally by Policy, do not rename or remove
|
|
1548
|
+
*/
|
|
1543
1549
|
_engine: Engine;
|
|
1544
1550
|
/**
|
|
1545
1551
|
* A fully constructed/applied Client that references the parent
|
|
@@ -1631,7 +1637,7 @@ export declare function getPrismaClient(config: GetPrismaClientConfig): {
|
|
|
1631
1637
|
*/
|
|
1632
1638
|
_transactionWithCallback({ callback, options, }: {
|
|
1633
1639
|
callback: (client: Client) => Promise<unknown>;
|
|
1634
|
-
options?:
|
|
1640
|
+
options?: TransactionOptions_2;
|
|
1635
1641
|
}): Promise<unknown>;
|
|
1636
1642
|
_createItxClient(transaction: PrismaPromiseInteractiveTransaction): Client;
|
|
1637
1643
|
/**
|
|
@@ -1648,7 +1654,7 @@ export declare function getPrismaClient(config: GetPrismaClientConfig): {
|
|
|
1648
1654
|
*/
|
|
1649
1655
|
_request(internalParams: InternalRequestParams): Promise<any>;
|
|
1650
1656
|
_executeRequest({ args, clientMethod, dataPath, callsite, action, model, argsMapper, transaction, unpacker, otelParentCtx, customDataProxyFetch, }: InternalRequestParams): Promise<any>;
|
|
1651
|
-
|
|
1657
|
+
$metrics: MetricsClient;
|
|
1652
1658
|
/**
|
|
1653
1659
|
* Shortcut for checking a preview flag
|
|
1654
1660
|
* @param feature preview flag
|
|
@@ -1919,7 +1925,7 @@ declare type InternalRequestParams = {
|
|
|
1919
1925
|
customDataProxyFetch?: CustomDataProxyFetch;
|
|
1920
1926
|
} & Omit<QueryMiddlewareParams, 'runInTransaction'>;
|
|
1921
1927
|
|
|
1922
|
-
declare enum IsolationLevel {
|
|
1928
|
+
declare const enum IsolationLevel {
|
|
1923
1929
|
ReadUncommitted = "ReadUncommitted",
|
|
1924
1930
|
ReadCommitted = "ReadCommitted",
|
|
1925
1931
|
RepeatableRead = "RepeatableRead",
|
|
@@ -2162,8 +2168,8 @@ export declare type Metrics = {
|
|
|
2162
2168
|
};
|
|
2163
2169
|
|
|
2164
2170
|
export declare class MetricsClient {
|
|
2165
|
-
private
|
|
2166
|
-
constructor(
|
|
2171
|
+
private _client;
|
|
2172
|
+
constructor(client: Client);
|
|
2167
2173
|
/**
|
|
2168
2174
|
* Returns all metrics gathered up to this point in prometheus format.
|
|
2169
2175
|
* Result of this call can be exposed directly to prometheus scraping endpoint
|
|
@@ -2319,12 +2325,6 @@ export declare type OptionalKeys<O> = {
|
|
|
2319
2325
|
}[keyof O];
|
|
2320
2326
|
|
|
2321
2327
|
declare type Options = {
|
|
2322
|
-
maxWait?: number;
|
|
2323
|
-
timeout?: number;
|
|
2324
|
-
isolationLevel?: IsolationLevel;
|
|
2325
|
-
};
|
|
2326
|
-
|
|
2327
|
-
declare type Options_2 = {
|
|
2328
2328
|
clientVersion: string;
|
|
2329
2329
|
};
|
|
2330
2330
|
|
|
@@ -2456,7 +2456,7 @@ export declare class PrismaClientUnknownRequestError extends Error implements Er
|
|
|
2456
2456
|
export declare class PrismaClientValidationError extends Error {
|
|
2457
2457
|
name: string;
|
|
2458
2458
|
clientVersion: string;
|
|
2459
|
-
constructor(message: string, { clientVersion }:
|
|
2459
|
+
constructor(message: string, { clientVersion }: Options);
|
|
2460
2460
|
get [Symbol.toStringTag](): string;
|
|
2461
2461
|
}
|
|
2462
2462
|
|
|
@@ -2536,6 +2536,8 @@ 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
|
+
|
|
2539
2541
|
declare namespace Public {
|
|
2540
2542
|
export {
|
|
2541
2543
|
validator
|
|
@@ -2561,7 +2563,7 @@ declare type Query = {
|
|
|
2561
2563
|
};
|
|
2562
2564
|
|
|
2563
2565
|
declare interface Queryable {
|
|
2564
|
-
readonly provider:
|
|
2566
|
+
readonly provider: Provider;
|
|
2565
2567
|
readonly adapterName: (typeof officialPrismaAdapters)[number] | (string & {});
|
|
2566
2568
|
/**
|
|
2567
2569
|
* Execute a query given as SQL, interpolating the given parameters,
|
|
@@ -2590,7 +2592,7 @@ declare interface QueryCompilerConstructor {
|
|
|
2590
2592
|
|
|
2591
2593
|
declare type QueryCompilerOptions = {
|
|
2592
2594
|
datamodel: string;
|
|
2593
|
-
|
|
2595
|
+
provider: Provider;
|
|
2594
2596
|
connectionInfo: ConnectionInfo;
|
|
2595
2597
|
};
|
|
2596
2598
|
|
|
@@ -2735,7 +2737,7 @@ export declare type RenameAndNestPayloadKeys<P> = {
|
|
|
2735
2737
|
};
|
|
2736
2738
|
|
|
2737
2739
|
declare type RequestBatchOptions<InteractiveTransactionPayload> = {
|
|
2738
|
-
transaction?:
|
|
2740
|
+
transaction?: TransactionOptions_3<InteractiveTransactionPayload>;
|
|
2739
2741
|
traceparent?: string;
|
|
2740
2742
|
numTry?: number;
|
|
2741
2743
|
containsWrite: boolean;
|
|
@@ -3305,7 +3307,7 @@ declare interface Transaction extends Queryable {
|
|
|
3305
3307
|
declare namespace Transaction_2 {
|
|
3306
3308
|
export {
|
|
3307
3309
|
IsolationLevel,
|
|
3308
|
-
Options,
|
|
3310
|
+
TransactionOptions_2 as Options,
|
|
3309
3311
|
InteractiveTransactionInfo,
|
|
3310
3312
|
TransactionHeaders
|
|
3311
3313
|
}
|
|
@@ -3326,7 +3328,13 @@ declare type TransactionOptions = {
|
|
|
3326
3328
|
usePhantomQuery: boolean;
|
|
3327
3329
|
};
|
|
3328
3330
|
|
|
3329
|
-
declare type TransactionOptions_2
|
|
3331
|
+
declare type TransactionOptions_2 = {
|
|
3332
|
+
maxWait?: number;
|
|
3333
|
+
timeout?: number;
|
|
3334
|
+
isolationLevel?: IsolationLevel;
|
|
3335
|
+
};
|
|
3336
|
+
|
|
3337
|
+
declare type TransactionOptions_3<InteractiveTransactionPayload> = {
|
|
3330
3338
|
kind: 'itx';
|
|
3331
3339
|
options: InteractiveTransactionOptions<InteractiveTransactionPayload>;
|
|
3332
3340
|
} | {
|