@prisma/client 6.4.0-dev.27 → 6.4.0-dev.3
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/generator-build/index.js +17 -17
- package/package.json +27 -27
- package/runtime/binary.js +82 -80
- package/runtime/client.d.ts +11 -19
- package/runtime/client.js +33 -33
- package/runtime/edge-esm.js +16 -16
- package/runtime/edge.js +16 -16
- package/runtime/index-browser.d.ts +0 -2
- package/runtime/index-browser.js +3 -3
- package/runtime/library.d.ts +11 -19
- package/runtime/library.js +56 -56
- package/runtime/query_compiler_bg.mysql.wasm +0 -0
- package/runtime/query_compiler_bg.postgresql.wasm +0 -0
- package/runtime/query_compiler_bg.sqlite.wasm +0 -0
- package/runtime/query_engine_bg.mysql.js +2 -2
- package/runtime/query_engine_bg.mysql.wasm +0 -0
- package/runtime/query_engine_bg.postgresql.js +2 -2
- package/runtime/query_engine_bg.postgresql.wasm +0 -0
- package/runtime/query_engine_bg.sqlite.js +2 -2
- package/runtime/query_engine_bg.sqlite.wasm +0 -0
- package/runtime/react-native.d.ts +11 -19
- package/runtime/react-native.js +25 -25
- package/runtime/wasm.js +17 -17
- package/scripts/default-index.js +3 -3
package/runtime/client.d.ts
CHANGED
|
@@ -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;
|
|
@@ -1120,9 +1118,6 @@ declare interface EngineConfig {
|
|
|
1120
1118
|
allowTriggerPanic?: boolean;
|
|
1121
1119
|
prismaPath?: string;
|
|
1122
1120
|
generator?: GeneratorConfig;
|
|
1123
|
-
/**
|
|
1124
|
-
* @remarks this field is used internally by Policy, do not rename or remove
|
|
1125
|
-
*/
|
|
1126
1121
|
overrideDatasources: Datasources;
|
|
1127
1122
|
showColors?: boolean;
|
|
1128
1123
|
logQueries?: boolean;
|
|
@@ -1151,7 +1146,6 @@ declare interface EngineConfig {
|
|
|
1151
1146
|
/**
|
|
1152
1147
|
* The contents of the datasource url saved in a string
|
|
1153
1148
|
* @remarks only used by DataProxyEngine.ts
|
|
1154
|
-
* @remarks this field is used internally by Policy, do not rename or remove
|
|
1155
1149
|
*/
|
|
1156
1150
|
inlineDatasources: GetPrismaClientConfig['inlineDatasources'];
|
|
1157
1151
|
/**
|
|
@@ -1250,7 +1244,7 @@ declare type Error_2 = {
|
|
|
1250
1244
|
kind: 'UnsupportedNativeDataType';
|
|
1251
1245
|
type: string;
|
|
1252
1246
|
} | {
|
|
1253
|
-
kind: '
|
|
1247
|
+
kind: 'Postgres';
|
|
1254
1248
|
code: string;
|
|
1255
1249
|
severity: string;
|
|
1256
1250
|
message: string;
|
|
@@ -1258,12 +1252,12 @@ declare type Error_2 = {
|
|
|
1258
1252
|
column: string | undefined;
|
|
1259
1253
|
hint: string | undefined;
|
|
1260
1254
|
} | {
|
|
1261
|
-
kind: '
|
|
1255
|
+
kind: 'Mysql';
|
|
1262
1256
|
code: number;
|
|
1263
1257
|
message: string;
|
|
1264
1258
|
state: string;
|
|
1265
1259
|
} | {
|
|
1266
|
-
kind: '
|
|
1260
|
+
kind: 'Sqlite';
|
|
1267
1261
|
/**
|
|
1268
1262
|
* Sqlite extended error code: https://www.sqlite.org/rescode.html
|
|
1269
1263
|
*/
|
|
@@ -1438,6 +1432,8 @@ export declare interface FieldRef<Model, FieldType> {
|
|
|
1438
1432
|
readonly isList: boolean;
|
|
1439
1433
|
}
|
|
1440
1434
|
|
|
1435
|
+
declare type Flavour = 'mysql' | 'postgres' | 'sqlite';
|
|
1436
|
+
|
|
1441
1437
|
export declare type FluentOperation = 'findUnique' | 'findUniqueOrThrow' | 'findFirst' | 'findFirstOrThrow' | 'create' | 'update' | 'upsert' | 'delete';
|
|
1442
1438
|
|
|
1443
1439
|
export declare interface Fn<Params = unknown, Returns = unknown> {
|
|
@@ -1538,14 +1534,12 @@ export declare function getPrismaClient(config: GetPrismaClientConfig): {
|
|
|
1538
1534
|
_clientVersion: string;
|
|
1539
1535
|
_errorFormat: ErrorFormat;
|
|
1540
1536
|
_tracingHelper: TracingHelper;
|
|
1537
|
+
_metrics: MetricsClient;
|
|
1541
1538
|
_middlewares: MiddlewareHandler<QueryMiddleware>;
|
|
1542
1539
|
_previewFeatures: string[];
|
|
1543
1540
|
_activeProvider: string;
|
|
1544
1541
|
_globalOmit?: GlobalOmitOptions | undefined;
|
|
1545
1542
|
_extensions: MergedExtensionsList;
|
|
1546
|
-
/**
|
|
1547
|
-
* @remarks This is used internally by Policy, do not rename or remove
|
|
1548
|
-
*/
|
|
1549
1543
|
_engine: Engine;
|
|
1550
1544
|
/**
|
|
1551
1545
|
* A fully constructed/applied Client that references the parent
|
|
@@ -1654,7 +1648,7 @@ export declare function getPrismaClient(config: GetPrismaClientConfig): {
|
|
|
1654
1648
|
*/
|
|
1655
1649
|
_request(internalParams: InternalRequestParams): Promise<any>;
|
|
1656
1650
|
_executeRequest({ args, clientMethod, dataPath, callsite, action, model, argsMapper, transaction, unpacker, otelParentCtx, customDataProxyFetch, }: InternalRequestParams): Promise<any>;
|
|
1657
|
-
$metrics: MetricsClient;
|
|
1651
|
+
readonly $metrics: MetricsClient;
|
|
1658
1652
|
/**
|
|
1659
1653
|
* Shortcut for checking a preview flag
|
|
1660
1654
|
* @param feature preview flag
|
|
@@ -2168,8 +2162,8 @@ export declare type Metrics = {
|
|
|
2168
2162
|
};
|
|
2169
2163
|
|
|
2170
2164
|
export declare class MetricsClient {
|
|
2171
|
-
private
|
|
2172
|
-
constructor(
|
|
2165
|
+
private _engine;
|
|
2166
|
+
constructor(engine: Engine);
|
|
2173
2167
|
/**
|
|
2174
2168
|
* Returns all metrics gathered up to this point in prometheus format.
|
|
2175
2169
|
* Result of this call can be exposed directly to prometheus scraping endpoint
|
|
@@ -2542,8 +2536,6 @@ declare type PrismaPromiseTransaction<PayloadType = unknown> = PrismaPromiseBatc
|
|
|
2542
2536
|
|
|
2543
2537
|
export declare const PrivateResultType: unique symbol;
|
|
2544
2538
|
|
|
2545
|
-
declare type Provider = 'mysql' | 'postgres' | 'sqlite';
|
|
2546
|
-
|
|
2547
2539
|
declare namespace Public {
|
|
2548
2540
|
export {
|
|
2549
2541
|
validator
|
|
@@ -2569,7 +2561,7 @@ declare type Query = {
|
|
|
2569
2561
|
};
|
|
2570
2562
|
|
|
2571
2563
|
declare interface Queryable {
|
|
2572
|
-
readonly provider:
|
|
2564
|
+
readonly provider: Flavour;
|
|
2573
2565
|
readonly adapterName: (typeof officialPrismaAdapters)[number] | (string & {});
|
|
2574
2566
|
/**
|
|
2575
2567
|
* Execute a query given as SQL, interpolating the given parameters,
|
|
@@ -2598,7 +2590,7 @@ declare interface QueryCompilerConstructor {
|
|
|
2598
2590
|
|
|
2599
2591
|
declare type QueryCompilerOptions = {
|
|
2600
2592
|
datamodel: string;
|
|
2601
|
-
|
|
2593
|
+
flavour: Flavour;
|
|
2602
2594
|
connectionInfo: ConnectionInfo;
|
|
2603
2595
|
};
|
|
2604
2596
|
|