@prisma-next/mongo-lowering 0.5.0-dev.7 → 0.5.0-dev.9
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/README.md +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.mts.map +1 -1
- package/package.json +3 -3
- package/src/adapter-types.ts +1 -1
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@ Adapter and driver interface contracts for the MongoDB transport layer.
|
|
|
4
4
|
|
|
5
5
|
## Responsibilities
|
|
6
6
|
|
|
7
|
-
- **Adapter interface**: `MongoAdapter` — defines `lower(plan: MongoQueryPlan): AnyMongoWireCommand
|
|
7
|
+
- **Adapter interface**: `MongoAdapter` — defines `lower(plan: MongoQueryPlan): Promise<AnyMongoWireCommand>`, the contract for converting a typed query plan into a wire command. Async at the boundary: callers must `await lower(...)` so adapters may run async codec encodes (e.g. `resolveValue`) before producing the wire shape.
|
|
8
8
|
- **Driver interface**: `MongoDriver` — defines `execute<Row>(wireCommand): AsyncIterable<Row>` and `close()`, the contract for sending wire commands to a MongoDB instance
|
|
9
9
|
|
|
10
10
|
## Dependencies
|
package/dist/index.d.mts
CHANGED
|
@@ -3,7 +3,7 @@ import { AnyMongoWireCommand } from "@prisma-next/mongo-wire";
|
|
|
3
3
|
|
|
4
4
|
//#region src/adapter-types.d.ts
|
|
5
5
|
interface MongoAdapter {
|
|
6
|
-
lower(plan: MongoQueryPlan): AnyMongoWireCommand
|
|
6
|
+
lower(plan: MongoQueryPlan): Promise<AnyMongoWireCommand>;
|
|
7
7
|
}
|
|
8
8
|
//#endregion
|
|
9
9
|
//#region src/driver-types.d.ts
|
package/dist/index.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/adapter-types.ts","../src/driver-types.ts"],"sourcesContent":[],"mappings":";;;;UAGiB,YAAA;cACH,iBAAiB;
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/adapter-types.ts","../src/driver-types.ts"],"sourcesContent":[],"mappings":";;;;UAGiB,YAAA;cACH,iBAAiB,QAAQ;AADvC;;;UCDiB,WAAA;4BACW,sBAAsB,cAAc;WACrD;ADDX"}
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma-next/mongo-lowering",
|
|
3
|
-
"version": "0.5.0-dev.
|
|
3
|
+
"version": "0.5.0-dev.9",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"description": "Adapter and driver interfaces for Prisma Next MongoDB lowering",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@prisma-next/mongo-wire": "0.5.0-dev.
|
|
9
|
-
"@prisma-next/mongo-query-ast": "0.5.0-dev.
|
|
8
|
+
"@prisma-next/mongo-wire": "0.5.0-dev.9",
|
|
9
|
+
"@prisma-next/mongo-query-ast": "0.5.0-dev.9"
|
|
10
10
|
},
|
|
11
11
|
"devDependencies": {
|
|
12
12
|
"tsdown": "0.18.4",
|
package/src/adapter-types.ts
CHANGED
|
@@ -2,5 +2,5 @@ import type { MongoQueryPlan } from '@prisma-next/mongo-query-ast/execution';
|
|
|
2
2
|
import type { AnyMongoWireCommand } from '@prisma-next/mongo-wire';
|
|
3
3
|
|
|
4
4
|
export interface MongoAdapter {
|
|
5
|
-
lower(plan: MongoQueryPlan): AnyMongoWireCommand
|
|
5
|
+
lower(plan: MongoQueryPlan): Promise<AnyMongoWireCommand>;
|
|
6
6
|
}
|