@prisma-next/sql-runtime 0.3.0-pr.110.2 → 0.3.0-pr.111.10
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/package.json
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma-next/sql-runtime",
|
|
3
|
-
"version": "0.3.0-pr.
|
|
3
|
+
"version": "0.3.0-pr.111.10",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"description": "SQL runtime implementation for Prisma Next",
|
|
7
7
|
"dependencies": {
|
|
8
8
|
"arktype": "^2.1.26",
|
|
9
|
-
"@prisma-next/contract": "0.3.0-pr.
|
|
10
|
-
"@prisma-next/core-execution-plane": "0.3.0-pr.
|
|
11
|
-
"@prisma-next/operations": "0.3.0-pr.
|
|
12
|
-
"@prisma-next/runtime-executor": "0.3.0-pr.
|
|
13
|
-
"@prisma-next/sql-contract": "0.3.0-pr.
|
|
14
|
-
"@prisma-next/sql-operations": "0.3.0-pr.
|
|
15
|
-
"@prisma-next/sql-relational-core": "0.3.0-pr.
|
|
9
|
+
"@prisma-next/contract": "0.3.0-pr.111.10",
|
|
10
|
+
"@prisma-next/core-execution-plane": "0.3.0-pr.111.10",
|
|
11
|
+
"@prisma-next/operations": "0.3.0-pr.111.10",
|
|
12
|
+
"@prisma-next/runtime-executor": "0.3.0-pr.111.10",
|
|
13
|
+
"@prisma-next/sql-contract": "0.3.0-pr.111.10",
|
|
14
|
+
"@prisma-next/sql-operations": "0.3.0-pr.111.10",
|
|
15
|
+
"@prisma-next/sql-relational-core": "0.3.0-pr.111.10"
|
|
16
16
|
},
|
|
17
17
|
"devDependencies": {
|
|
18
18
|
"@types/pg": "8.16.0",
|
package/test/utils.ts
CHANGED
|
@@ -243,17 +243,27 @@ export function createStubAdapter(): Adapter<SelectAst, SqlContract<SqlStorage>,
|
|
|
243
243
|
* This helper allows tests to create contracts without depending on sql-query.
|
|
244
244
|
*/
|
|
245
245
|
export function createTestContract<T extends SqlContract<SqlStorage>>(
|
|
246
|
-
contract: Partial<T
|
|
247
|
-
|
|
246
|
+
contract: Partial<Omit<T, 'coreHash' | 'profileHash'>> & {
|
|
247
|
+
coreHash?: string | undefined;
|
|
248
|
+
profileHash?: string | undefined;
|
|
249
|
+
},
|
|
248
250
|
): T {
|
|
249
251
|
return {
|
|
250
252
|
...contract,
|
|
253
|
+
schemaVersion: contract.schemaVersion ?? '1',
|
|
254
|
+
target: contract.target ?? 'postgres',
|
|
255
|
+
targetFamily: contract.targetFamily ?? 'sql',
|
|
256
|
+
storage: contract.storage ?? { tables: {} },
|
|
257
|
+
models: contract.models ?? {},
|
|
258
|
+
relations: contract.relations ?? {},
|
|
251
259
|
mappings: contract.mappings ?? { codecTypes: {}, operationTypes: {} },
|
|
252
260
|
capabilities: contract.capabilities ?? {},
|
|
253
261
|
extensionPacks: contract.extensionPacks ?? {},
|
|
254
262
|
meta: contract.meta ?? {},
|
|
255
263
|
sources: contract.sources ?? {},
|
|
256
|
-
|
|
264
|
+
coreHash: (contract.coreHash ?? 'sha256:testcore') satisfies string as never,
|
|
265
|
+
profileHash: (contract.profileHash ?? 'sha256:testprofile') satisfies string as never,
|
|
266
|
+
} satisfies SqlContract as never;
|
|
257
267
|
}
|
|
258
268
|
|
|
259
269
|
// Re-export generic utilities from test-utils
|