@a_team/prisma 2.1.21-win → 3.0.0-macos
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/dist/client/default.d.ts +1 -1
- package/dist/client/edge.d.ts +1 -1
- package/dist/client/edge.js +6 -26
- package/dist/client/index-browser.js +2 -5
- package/dist/client/index.d.ts +45 -9
- package/dist/client/index.js +6 -38
- package/dist/client/libquery_engine-linux-musl-openssl-3.0.x.so.node +0 -0
- package/dist/client/package.json +2 -15
- package/dist/client/runtime/edge-esm.js +18 -18
- package/dist/client/runtime/edge.js +18 -18
- package/dist/client/runtime/library.d.ts +18 -148
- package/dist/client/runtime/library.js +53 -53
- package/dist/client/runtime/react-native.js +26 -26
- package/dist/client/runtime/wasm.js +17 -17
- package/dist/client/schema.prisma +1 -1
- package/dist/client/wasm.d.ts +1 -1
- package/dist/client/wasm.js +2 -5
- package/package.json +7 -8
- package/dist/client/libquery_engine-darwin-arm64.dylib.node +0 -0
- package/dist/client/libquery_engine-darwin.dylib.node +0 -0
- package/dist/client/query_engine-windows.dll.node +0 -0
|
@@ -56,13 +56,6 @@ export declare type Args<T, F extends Operation> = T extends {
|
|
|
56
56
|
|
|
57
57
|
export declare type Args_3<T, F extends Operation> = Args<T, F>;
|
|
58
58
|
|
|
59
|
-
/**
|
|
60
|
-
* Original `quaint::ValueType` enum tag from Prisma's `quaint`.
|
|
61
|
-
* Query arguments marked with this type are sanitized before being sent to the database.
|
|
62
|
-
* Notice while a query argument may be `null`, `ArgType` is guaranteed to be defined.
|
|
63
|
-
*/
|
|
64
|
-
declare type ArgType = 'Int32' | 'Int64' | 'Float' | 'Double' | 'Text' | 'Enum' | 'EnumArray' | 'Bytes' | 'Boolean' | 'Char' | 'Array' | 'Numeric' | 'Json' | 'Xml' | 'Uuid' | 'DateTime' | 'Date' | 'Time';
|
|
65
|
-
|
|
66
59
|
/**
|
|
67
60
|
* Attributes is a map from string to attribute values.
|
|
68
61
|
*
|
|
@@ -147,15 +140,6 @@ export declare type ClientOptionDef = undefined | {
|
|
|
147
140
|
[K in string]: any;
|
|
148
141
|
};
|
|
149
142
|
|
|
150
|
-
export declare type ClientOtherOps = {
|
|
151
|
-
$queryRaw<T = unknown>(query: TemplateStringsArray | Sql, ...values: any[]): PrismaPromise<T>;
|
|
152
|
-
$queryRawTyped<T>(query: TypedSql<unknown[], T>): PrismaPromise<T[]>;
|
|
153
|
-
$queryRawUnsafe<T = unknown>(query: string, ...values: any[]): PrismaPromise<T>;
|
|
154
|
-
$executeRaw(query: TemplateStringsArray | Sql, ...values: any[]): PrismaPromise<number>;
|
|
155
|
-
$executeRawUnsafe(query: string, ...values: any[]): PrismaPromise<number>;
|
|
156
|
-
$runCommandRaw(command: InputJsonObject): PrismaPromise<JsonObject>;
|
|
157
|
-
};
|
|
158
|
-
|
|
159
143
|
declare type ColumnType = (typeof ColumnTypeEnum)[keyof typeof ColumnTypeEnum];
|
|
160
144
|
|
|
161
145
|
declare const ColumnTypeEnum: {
|
|
@@ -619,8 +603,6 @@ declare function defineExtension(ext: ExtensionArgs | ((client: Client) => Clien
|
|
|
619
603
|
|
|
620
604
|
declare const denylist: readonly ["$connect", "$disconnect", "$on", "$transaction", "$use", "$extends"];
|
|
621
605
|
|
|
622
|
-
export declare function deserializeJsonResponse(result: unknown): unknown;
|
|
623
|
-
|
|
624
606
|
export declare type DevTypeMapDef = {
|
|
625
607
|
meta: {
|
|
626
608
|
modelProps: string;
|
|
@@ -870,13 +852,11 @@ export declare namespace DMMF {
|
|
|
870
852
|
}
|
|
871
853
|
}
|
|
872
854
|
|
|
873
|
-
export declare function dmmfToRuntimeDataModel(dmmfDataModel: DMMF.Datamodel): RuntimeDataModel;
|
|
874
|
-
|
|
875
855
|
export declare interface DriverAdapter extends Queryable {
|
|
876
856
|
/**
|
|
877
857
|
* Starts new transaction.
|
|
878
858
|
*/
|
|
879
|
-
|
|
859
|
+
startTransaction(): Promise<Result_4<Transaction>>;
|
|
880
860
|
/**
|
|
881
861
|
* Optional method that returns extra connection info
|
|
882
862
|
*/
|
|
@@ -899,7 +879,7 @@ export declare type DynamicClientExtensionThis<TypeMap extends TypeMapDef, TypeM
|
|
|
899
879
|
} & {
|
|
900
880
|
[P in Exclude<TypeMap['meta']['modelProps'], keyof ExtArgs['client']>]: DynamicModelExtensionThis<TypeMap, ModelKey<TypeMap, P>, ExtArgs, ClientOptions>;
|
|
901
881
|
} & {
|
|
902
|
-
[P in Exclude<keyof TypeMap['other']['operations'], keyof ExtArgs['client']>]: P
|
|
882
|
+
[P in Exclude<keyof TypeMap['other']['operations'], keyof ExtArgs['client']>]: <R = GetResult<TypeMap['other']['payload'], any, P & Operation, ClientOptions>>(...args: ToTuple<TypeMap['other']['operations'][P]['args']>) => PrismaPromise<R>;
|
|
903
883
|
} & {
|
|
904
884
|
[P in Exclude<ClientBuiltInProp, keyof ExtArgs['client']>]: DynamicClientExtensionThisBuiltin<TypeMap, TypeMapCb, ExtArgs, ClientOptions>[P];
|
|
905
885
|
} & {
|
|
@@ -1141,7 +1121,6 @@ declare type EngineSpan = {
|
|
|
1141
1121
|
trace_id: string;
|
|
1142
1122
|
span_id: string;
|
|
1143
1123
|
}[];
|
|
1144
|
-
kind: EngineSpanKind;
|
|
1145
1124
|
};
|
|
1146
1125
|
|
|
1147
1126
|
declare type EngineSpanEvent = {
|
|
@@ -1149,8 +1128,6 @@ declare type EngineSpanEvent = {
|
|
|
1149
1128
|
spans: EngineSpan[];
|
|
1150
1129
|
};
|
|
1151
1130
|
|
|
1152
|
-
declare type EngineSpanKind = 'client' | 'internal';
|
|
1153
|
-
|
|
1154
1131
|
declare type EnvPaths = {
|
|
1155
1132
|
rootEnvPath: string | null;
|
|
1156
1133
|
schemaEnvPath: string | undefined;
|
|
@@ -1305,8 +1282,6 @@ declare namespace Extensions_2 {
|
|
|
1305
1282
|
export {
|
|
1306
1283
|
InternalArgs,
|
|
1307
1284
|
DefaultArgs,
|
|
1308
|
-
GetPayloadResultExtensionKeys,
|
|
1309
|
-
GetPayloadResultExtensionObject,
|
|
1310
1285
|
GetPayloadResult,
|
|
1311
1286
|
GetSelect,
|
|
1312
1287
|
GetOmit,
|
|
@@ -1335,7 +1310,6 @@ declare namespace Extensions_2 {
|
|
|
1335
1310
|
DevTypeMapDef,
|
|
1336
1311
|
DevTypeMapFnDef,
|
|
1337
1312
|
ClientOptionDef,
|
|
1338
|
-
ClientOtherOps,
|
|
1339
1313
|
TypeMapCbDef,
|
|
1340
1314
|
ModelKey,
|
|
1341
1315
|
RequiredExtensionArgs as UserArgs
|
|
@@ -1413,7 +1387,7 @@ export declare type GetFindResult<P extends OperationPayload, A, ClientOptions>
|
|
|
1413
1387
|
} & Record<string, unknown> | {
|
|
1414
1388
|
include: infer I extends object;
|
|
1415
1389
|
} & Record<string, unknown> ? {
|
|
1416
|
-
[K in keyof S | keyof I as (S & I)[K] extends false | undefined |
|
|
1390
|
+
[K in keyof S | keyof I as (S & I)[K] extends false | undefined | null ? never : K]: (S & I)[K] extends object ? P extends SelectablePayloadFields<K, (infer O)[]> ? O extends OperationPayload ? GetFindResult<O, (S & I)[K], ClientOptions>[] : never : P extends SelectablePayloadFields<K, infer O | null> ? O extends OperationPayload ? GetFindResult<O, (S & I)[K], ClientOptions> | SelectField<P, K> & null : never : K extends '_count' ? Count<GetFindResult<P, (S & I)[K], ClientOptions>> : never : P extends SelectablePayloadFields<K, (infer O)[]> ? O extends OperationPayload ? DefaultSelection<O, {}, ClientOptions>[] : never : P extends SelectablePayloadFields<K, infer O | null> ? O extends OperationPayload ? DefaultSelection<O, {}, ClientOptions> | SelectField<P, K> & null : never : P extends {
|
|
1417
1391
|
scalars: {
|
|
1418
1392
|
[k in K]: infer O;
|
|
1419
1393
|
};
|
|
@@ -1432,18 +1406,14 @@ export declare type GetGroupByResult<P extends OperationPayload, A> = A extends
|
|
|
1432
1406
|
[K in A['by']]: P['scalars'][K];
|
|
1433
1407
|
}> : {}[];
|
|
1434
1408
|
|
|
1435
|
-
export declare type GetOmit<BaseKeys extends string, R extends InternalArgs['result'][string]
|
|
1436
|
-
[K in (string extends keyof R ? never : keyof R) | BaseKeys]?: boolean
|
|
1409
|
+
export declare type GetOmit<BaseKeys extends string, R extends InternalArgs['result'][string]> = {
|
|
1410
|
+
[K in (string extends keyof R ? never : keyof R) | BaseKeys]?: boolean;
|
|
1437
1411
|
};
|
|
1438
1412
|
|
|
1439
|
-
export declare type GetPayloadResult<Base extends Record<any, any>, R extends InternalArgs['result'][string]> =
|
|
1440
|
-
|
|
1441
|
-
export declare type GetPayloadResultExtensionKeys<R extends InternalArgs['result'][string], KR extends keyof R = string extends keyof R ? never : keyof R> = KR;
|
|
1442
|
-
|
|
1443
|
-
export declare type GetPayloadResultExtensionObject<R extends InternalArgs['result'][string]> = {
|
|
1444
|
-
[K in GetPayloadResultExtensionKeys<R>]: R[K] extends () => {
|
|
1413
|
+
export declare type GetPayloadResult<Base extends Record<any, any>, R extends InternalArgs['result'][string], KR extends keyof R = string extends keyof R ? never : keyof R> = unknown extends R ? Base : {
|
|
1414
|
+
[K in KR | keyof Base]: K extends KR ? R[K] extends () => {
|
|
1445
1415
|
compute: (...args: any) => infer C;
|
|
1446
|
-
} ? C : never;
|
|
1416
|
+
} ? C : never : Base[K];
|
|
1447
1417
|
};
|
|
1448
1418
|
|
|
1449
1419
|
export declare function getPrismaClient(config: GetPrismaClientConfig): {
|
|
@@ -1524,11 +1494,6 @@ export declare function getPrismaClient(config: GetPrismaClientConfig): {
|
|
|
1524
1494
|
* @returns
|
|
1525
1495
|
*/
|
|
1526
1496
|
$queryRaw(query: TemplateStringsArray | Sql, ...values: any[]): PrismaPromise_2<unknown>;
|
|
1527
|
-
/**
|
|
1528
|
-
* Counterpart to $queryRaw, that returns strongly typed results
|
|
1529
|
-
* @param typedSql
|
|
1530
|
-
*/
|
|
1531
|
-
$queryRawTyped(typedSql: UnknownTypedSql): PrismaPromise_2<unknown>;
|
|
1532
1497
|
/**
|
|
1533
1498
|
* Unsafe counterpart of `$queryRaw` that is susceptible to SQL injections
|
|
1534
1499
|
* @see https://github.com/prisma/prisma/issues/7142
|
|
@@ -1681,7 +1646,6 @@ export declare type GetResult<Payload extends OperationPayload, Args, OperationN
|
|
|
1681
1646
|
count: GetCountResult<Args>;
|
|
1682
1647
|
groupBy: GetGroupByResult<Payload, Args>;
|
|
1683
1648
|
$queryRaw: unknown;
|
|
1684
|
-
$queryRawTyped: unknown;
|
|
1685
1649
|
$executeRaw: number;
|
|
1686
1650
|
$queryRawUnsafe: unknown;
|
|
1687
1651
|
$executeRawUnsafe: number;
|
|
@@ -1732,38 +1696,6 @@ declare type HandleErrorParams = {
|
|
|
1732
1696
|
*/
|
|
1733
1697
|
declare type HrTime = [number, number];
|
|
1734
1698
|
|
|
1735
|
-
/**
|
|
1736
|
-
* Matches a JSON array.
|
|
1737
|
-
* Unlike \`JsonArray\`, readonly arrays are assignable to this type.
|
|
1738
|
-
*/
|
|
1739
|
-
export declare interface InputJsonArray extends ReadonlyArray<InputJsonValue | null> {
|
|
1740
|
-
}
|
|
1741
|
-
|
|
1742
|
-
/**
|
|
1743
|
-
* Matches a JSON object.
|
|
1744
|
-
* Unlike \`JsonObject\`, this type allows undefined and read-only properties.
|
|
1745
|
-
*/
|
|
1746
|
-
export declare type InputJsonObject = {
|
|
1747
|
-
readonly [Key in string]?: InputJsonValue | null;
|
|
1748
|
-
};
|
|
1749
|
-
|
|
1750
|
-
/**
|
|
1751
|
-
* Matches any valid value that can be used as an input for operations like
|
|
1752
|
-
* create and update as the value of a JSON field. Unlike \`JsonValue\`, this
|
|
1753
|
-
* type allows read-only arrays and read-only object properties and disallows
|
|
1754
|
-
* \`null\` at the top level.
|
|
1755
|
-
*
|
|
1756
|
-
* \`null\` cannot be used as the value of a JSON field because its meaning
|
|
1757
|
-
* would be ambiguous. Use \`Prisma.JsonNull\` to store the JSON null value or
|
|
1758
|
-
* \`Prisma.DbNull\` to clear the JSON value and set the field to the database
|
|
1759
|
-
* NULL value instead.
|
|
1760
|
-
*
|
|
1761
|
-
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-by-null-values
|
|
1762
|
-
*/
|
|
1763
|
-
export declare type InputJsonValue = string | number | boolean | InputJsonObject | InputJsonArray | {
|
|
1764
|
-
toJSON(): unknown;
|
|
1765
|
-
};
|
|
1766
|
-
|
|
1767
1699
|
declare type InteractiveTransactionInfo<Payload = unknown> = {
|
|
1768
1700
|
/**
|
|
1769
1701
|
* Transaction ID returned by the query engine.
|
|
@@ -1847,10 +1779,6 @@ declare enum IsolationLevel {
|
|
|
1847
1779
|
Serializable = "Serializable"
|
|
1848
1780
|
}
|
|
1849
1781
|
|
|
1850
|
-
declare function isSkip(value: unknown): value is Skip;
|
|
1851
|
-
|
|
1852
|
-
export declare function isTypedSql(value: unknown): value is UnknownTypedSql;
|
|
1853
|
-
|
|
1854
1782
|
export declare type ITXClientDenyList = (typeof denylist)[number];
|
|
1855
1783
|
|
|
1856
1784
|
export declare const itxClientDenyList: readonly (string | symbol)[];
|
|
@@ -1873,7 +1801,7 @@ export declare type JsArgs = {
|
|
|
1873
1801
|
[argName: string]: JsInputValue;
|
|
1874
1802
|
};
|
|
1875
1803
|
|
|
1876
|
-
export declare type JsInputValue = null | undefined | string | number | boolean | bigint | Uint8Array | Date | DecimalJsLike | ObjectEnumValue | RawParameters | JsonConvertible | FieldRef<string, unknown> | JsInputValue[] |
|
|
1804
|
+
export declare type JsInputValue = null | undefined | string | number | boolean | bigint | Uint8Array | Date | DecimalJsLike | ObjectEnumValue | RawParameters | JsonConvertible | FieldRef<string, unknown> | JsInputValue[] | {
|
|
1877
1805
|
[key: string]: JsInputValue;
|
|
1878
1806
|
};
|
|
1879
1807
|
|
|
@@ -1881,14 +1809,10 @@ declare type JsonArgumentValue = number | string | boolean | null | RawTaggedVal
|
|
|
1881
1809
|
[key: string]: JsonArgumentValue;
|
|
1882
1810
|
};
|
|
1883
1811
|
|
|
1884
|
-
/**
|
|
1885
|
-
* From https://github.com/sindresorhus/type-fest/
|
|
1886
|
-
* Matches a JSON array.
|
|
1887
|
-
*/
|
|
1888
1812
|
export declare interface JsonArray extends Array<JsonValue> {
|
|
1889
1813
|
}
|
|
1890
1814
|
|
|
1891
|
-
|
|
1815
|
+
declare type JsonBatchQuery = {
|
|
1892
1816
|
batch: JsonQuery[];
|
|
1893
1817
|
transaction?: {
|
|
1894
1818
|
isolationLevel?: Transaction_2.IsolationLevel;
|
|
@@ -1907,16 +1831,11 @@ declare type JsonFieldSelection = {
|
|
|
1907
1831
|
declare class JsonNull extends NullTypesEnumValue {
|
|
1908
1832
|
}
|
|
1909
1833
|
|
|
1910
|
-
/**
|
|
1911
|
-
* From https://github.com/sindresorhus/type-fest/
|
|
1912
|
-
* Matches a JSON object.
|
|
1913
|
-
* This type can be useful to enforce some input to be JSON-compatible or as a super-type to be extended from.
|
|
1914
|
-
*/
|
|
1915
1834
|
export declare type JsonObject = {
|
|
1916
1835
|
[Key in string]?: JsonValue;
|
|
1917
1836
|
};
|
|
1918
1837
|
|
|
1919
|
-
|
|
1838
|
+
declare type JsonQuery = {
|
|
1920
1839
|
modelName?: string;
|
|
1921
1840
|
action: JsonQueryAction;
|
|
1922
1841
|
query: JsonFieldSelection;
|
|
@@ -1931,10 +1850,6 @@ declare type JsonSelectionSet = {
|
|
|
1931
1850
|
[fieldName: string]: boolean | JsonFieldSelection;
|
|
1932
1851
|
};
|
|
1933
1852
|
|
|
1934
|
-
/**
|
|
1935
|
-
* From https://github.com/sindresorhus/type-fest/
|
|
1936
|
-
* Matches any valid JSON value.
|
|
1937
|
-
*/
|
|
1938
1853
|
export declare type JsonValue = string | number | boolean | JsonObject | JsonArray | null;
|
|
1939
1854
|
|
|
1940
1855
|
export declare type JsOutputValue = null | string | number | boolean | bigint | Uint8Array | Date | Decimal | JsOutputValue[] | {
|
|
@@ -2032,8 +1947,6 @@ declare type LogLevel = 'info' | 'query' | 'warn' | 'error';
|
|
|
2032
1947
|
*/
|
|
2033
1948
|
export declare function makeStrictEnum<T extends Record<PropertyKey, string | number>>(definition: T): T;
|
|
2034
1949
|
|
|
2035
|
-
export declare function makeTypedQueryFactory(sql: string): (...values: any[]) => TypedSql<any[], unknown>;
|
|
2036
|
-
|
|
2037
1950
|
/**
|
|
2038
1951
|
* Class that holds the list of all extensions, applied to particular instance,
|
|
2039
1952
|
* as well as resolved versions of the components that need to apply on
|
|
@@ -2231,7 +2144,7 @@ export declare const objectEnumValues: {
|
|
|
2231
2144
|
|
|
2232
2145
|
declare const officialPrismaAdapters: readonly ["@prisma/adapter-planetscale", "@prisma/adapter-neon", "@prisma/adapter-libsql", "@prisma/adapter-d1", "@prisma/adapter-pg", "@prisma/adapter-pg-worker"];
|
|
2233
2146
|
|
|
2234
|
-
export declare type Omission = Record<string, boolean
|
|
2147
|
+
export declare type Omission = Record<string, boolean>;
|
|
2235
2148
|
|
|
2236
2149
|
declare type Omit_2<T, K extends string | number | symbol> = {
|
|
2237
2150
|
[P in keyof T as P extends K ? never : P]: T[P];
|
|
@@ -2472,8 +2385,6 @@ declare type PrismaPromiseInteractiveTransaction<PayloadType = unknown> = {
|
|
|
2472
2385
|
|
|
2473
2386
|
declare type PrismaPromiseTransaction<PayloadType = unknown> = PrismaPromiseBatchTransaction | PrismaPromiseInteractiveTransaction<PayloadType>;
|
|
2474
2387
|
|
|
2475
|
-
export declare const PrivateResultType: unique symbol;
|
|
2476
|
-
|
|
2477
2388
|
declare namespace Public {
|
|
2478
2389
|
export {
|
|
2479
2390
|
validator
|
|
@@ -2495,7 +2406,6 @@ declare namespace Public_2 {
|
|
|
2495
2406
|
declare type Query = {
|
|
2496
2407
|
sql: string;
|
|
2497
2408
|
args: Array<unknown>;
|
|
2498
|
-
argTypes: Array<ArgType>;
|
|
2499
2409
|
};
|
|
2500
2410
|
|
|
2501
2411
|
declare interface Queryable {
|
|
@@ -2627,7 +2537,7 @@ export declare type RawParameters = {
|
|
|
2627
2537
|
values: string;
|
|
2628
2538
|
};
|
|
2629
2539
|
|
|
2630
|
-
export declare type RawQueryArgs = Sql |
|
|
2540
|
+
export declare type RawQueryArgs = Sql | [query: string, ...values: RawValue[]];
|
|
2631
2541
|
|
|
2632
2542
|
declare type RawTaggedValue = {
|
|
2633
2543
|
$type: 'Raw';
|
|
@@ -2843,7 +2753,7 @@ export declare type Return<T> = T extends (...args: any[]) => infer R ? R : T;
|
|
|
2843
2753
|
|
|
2844
2754
|
declare type Runtime = "edge-routine" | "workerd" | "deno" | "lagon" | "react-native" | "netlify" | "electron" | "node" | "bun" | "edge-light" | "fastly" | "unknown";
|
|
2845
2755
|
|
|
2846
|
-
|
|
2756
|
+
declare type RuntimeDataModel = {
|
|
2847
2757
|
readonly models: Record<string, RuntimeModel>;
|
|
2848
2758
|
readonly enums: Record<string, RuntimeEnum>;
|
|
2849
2759
|
readonly types: Record<string, RuntimeModel>;
|
|
@@ -2871,32 +2781,9 @@ export declare type SelectField<P extends SelectablePayloadFields<any, any>, K e
|
|
|
2871
2781
|
composites: Record<K, any>;
|
|
2872
2782
|
} ? P['composites'][K] : never;
|
|
2873
2783
|
|
|
2874
|
-
declare type Selection_2 = Record<string, boolean |
|
|
2784
|
+
declare type Selection_2 = Record<string, boolean | JsArgs>;
|
|
2875
2785
|
export { Selection_2 as Selection }
|
|
2876
2786
|
|
|
2877
|
-
export declare function serializeJsonQuery({ modelName, action, args, runtimeDataModel, extensions, callsite, clientMethod, errorFormat, clientVersion, previewFeatures, globalOmit, }: SerializeParams): JsonQuery;
|
|
2878
|
-
|
|
2879
|
-
declare type SerializeParams = {
|
|
2880
|
-
runtimeDataModel: RuntimeDataModel;
|
|
2881
|
-
modelName?: string;
|
|
2882
|
-
action: Action;
|
|
2883
|
-
args?: JsArgs;
|
|
2884
|
-
extensions?: MergedExtensionsList;
|
|
2885
|
-
callsite?: CallSite;
|
|
2886
|
-
clientMethod: string;
|
|
2887
|
-
clientVersion: string;
|
|
2888
|
-
errorFormat: ErrorFormat;
|
|
2889
|
-
previewFeatures: string[];
|
|
2890
|
-
globalOmit?: GlobalOmitOptions;
|
|
2891
|
-
};
|
|
2892
|
-
|
|
2893
|
-
declare class Skip {
|
|
2894
|
-
constructor(param?: symbol);
|
|
2895
|
-
ifUndefined<T>(value: T | undefined): T | Skip;
|
|
2896
|
-
}
|
|
2897
|
-
|
|
2898
|
-
export declare const skip: Skip;
|
|
2899
|
-
|
|
2900
2787
|
/**
|
|
2901
2788
|
* An interface that represents a span. A span represents a single operation
|
|
2902
2789
|
* within a trace. Examples of span might include remote procedure calls or a
|
|
@@ -3249,13 +3136,6 @@ declare namespace Transaction_2 {
|
|
|
3249
3136
|
}
|
|
3250
3137
|
}
|
|
3251
3138
|
|
|
3252
|
-
declare interface TransactionContext extends Queryable {
|
|
3253
|
-
/**
|
|
3254
|
-
* Starts new transaction.
|
|
3255
|
-
*/
|
|
3256
|
-
startTransaction(): Promise<Result_4<Transaction>>;
|
|
3257
|
-
}
|
|
3258
|
-
|
|
3259
3139
|
declare type TransactionHeaders = {
|
|
3260
3140
|
traceparent?: string;
|
|
3261
3141
|
};
|
|
@@ -3272,13 +3152,6 @@ declare type TransactionOptions_2<InteractiveTransactionPayload> = {
|
|
|
3272
3152
|
options: BatchTransactionOptions;
|
|
3273
3153
|
};
|
|
3274
3154
|
|
|
3275
|
-
export declare class TypedSql<Values extends readonly unknown[], Result> {
|
|
3276
|
-
[PrivateResultType]: Result;
|
|
3277
|
-
constructor(sql: string, values: Values);
|
|
3278
|
-
get sql(): string;
|
|
3279
|
-
get values(): Values;
|
|
3280
|
-
}
|
|
3281
|
-
|
|
3282
3155
|
export declare type TypeMapCbDef = Fn<{
|
|
3283
3156
|
extArgs: InternalArgs;
|
|
3284
3157
|
clientOptions: ClientOptionDef;
|
|
@@ -3293,10 +3166,6 @@ declare namespace Types {
|
|
|
3293
3166
|
Extensions_2 as Extensions,
|
|
3294
3167
|
Utils,
|
|
3295
3168
|
Public_2 as Public,
|
|
3296
|
-
isSkip,
|
|
3297
|
-
Skip,
|
|
3298
|
-
skip,
|
|
3299
|
-
UnknownTypedSql,
|
|
3300
3169
|
OperationPayload as Payload
|
|
3301
3170
|
}
|
|
3302
3171
|
}
|
|
@@ -3307,8 +3176,6 @@ declare type UnknownErrorParams = {
|
|
|
3307
3176
|
batchRequestIdx?: number;
|
|
3308
3177
|
};
|
|
3309
3178
|
|
|
3310
|
-
export declare type UnknownTypedSql = TypedSql<unknown[], unknown>;
|
|
3311
|
-
|
|
3312
3179
|
declare type Unpacker = (data: any) => any;
|
|
3313
3180
|
|
|
3314
3181
|
export declare type UnwrapPayload<P> = {} extends P ? unknown : {
|
|
@@ -3347,6 +3214,9 @@ declare namespace Utils {
|
|
|
3347
3214
|
Narrow,
|
|
3348
3215
|
Exact,
|
|
3349
3216
|
Cast,
|
|
3217
|
+
JsonObject,
|
|
3218
|
+
JsonArray,
|
|
3219
|
+
JsonValue,
|
|
3350
3220
|
Record_2 as Record,
|
|
3351
3221
|
UnwrapPromise,
|
|
3352
3222
|
UnwrapTuple,
|