@prisma/orm-target-mongo 8.0.0-rc.12-dev.8 → 8.0.0-rc.12-dev.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/dist/adapter.d.mts +1 -1
- package/dist/adapter.mjs +2 -2
- package/dist/adapter.mjs.map +1 -1
- package/dist/adapter__control.d.mts +208 -3
- package/dist/adapter__control.d.mts.map +1 -0
- package/dist/adapter__control.mjs +516 -3
- package/dist/adapter__control.mjs.map +1 -0
- package/dist/adapter__runtime.mjs +2 -2
- package/dist/adapter__runtime.mjs.map +1 -1
- package/dist/codec-ids-Bz230VLx-Dbi_KV7J.mjs +16 -0
- package/dist/codec-ids-Bz230VLx-Dbi_KV7J.mjs.map +1 -0
- package/dist/codec-ids-Ck-Z63jY.d.mts +16 -0
- package/dist/codec-ids-Ck-Z63jY.d.mts.map +1 -0
- package/dist/{adapter__codec-types.d.mts → codec-types-KM2ikqd7.d.mts} +20 -3
- package/dist/codec-types-KM2ikqd7.d.mts.map +1 -0
- package/dist/codecs-ChbLv6Rd-BmoC4ktF.mjs +393 -0
- package/dist/codecs-ChbLv6Rd-BmoC4ktF.mjs.map +1 -0
- package/dist/codecs-DsyGq31F.d.mts +33 -0
- package/dist/codecs-DsyGq31F.d.mts.map +1 -0
- package/dist/{control-CDO-vU3z.d.mts → control-Cfov50jX.d.mts} +82 -82
- package/dist/control-Cfov50jX.d.mts.map +1 -0
- package/dist/{control-CB0AAVw_.mjs → control-DESRWr7S.mjs} +140 -145
- package/dist/control-DESRWr7S.mjs.map +1 -0
- package/dist/{data-types-CxW7xs7P-Dxj3sc0T.mjs → data-types-B2WnpO9e-D97kwz96.mjs} +12 -4
- package/dist/data-types-B2WnpO9e-D97kwz96.mjs.map +1 -0
- package/dist/data-types-Kd9NIobH.d.mts +18 -0
- package/dist/data-types-Kd9NIobH.d.mts.map +1 -0
- package/dist/{descriptor-meta-BQRniVcn-8meGwEZr.mjs → descriptor-meta-CSm-03KE-DDeX4NIT.mjs} +4 -4
- package/dist/descriptor-meta-CSm-03KE-DDeX4NIT.mjs.map +1 -0
- package/dist/driver.mjs +1 -1
- package/dist/driver__control.d.mts +1 -1
- package/dist/driver__control.mjs +2 -2
- package/dist/driver__control.mjs.map +1 -1
- package/dist/{migration-BkqcE2Uv.d.mts → migration-DeZyk0tl.d.mts} +3 -3
- package/dist/{migration-BkqcE2Uv.d.mts.map → migration-DeZyk0tl.d.mts.map} +1 -1
- package/dist/{migration-factories-CqjDpXHw-fxXh_wY1.mjs → migration-factories-BwvR6Mvk-Ba1ywTUZ.mjs} +2 -2
- package/dist/migration-factories-BwvR6Mvk-Ba1ywTUZ.mjs.map +1 -0
- package/dist/{mongo-adapter-NKwUwPku-Bqm1kySe.mjs → mongo-adapter-Dx9Gs2Lj-CA6H_zbI.mjs} +10 -5
- package/dist/mongo-adapter-Dx9Gs2Lj-CA6H_zbI.mjs.map +1 -0
- package/dist/{mongo-adapter-CjJU3S9o-BIJruFYW.d.mts → mongo-adapter-wvK2fQOZ-BXo5NxEB.d.mts} +2 -2
- package/dist/mongo-adapter-wvK2fQOZ-BXo5NxEB.d.mts.map +1 -0
- package/dist/{mongo-driver-BGXMvnQ8-B_flHHzS.mjs → mongo-driver-CZDo4GWY-CDmclLXI.mjs} +3 -3
- package/dist/mongo-driver-CZDo4GWY-CDmclLXI.mjs.map +1 -0
- package/dist/{op-factory-call-B7EKa4Ri-B2Lb6W68.d.mts → op-factory-call-DV0hKDUc-DHt1CB5L.d.mts} +3 -3
- package/dist/{op-factory-call-B7EKa4Ri-B2Lb6W68.d.mts.map → op-factory-call-DV0hKDUc-DHt1CB5L.d.mts.map} +1 -1
- package/dist/{pack-MK8ZQfrL.d.mts → pack-CPxA9byH.d.mts} +2 -2
- package/dist/{pack-MK8ZQfrL.d.mts.map → pack-CPxA9byH.d.mts.map} +1 -1
- package/dist/target.d.mts +9 -7
- package/dist/target.mjs +6 -3
- package/dist/target__codec-ids.d.mts +2 -0
- package/dist/target__codec-ids.mjs +2 -0
- package/dist/target__codec-types.d.mts +2 -2
- package/dist/target__codecs.d.mts +2 -0
- package/dist/target__codecs.mjs +2 -0
- package/dist/target__control.d.mts +3 -4
- package/dist/target__control.mjs +1 -1
- package/dist/target__data-types.d.mts +2 -0
- package/dist/target__data-types.mjs +2 -0
- package/dist/target__migration.d.mts +1 -1
- package/dist/target__migration.mjs +1 -1
- package/dist/target__pack.d.mts +1 -1
- package/dist/target__pack.mjs +1 -1
- package/dist/target__pack.mjs.map +1 -1
- package/dist/target__runtime.mjs +1 -1
- package/dist/target__runtime.mjs.map +1 -1
- package/package.json +13 -14
- package/dist/adapter__codec-ids.d.mts +0 -12
- package/dist/adapter__codec-ids.d.mts.map +0 -1
- package/dist/adapter__codec-ids.mjs +0 -2
- package/dist/adapter__codec-types.d.mts.map +0 -1
- package/dist/adapter__codec-types.mjs +0 -1
- package/dist/adapter__codecs.d.mts +0 -14
- package/dist/adapter__codecs.d.mts.map +0 -1
- package/dist/adapter__codecs.mjs +0 -2
- package/dist/adapter__data-types.d.mts +0 -14
- package/dist/adapter__data-types.d.mts.map +0 -1
- package/dist/adapter__data-types.mjs +0 -2
- package/dist/codec-ids-BennPcpQ-Btzz3ILV.mjs +0 -12
- package/dist/codec-ids-BennPcpQ-Btzz3ILV.mjs.map +0 -1
- package/dist/codec-types-Bx2fHyq_.d.mts +0 -35
- package/dist/codec-types-Bx2fHyq_.d.mts.map +0 -1
- package/dist/codecs-0ilNxnkk-P6rdFjk0.mjs +0 -179
- package/dist/codecs-0ilNxnkk-P6rdFjk0.mjs.map +0 -1
- package/dist/control-BDevch6o.mjs +0 -443
- package/dist/control-BDevch6o.mjs.map +0 -1
- package/dist/control-CB0AAVw_.mjs.map +0 -1
- package/dist/control-CDO-vU3z.d.mts.map +0 -1
- package/dist/control-CbxqWOJS.d.mts +0 -176
- package/dist/control-CbxqWOJS.d.mts.map +0 -1
- package/dist/data-types-CxW7xs7P-Dxj3sc0T.mjs.map +0 -1
- package/dist/descriptor-meta-BQRniVcn-8meGwEZr.mjs.map +0 -1
- package/dist/migration-factories-CqjDpXHw-fxXh_wY1.mjs.map +0 -1
- package/dist/mongo-adapter-CjJU3S9o-BIJruFYW.d.mts.map +0 -1
- package/dist/mongo-adapter-NKwUwPku-Bqm1kySe.mjs.map +0 -1
- package/dist/mongo-driver-BGXMvnQ8-B_flHHzS.mjs.map +0 -1
|
@@ -1,3 +1,516 @@
|
|
|
1
|
-
import { t as
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import { a as MONGO_DOUBLE_CODEC_ID, c as MONGO_JSON_CODEC_ID, i as MONGO_DECIMAL128_CODEC_ID, l as MONGO_OBJECTID_CODEC_ID, n as MONGO_BOOLEAN_CODEC_ID, o as MONGO_INT32_CODEC_ID, r as MONGO_DATE_CODEC_ID, s as MONGO_INT64_CODEC_ID, t as MONGO_BINARY_CODEC_ID, u as MONGO_STRING_CODEC_ID } from "./codec-ids-Bz230VLx-Dbi_KV7J.mjs";
|
|
2
|
+
import { t as createMongoAdapter } from "./mongo-adapter-Dx9Gs2Lj-CA6H_zbI.mjs";
|
|
3
|
+
import { structuredError } from "@prisma/orm-framework/utils/structured-error";
|
|
4
|
+
import { blindCast } from "@prisma/orm-framework/utils/casts";
|
|
5
|
+
import { expr, fn } from "@prisma/orm-family-mongo/query-builder";
|
|
6
|
+
import { collection } from "@prisma/orm-family-mongo/query-builder/contract-free";
|
|
7
|
+
import { MongoSchemaCollection, MongoSchemaCollectionOptions, MongoSchemaIR, MongoSchemaIndex, MongoSchemaValidator } from "@prisma/orm-family-mongo/schema-ir";
|
|
8
|
+
import { parseMarkerRowSafely, withMarkerReadErrorHandling } from "@prisma/orm-framework/errors/execution";
|
|
9
|
+
import { MongoAggFieldRef, MongoAggLiteral, MongoAggOperator } from "@prisma/orm-family-mongo/query-ast/execution";
|
|
10
|
+
import { type } from "arktype";
|
|
11
|
+
import { MongoServerError } from "mongodb";
|
|
12
|
+
import { ledgerOriginFromStored } from "@prisma/orm-toolchain/migration-tools/ledger-origin";
|
|
13
|
+
//#region ../../../3-mongo-target/2-mongo-adapter/dist/control.mjs
|
|
14
|
+
/**
|
|
15
|
+
* Executes the read-only catalog inspections (`listCollections` / `listIndexes`)
|
|
16
|
+
* that migration prechecks/postchecks and operation preview evaluate, directly
|
|
17
|
+
* against `db`. Routing these checks through the adapter's lowering seam is
|
|
18
|
+
* deferred to the `typed-migration-verification-queries` slice.
|
|
19
|
+
*/
|
|
20
|
+
var MongoInspectionExecutor = class {
|
|
21
|
+
db;
|
|
22
|
+
constructor(db) {
|
|
23
|
+
this.db = db;
|
|
24
|
+
}
|
|
25
|
+
async listIndexes(cmd) {
|
|
26
|
+
try {
|
|
27
|
+
return await this.db.collection(cmd.collection).listIndexes().toArray();
|
|
28
|
+
} catch (error) {
|
|
29
|
+
if (error instanceof MongoServerError && error.code === 26) return [];
|
|
30
|
+
throw error;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
async listCollections(_cmd) {
|
|
34
|
+
return this.db.listCollections().toArray();
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
const PRISMA_MIGRATIONS_COLLECTION = "_prisma_migrations";
|
|
38
|
+
function parseIndexKeys(keySpec) {
|
|
39
|
+
const keys = [];
|
|
40
|
+
for (const [field, direction] of Object.entries(keySpec)) keys.push({
|
|
41
|
+
field,
|
|
42
|
+
direction
|
|
43
|
+
});
|
|
44
|
+
return keys;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Exported for unit tests to exercise the defensive `!key` guard; not part of
|
|
48
|
+
* the public API. Callers in this package use it via the `introspectSchema`
|
|
49
|
+
* pipeline only.
|
|
50
|
+
*/
|
|
51
|
+
function isDefaultIdIndex(doc) {
|
|
52
|
+
const key = doc["key"];
|
|
53
|
+
if (!key) return false;
|
|
54
|
+
const entries = Object.entries(key);
|
|
55
|
+
return entries.length === 1 && entries[0]?.[0] === "_id" && entries[0]?.[1] === 1;
|
|
56
|
+
}
|
|
57
|
+
function parseIndex(doc) {
|
|
58
|
+
const keySpec = doc["key"];
|
|
59
|
+
return new MongoSchemaIndex({
|
|
60
|
+
keys: parseIndexKeys(keySpec),
|
|
61
|
+
unique: doc["unique"],
|
|
62
|
+
sparse: doc["sparse"],
|
|
63
|
+
expireAfterSeconds: doc["expireAfterSeconds"],
|
|
64
|
+
partialFilterExpression: doc["partialFilterExpression"],
|
|
65
|
+
wildcardProjection: doc["wildcardProjection"],
|
|
66
|
+
collation: doc["collation"] ? blindCast(doc["collation"]) : void 0,
|
|
67
|
+
weights: doc["weights"],
|
|
68
|
+
default_language: doc["default_language"],
|
|
69
|
+
language_override: doc["language_override"]
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
function parseValidator(options) {
|
|
73
|
+
const validator = options["validator"];
|
|
74
|
+
if (!validator) return void 0;
|
|
75
|
+
const jsonSchema = validator["$jsonSchema"];
|
|
76
|
+
if (!jsonSchema) return void 0;
|
|
77
|
+
return new MongoSchemaValidator({
|
|
78
|
+
jsonSchema,
|
|
79
|
+
validationLevel: options["validationLevel"] ?? "strict",
|
|
80
|
+
validationAction: options["validationAction"] ?? "error"
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
function parseCollectionOptions(info) {
|
|
84
|
+
const options = info["options"];
|
|
85
|
+
if (!options) return void 0;
|
|
86
|
+
const capped = options["capped"];
|
|
87
|
+
const size = options["size"];
|
|
88
|
+
const max = options["max"];
|
|
89
|
+
const timeseries = options["timeseries"];
|
|
90
|
+
const collation = options["collation"] ? blindCast(options["collation"]) : void 0;
|
|
91
|
+
const changeStreamPreAndPostImages = options["changeStreamPreAndPostImages"];
|
|
92
|
+
const clusteredIndex = options["clusteredIndex"];
|
|
93
|
+
if (!(capped || timeseries || collation || changeStreamPreAndPostImages || clusteredIndex)) return void 0;
|
|
94
|
+
return new MongoSchemaCollectionOptions({
|
|
95
|
+
...capped ? { capped: {
|
|
96
|
+
size: size ?? 0,
|
|
97
|
+
...max != null ? { max } : {}
|
|
98
|
+
} } : {},
|
|
99
|
+
...timeseries ? { timeseries } : {},
|
|
100
|
+
...collation ? { collation } : {},
|
|
101
|
+
...changeStreamPreAndPostImages ? { changeStreamPreAndPostImages } : {},
|
|
102
|
+
...clusteredIndex ? { clusteredIndex } : {}
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
async function introspectSchema(db) {
|
|
106
|
+
const collectionInfos = await db.listCollections().toArray();
|
|
107
|
+
const collections = [];
|
|
108
|
+
for (const info of collectionInfos) {
|
|
109
|
+
const name = info["name"];
|
|
110
|
+
const type = info["type"];
|
|
111
|
+
if (name === PRISMA_MIGRATIONS_COLLECTION) continue;
|
|
112
|
+
if (name.startsWith("system.")) continue;
|
|
113
|
+
if (type === "view") continue;
|
|
114
|
+
const indexes = (await db.collection(name).listIndexes().toArray()).filter((doc) => !isDefaultIdIndex(doc)).map(parseIndex);
|
|
115
|
+
const validator = parseValidator("options" in info ? info["options"] : {});
|
|
116
|
+
const options = parseCollectionOptions(info);
|
|
117
|
+
collections.push(new MongoSchemaCollection({
|
|
118
|
+
name,
|
|
119
|
+
indexes,
|
|
120
|
+
...validator ? { validator } : {},
|
|
121
|
+
...options ? { options } : {}
|
|
122
|
+
}));
|
|
123
|
+
}
|
|
124
|
+
return new MongoSchemaIR(collections);
|
|
125
|
+
}
|
|
126
|
+
function mongoAdapterError(code, message, options) {
|
|
127
|
+
return structuredError(code, message, options);
|
|
128
|
+
}
|
|
129
|
+
function describeReceivedValue(value) {
|
|
130
|
+
if (value === null) return "null";
|
|
131
|
+
if (typeof value !== "object") return typeof value;
|
|
132
|
+
return `object with keys [${Object.keys(value).join(", ")}]`;
|
|
133
|
+
}
|
|
134
|
+
const COLLECTION = "_prisma_migrations";
|
|
135
|
+
const MONGO_MARKER_COLLECTION = `_prisma_migrations marker documents in ${COLLECTION}`;
|
|
136
|
+
const MONGO_LEDGER_COLLECTION = `_prisma_migrations ledger documents in ${COLLECTION}`;
|
|
137
|
+
const MongoMarkerDocSchema = type({
|
|
138
|
+
space: "string",
|
|
139
|
+
storageHash: "string",
|
|
140
|
+
profileHash: "string",
|
|
141
|
+
"contractJson?": "unknown | null",
|
|
142
|
+
"canonicalVersion?": "number | null",
|
|
143
|
+
"updatedAt?": "Date",
|
|
144
|
+
"appTag?": "string | null",
|
|
145
|
+
"meta?": type({ "[string]": "unknown" }).or("null"),
|
|
146
|
+
"invariants?": type("string").array(),
|
|
147
|
+
"+": "delete"
|
|
148
|
+
});
|
|
149
|
+
function parseMongoMarkerDoc(doc) {
|
|
150
|
+
const result = MongoMarkerDocSchema(doc);
|
|
151
|
+
if (result instanceof type.errors) throw mongoAdapterError("CONTRACT.MARKER_ROW_CORRUPT", `Invalid marker doc on ${COLLECTION}: ${result.summary}`, { meta: {
|
|
152
|
+
collection: COLLECTION,
|
|
153
|
+
detail: result.summary
|
|
154
|
+
} });
|
|
155
|
+
return {
|
|
156
|
+
storageHash: result.storageHash,
|
|
157
|
+
profileHash: result.profileHash,
|
|
158
|
+
contractJson: result.contractJson ?? null,
|
|
159
|
+
canonicalVersion: result.canonicalVersion ?? null,
|
|
160
|
+
updatedAt: result.updatedAt ?? /* @__PURE__ */ new Date(),
|
|
161
|
+
appTag: result.appTag ?? null,
|
|
162
|
+
meta: result.meta ?? {},
|
|
163
|
+
invariants: result.invariants ?? []
|
|
164
|
+
};
|
|
165
|
+
}
|
|
166
|
+
function parseMongoMarkerDocSafely(doc, space) {
|
|
167
|
+
return parseMarkerRowSafely(doc, parseMongoMarkerDoc, {
|
|
168
|
+
space,
|
|
169
|
+
markerLocation: MONGO_MARKER_COLLECTION
|
|
170
|
+
});
|
|
171
|
+
}
|
|
172
|
+
const MARKER_LEDGER_COLLECTION = "_prisma_migrations";
|
|
173
|
+
function isMongoControlDriver(driver) {
|
|
174
|
+
return driver.familyId === "mongo" && driver.targetId === "mongo" && "execute" in driver && typeof driver.execute === "function";
|
|
175
|
+
}
|
|
176
|
+
function requireMongoControlDriver(driver) {
|
|
177
|
+
if (!isMongoControlDriver(driver)) throw mongoAdapterError("CONFIG.VALIDATION_FAILED", "Expected a Mongo control driver created by mongoControlDriver.create() from `@internal/driver-mongo/control`.", { meta: { received: describeReceivedValue(driver) } });
|
|
178
|
+
return driver;
|
|
179
|
+
}
|
|
180
|
+
function extractDb(driver) {
|
|
181
|
+
return requireMongoControlDriver(driver).db;
|
|
182
|
+
}
|
|
183
|
+
/**
|
|
184
|
+
* Mongo control adapter for control-plane operations like introspection
|
|
185
|
+
* and marker-ledger CAS. Implements the family-level `MongoControlAdapter`
|
|
186
|
+
* SPI. Every marker/ledger operation builds a canonical command inline via
|
|
187
|
+
* the contract-free fluent builder and dispatches it through the family
|
|
188
|
+
* adapter's lowering path (`createMongoAdapter().lower(plan, {})`) onto the
|
|
189
|
+
* Mongo wire transport (`driver.execute(wireCommand)`) — the same route SQL
|
|
190
|
+
* marker/ledger ops take through `adapter.lower()` → `driver.query()`.
|
|
191
|
+
*/
|
|
192
|
+
var MongoControlAdapterImpl = class {
|
|
193
|
+
familyId = "mongo";
|
|
194
|
+
targetId = "mongo";
|
|
195
|
+
#adapter = createMongoAdapter();
|
|
196
|
+
#markerLedgerCollection = collection(MARKER_LEDGER_COLLECTION);
|
|
197
|
+
async #execute(driver, command) {
|
|
198
|
+
const plan = {
|
|
199
|
+
collection: MARKER_LEDGER_COLLECTION,
|
|
200
|
+
command,
|
|
201
|
+
meta: {
|
|
202
|
+
target: "mongo",
|
|
203
|
+
targetFamily: "mongo",
|
|
204
|
+
storageHash: "",
|
|
205
|
+
lane: "control"
|
|
206
|
+
}
|
|
207
|
+
};
|
|
208
|
+
const wireCommand = await this.#adapter.lower(plan, {});
|
|
209
|
+
if (!isMongoControlDriver(driver)) throw mongoAdapterError("CONFIG.VALIDATION_FAILED", "Mongo control adapter requires a Mongo control driver with an execute() transport. Provide a MongoControlDriver from `@internal/driver-mongo/control`.", { meta: { received: describeReceivedValue(driver) } });
|
|
210
|
+
const rows = [];
|
|
211
|
+
for await (const row of driver.execute(wireCommand)) rows.push(row);
|
|
212
|
+
return rows;
|
|
213
|
+
}
|
|
214
|
+
async executeDdl(driver, command) {
|
|
215
|
+
const wire = await this.#adapter.lower({ command }, {});
|
|
216
|
+
await driver.run(wire);
|
|
217
|
+
}
|
|
218
|
+
/**
|
|
219
|
+
* Server-side invariant-merge aggregation expression:
|
|
220
|
+
* `$sortArray({ input: $setUnion([$ifNull('$invariants', []), incoming]), sortBy: 1 })`.
|
|
221
|
+
*
|
|
222
|
+
* Built through the typed agg-expr layer — `fn.setUnion` plus the generic
|
|
223
|
+
* `MongoAggOperator` for `$ifNull` / `$sortArray` (neither has a named `fn`
|
|
224
|
+
* helper). Returns a `MongoAggOperator` that is passed directly to
|
|
225
|
+
* `f.stage.set({ invariants: ... })` in the update pipeline.
|
|
226
|
+
*/
|
|
227
|
+
#invariantMergeExpr(incoming) {
|
|
228
|
+
const existingOrEmpty = MongoAggOperator.of("$ifNull", [MongoAggFieldRef.of("invariants"), MongoAggLiteral.of([])]);
|
|
229
|
+
const merged = fn.setUnion({
|
|
230
|
+
_field: {
|
|
231
|
+
codecId: "mongo/array@1",
|
|
232
|
+
nullable: false
|
|
233
|
+
},
|
|
234
|
+
node: existingOrEmpty
|
|
235
|
+
}, {
|
|
236
|
+
_field: {
|
|
237
|
+
codecId: "mongo/array@1",
|
|
238
|
+
nullable: false
|
|
239
|
+
},
|
|
240
|
+
node: MongoAggLiteral.of([...incoming])
|
|
241
|
+
});
|
|
242
|
+
return MongoAggOperator.of("$sortArray", {
|
|
243
|
+
input: merged.node,
|
|
244
|
+
sortBy: MongoAggLiteral.of(1)
|
|
245
|
+
});
|
|
246
|
+
}
|
|
247
|
+
async readMarker(driver, space) {
|
|
248
|
+
const doc = (await withMarkerReadErrorHandling(() => this.#execute(driver, this.#markerLedgerCollection.aggregate().match((f) => f._id.eq(space)).match((f) => f.space.eq(space)).limit(1).build()), {
|
|
249
|
+
space,
|
|
250
|
+
markerLocation: MONGO_MARKER_COLLECTION
|
|
251
|
+
}))[0];
|
|
252
|
+
if (!doc) return null;
|
|
253
|
+
return parseMongoMarkerDocSafely(doc, space);
|
|
254
|
+
}
|
|
255
|
+
async readAllMarkers(driver) {
|
|
256
|
+
const docs = await withMarkerReadErrorHandling(() => this.#execute(driver, this.#markerLedgerCollection.aggregate().match((f) => f._id.type("string")).match((f) => f.space.type("string")).match((f) => expr(fn.eq(f._id, f.space))).build()), {
|
|
257
|
+
space: "app",
|
|
258
|
+
markerLocation: MONGO_MARKER_COLLECTION
|
|
259
|
+
});
|
|
260
|
+
const out = /* @__PURE__ */ new Map();
|
|
261
|
+
for (const doc of docs) {
|
|
262
|
+
const space = doc["space"];
|
|
263
|
+
/* v8 ignore next -- @preserve type-narrowing guard: the $match stage above filters on `space: { $type: 'string' }`, so this branch is unreachable at runtime. The check exists so the `out.set(space, ...)` call below can accept `string`. */
|
|
264
|
+
if (typeof space !== "string") continue;
|
|
265
|
+
out.set(space, parseMongoMarkerDocSafely(doc, space));
|
|
266
|
+
}
|
|
267
|
+
return out;
|
|
268
|
+
}
|
|
269
|
+
async initMarker(driver, space, destination) {
|
|
270
|
+
const document = {
|
|
271
|
+
_id: space,
|
|
272
|
+
space,
|
|
273
|
+
storageHash: destination.storageHash,
|
|
274
|
+
profileHash: destination.profileHash,
|
|
275
|
+
contractJson: null,
|
|
276
|
+
canonicalVersion: null,
|
|
277
|
+
updatedAt: /* @__PURE__ */ new Date(),
|
|
278
|
+
appTag: null,
|
|
279
|
+
meta: {},
|
|
280
|
+
invariants: [...destination.invariants ?? []]
|
|
281
|
+
};
|
|
282
|
+
await this.#execute(driver, this.#markerLedgerCollection.insertOne(document));
|
|
283
|
+
}
|
|
284
|
+
async updateMarker(driver, space, expectedFrom, destination) {
|
|
285
|
+
const { invariants } = destination;
|
|
286
|
+
return (await this.#execute(driver, this.#markerLedgerCollection.match((f) => f._id.eq(space)).match((f) => f.space.eq(space)).match((f) => f.storageHash.eq(expectedFrom)).findOneAndUpdate((f) => [f.stage.set(invariants === void 0 ? {
|
|
287
|
+
storageHash: MongoAggLiteral.of(destination.storageHash),
|
|
288
|
+
profileHash: MongoAggLiteral.of(destination.profileHash),
|
|
289
|
+
updatedAt: MongoAggLiteral.of(/* @__PURE__ */ new Date())
|
|
290
|
+
} : {
|
|
291
|
+
storageHash: MongoAggLiteral.of(destination.storageHash),
|
|
292
|
+
profileHash: MongoAggLiteral.of(destination.profileHash),
|
|
293
|
+
updatedAt: MongoAggLiteral.of(/* @__PURE__ */ new Date()),
|
|
294
|
+
invariants: this.#invariantMergeExpr(invariants)
|
|
295
|
+
})], { upsert: false }))).length > 0;
|
|
296
|
+
}
|
|
297
|
+
async writeLedgerEntry(driver, space, entry) {
|
|
298
|
+
const document = {
|
|
299
|
+
type: "ledger",
|
|
300
|
+
space,
|
|
301
|
+
edgeId: entry.edgeId,
|
|
302
|
+
from: entry.from,
|
|
303
|
+
to: entry.to,
|
|
304
|
+
migrationName: entry.migrationName,
|
|
305
|
+
migrationHash: entry.migrationHash,
|
|
306
|
+
operations: blindCast(entry.operations),
|
|
307
|
+
appliedAt: /* @__PURE__ */ new Date()
|
|
308
|
+
};
|
|
309
|
+
await this.#execute(driver, this.#markerLedgerCollection.insertOne(document));
|
|
310
|
+
}
|
|
311
|
+
async readLedger(driver, space) {
|
|
312
|
+
const ledgerContext = {
|
|
313
|
+
space: space ?? "*",
|
|
314
|
+
markerLocation: MONGO_LEDGER_COLLECTION
|
|
315
|
+
};
|
|
316
|
+
const chain = this.#markerLedgerCollection.aggregate().match((f) => f.type.eq("ledger"));
|
|
317
|
+
const command = space === void 0 ? chain.sort({ _id: 1 }).build() : chain.match((f) => f.space.eq(space)).sort({ _id: 1 }).build();
|
|
318
|
+
const docs = await withMarkerReadErrorHandling(() => this.#execute(driver, command), ledgerContext);
|
|
319
|
+
const entries = [];
|
|
320
|
+
for (const doc of docs) {
|
|
321
|
+
const migrationName = doc["migrationName"];
|
|
322
|
+
const migrationHash = doc["migrationHash"];
|
|
323
|
+
const from = doc["from"];
|
|
324
|
+
const to = doc["to"];
|
|
325
|
+
const docSpace = doc["space"];
|
|
326
|
+
if (typeof migrationName !== "string" || typeof migrationHash !== "string") continue;
|
|
327
|
+
if (typeof from !== "string" || typeof to !== "string") continue;
|
|
328
|
+
if (typeof docSpace !== "string") continue;
|
|
329
|
+
const appliedAt = doc["appliedAt"];
|
|
330
|
+
const appliedAtDate = appliedAt instanceof Date ? appliedAt : appliedAt !== void 0 ? new Date(String(appliedAt)) : /* @__PURE__ */ new Date();
|
|
331
|
+
const operations = doc["operations"];
|
|
332
|
+
const opList = Array.isArray(operations) ? operations : [];
|
|
333
|
+
entries.push({
|
|
334
|
+
space: docSpace,
|
|
335
|
+
migrationName,
|
|
336
|
+
migrationHash,
|
|
337
|
+
from: ledgerOriginFromStored(from),
|
|
338
|
+
to,
|
|
339
|
+
appliedAt: appliedAtDate,
|
|
340
|
+
operationCount: opList.length
|
|
341
|
+
});
|
|
342
|
+
}
|
|
343
|
+
return entries;
|
|
344
|
+
}
|
|
345
|
+
async introspectSchema(driver) {
|
|
346
|
+
return introspectSchema(extractDb(driver));
|
|
347
|
+
}
|
|
348
|
+
createRunnerDependencies(driver) {
|
|
349
|
+
const controlDriver = requireMongoControlDriver(driver);
|
|
350
|
+
return {
|
|
351
|
+
inspectionExecutor: new MongoInspectionExecutor(controlDriver.db),
|
|
352
|
+
adapter: this.#adapter,
|
|
353
|
+
driver: controlDriver,
|
|
354
|
+
executeDdl: (command) => this.executeDdl(controlDriver, command),
|
|
355
|
+
markerOps: {
|
|
356
|
+
readMarker: (space) => this.readMarker(controlDriver, space),
|
|
357
|
+
initMarker: (space, destination) => this.initMarker(controlDriver, space, destination),
|
|
358
|
+
updateMarker: (space, expectedFrom, destination) => this.updateMarker(controlDriver, space, expectedFrom, destination),
|
|
359
|
+
writeLedgerEntry: (space, entry) => this.writeLedgerEntry(controlDriver, space, entry)
|
|
360
|
+
},
|
|
361
|
+
introspectSchema: () => this.introspectSchema(controlDriver)
|
|
362
|
+
};
|
|
363
|
+
}
|
|
364
|
+
};
|
|
365
|
+
/**
|
|
366
|
+
* The base PSL scalars as zero-arg type constructors in the unified authoring
|
|
367
|
+
* channel, with explicit `nativeType` values pinned to the codec manifests
|
|
368
|
+
* (`codecLookup.targetTypesFor(codecId)[0]`). `Json` has no BSON type; its
|
|
369
|
+
* `nativeType` names the codec, and the validator reads the codec's empty
|
|
370
|
+
* `targetTypes`, not this value.
|
|
371
|
+
*/
|
|
372
|
+
const mongoScalarAuthoringTypes = {
|
|
373
|
+
String: {
|
|
374
|
+
kind: "typeConstructor",
|
|
375
|
+
documentation: "Text, stored as BSON string.",
|
|
376
|
+
output: {
|
|
377
|
+
codecId: MONGO_STRING_CODEC_ID,
|
|
378
|
+
nativeType: "string"
|
|
379
|
+
}
|
|
380
|
+
},
|
|
381
|
+
Int32: {
|
|
382
|
+
kind: "typeConstructor",
|
|
383
|
+
documentation: "A signed 32-bit integer, stored as BSON int.",
|
|
384
|
+
output: {
|
|
385
|
+
codecId: MONGO_INT32_CODEC_ID,
|
|
386
|
+
nativeType: "int"
|
|
387
|
+
}
|
|
388
|
+
},
|
|
389
|
+
Bool: {
|
|
390
|
+
kind: "typeConstructor",
|
|
391
|
+
documentation: "A true or false value, stored as BSON bool.",
|
|
392
|
+
output: {
|
|
393
|
+
codecId: MONGO_BOOLEAN_CODEC_ID,
|
|
394
|
+
nativeType: "bool"
|
|
395
|
+
}
|
|
396
|
+
},
|
|
397
|
+
Date: {
|
|
398
|
+
kind: "typeConstructor",
|
|
399
|
+
documentation: "A date and time with millisecond precision, stored as BSON date.",
|
|
400
|
+
output: {
|
|
401
|
+
codecId: MONGO_DATE_CODEC_ID,
|
|
402
|
+
nativeType: "date"
|
|
403
|
+
}
|
|
404
|
+
},
|
|
405
|
+
ObjectId: {
|
|
406
|
+
kind: "typeConstructor",
|
|
407
|
+
documentation: "A 12-byte MongoDB identifier, stored as BSON objectId.",
|
|
408
|
+
output: {
|
|
409
|
+
codecId: MONGO_OBJECTID_CODEC_ID,
|
|
410
|
+
nativeType: "objectId"
|
|
411
|
+
}
|
|
412
|
+
},
|
|
413
|
+
Double: {
|
|
414
|
+
kind: "typeConstructor",
|
|
415
|
+
documentation: "A double-precision floating-point number, stored as BSON double.",
|
|
416
|
+
output: {
|
|
417
|
+
codecId: MONGO_DOUBLE_CODEC_ID,
|
|
418
|
+
nativeType: "double"
|
|
419
|
+
}
|
|
420
|
+
},
|
|
421
|
+
Int64: {
|
|
422
|
+
kind: "typeConstructor",
|
|
423
|
+
documentation: "A signed 64-bit integer read as a bigint, stored as BSON long.",
|
|
424
|
+
output: {
|
|
425
|
+
codecId: MONGO_INT64_CODEC_ID,
|
|
426
|
+
nativeType: "long"
|
|
427
|
+
}
|
|
428
|
+
},
|
|
429
|
+
Decimal128: {
|
|
430
|
+
kind: "typeConstructor",
|
|
431
|
+
documentation: "A 128-bit decimal read as decimal text without an exponent, stored as BSON decimal.",
|
|
432
|
+
output: {
|
|
433
|
+
codecId: MONGO_DECIMAL128_CODEC_ID,
|
|
434
|
+
nativeType: "decimal"
|
|
435
|
+
}
|
|
436
|
+
},
|
|
437
|
+
Binary: {
|
|
438
|
+
kind: "typeConstructor",
|
|
439
|
+
documentation: "Bytes read as a Uint8Array, stored as BSON binData.",
|
|
440
|
+
output: {
|
|
441
|
+
codecId: MONGO_BINARY_CODEC_ID,
|
|
442
|
+
nativeType: "binData"
|
|
443
|
+
}
|
|
444
|
+
},
|
|
445
|
+
Json: {
|
|
446
|
+
kind: "typeConstructor",
|
|
447
|
+
documentation: "Any JSON value, stored as the BSON document, array or scalar it maps to. The collection validator does not constrain its type.",
|
|
448
|
+
output: {
|
|
449
|
+
codecId: MONGO_JSON_CODEC_ID,
|
|
450
|
+
nativeType: "json"
|
|
451
|
+
}
|
|
452
|
+
},
|
|
453
|
+
Int: {
|
|
454
|
+
kind: "typeConstructor",
|
|
455
|
+
documentation: "Deprecated: use Int32. A signed 32-bit integer, stored as BSON int.",
|
|
456
|
+
output: {
|
|
457
|
+
codecId: MONGO_INT32_CODEC_ID,
|
|
458
|
+
nativeType: "int"
|
|
459
|
+
},
|
|
460
|
+
deprecated: { replacement: "Int32" }
|
|
461
|
+
},
|
|
462
|
+
Float: {
|
|
463
|
+
kind: "typeConstructor",
|
|
464
|
+
documentation: "Deprecated: use Double. A double-precision floating-point number, stored as BSON double.",
|
|
465
|
+
output: {
|
|
466
|
+
codecId: MONGO_DOUBLE_CODEC_ID,
|
|
467
|
+
nativeType: "double"
|
|
468
|
+
},
|
|
469
|
+
deprecated: { replacement: "Double" }
|
|
470
|
+
},
|
|
471
|
+
Boolean: {
|
|
472
|
+
kind: "typeConstructor",
|
|
473
|
+
documentation: "Deprecated: use Bool. A true or false value, stored as BSON bool.",
|
|
474
|
+
output: {
|
|
475
|
+
codecId: MONGO_BOOLEAN_CODEC_ID,
|
|
476
|
+
nativeType: "bool"
|
|
477
|
+
},
|
|
478
|
+
deprecated: { replacement: "Bool" }
|
|
479
|
+
},
|
|
480
|
+
DateTime: {
|
|
481
|
+
kind: "typeConstructor",
|
|
482
|
+
documentation: "Deprecated: use Date. A date and time with millisecond precision, stored as BSON date.",
|
|
483
|
+
output: {
|
|
484
|
+
codecId: MONGO_DATE_CODEC_ID,
|
|
485
|
+
nativeType: "date"
|
|
486
|
+
},
|
|
487
|
+
deprecated: { replacement: "Date" }
|
|
488
|
+
}
|
|
489
|
+
};
|
|
490
|
+
const mongoAdapterDescriptor = {
|
|
491
|
+
kind: "adapter",
|
|
492
|
+
id: "mongo",
|
|
493
|
+
familyId: "mongo",
|
|
494
|
+
targetId: "mongo",
|
|
495
|
+
version: "0.0.1",
|
|
496
|
+
authoring: { type: mongoScalarAuthoringTypes },
|
|
497
|
+
types: { codecTypes: {
|
|
498
|
+
import: {
|
|
499
|
+
package: "@internal/target-mongo/codec-types",
|
|
500
|
+
named: "CodecTypes",
|
|
501
|
+
alias: "MongoCodecTypes"
|
|
502
|
+
},
|
|
503
|
+
typeImports: [{
|
|
504
|
+
package: "@internal/target-mongo/codec-types",
|
|
505
|
+
named: "Vector",
|
|
506
|
+
alias: "Vector"
|
|
507
|
+
}]
|
|
508
|
+
} },
|
|
509
|
+
create(_stack) {
|
|
510
|
+
return new MongoControlAdapterImpl();
|
|
511
|
+
}
|
|
512
|
+
};
|
|
513
|
+
//#endregion
|
|
514
|
+
export { MongoControlAdapterImpl, MongoInspectionExecutor, createMongoAdapter, mongoAdapterDescriptor as default, mongoAdapterDescriptor, extractDb, introspectSchema, isMongoControlDriver, mongoScalarAuthoringTypes };
|
|
515
|
+
|
|
516
|
+
//# sourceMappingURL=adapter__control.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"adapter__control.mjs","names":["#execute","#adapter","#markerLedgerCollection","#invariantMergeExpr"],"sources":["../../../../3-mongo-target/2-mongo-adapter/dist/control.mjs"],"sourcesContent":["import { t as createMongoAdapter } from \"./mongo-adapter-Dx9Gs2Lj.mjs\";\nimport { MONGO_BINARY_CODEC_ID, MONGO_BOOLEAN_CODEC_ID, MONGO_DATE_CODEC_ID, MONGO_DECIMAL128_CODEC_ID, MONGO_DOUBLE_CODEC_ID, MONGO_INT32_CODEC_ID, MONGO_INT64_CODEC_ID, MONGO_JSON_CODEC_ID, MONGO_OBJECTID_CODEC_ID, MONGO_STRING_CODEC_ID } from \"@internal/target-mongo/codec-ids\";\nimport { MongoAggFieldRef, MongoAggLiteral, MongoAggOperator } from \"@internal/mongo-query-ast/execution\";\nimport { blindCast } from \"@internal/utils/casts\";\nimport { structuredError } from \"@internal/utils/structured-error\";\nimport { MongoServerError } from \"mongodb\";\nimport { MongoSchemaCollection, MongoSchemaCollectionOptions, MongoSchemaIR, MongoSchemaIndex, MongoSchemaValidator } from \"@internal/mongo-schema-ir\";\nimport { parseMarkerRowSafely, withMarkerReadErrorHandling } from \"@internal/errors/execution\";\nimport { ledgerOriginFromStored } from \"@internal/migration-tools/ledger-origin\";\nimport { expr, fn } from \"@internal/mongo-query-builder\";\nimport { collection } from \"@internal/mongo-query-builder/contract-free\";\nimport { type } from \"arktype\";\n//#region src/core/inspection-executor.ts\n/**\n* Executes the read-only catalog inspections (`listCollections` / `listIndexes`)\n* that migration prechecks/postchecks and operation preview evaluate, directly\n* against `db`. Routing these checks through the adapter's lowering seam is\n* deferred to the `typed-migration-verification-queries` slice.\n*/\nvar MongoInspectionExecutor = class {\n\tdb;\n\tconstructor(db) {\n\t\tthis.db = db;\n\t}\n\tasync listIndexes(cmd) {\n\t\ttry {\n\t\t\treturn await this.db.collection(cmd.collection).listIndexes().toArray();\n\t\t} catch (error) {\n\t\t\tif (error instanceof MongoServerError && error.code === 26) return [];\n\t\t\tthrow error;\n\t\t}\n\t}\n\tasync listCollections(_cmd) {\n\t\treturn this.db.listCollections().toArray();\n\t}\n};\n//#endregion\n//#region src/core/introspect-schema.ts\nconst PRISMA_MIGRATIONS_COLLECTION = \"_prisma_migrations\";\nfunction parseIndexKeys(keySpec) {\n\tconst keys = [];\n\tfor (const [field, direction] of Object.entries(keySpec)) keys.push({\n\t\tfield,\n\t\tdirection\n\t});\n\treturn keys;\n}\n/**\n* Exported for unit tests to exercise the defensive `!key` guard; not part of\n* the public API. Callers in this package use it via the `introspectSchema`\n* pipeline only.\n*/\nfunction isDefaultIdIndex(doc) {\n\tconst key = doc[\"key\"];\n\tif (!key) return false;\n\tconst entries = Object.entries(key);\n\treturn entries.length === 1 && entries[0]?.[0] === \"_id\" && entries[0]?.[1] === 1;\n}\nfunction parseIndex(doc) {\n\tconst keySpec = doc[\"key\"];\n\treturn new MongoSchemaIndex({\n\t\tkeys: parseIndexKeys(keySpec),\n\t\tunique: doc[\"unique\"],\n\t\tsparse: doc[\"sparse\"],\n\t\texpireAfterSeconds: doc[\"expireAfterSeconds\"],\n\t\tpartialFilterExpression: doc[\"partialFilterExpression\"],\n\t\twildcardProjection: doc[\"wildcardProjection\"],\n\t\tcollation: doc[\"collation\"] ? blindCast(doc[\"collation\"]) : void 0,\n\t\tweights: doc[\"weights\"],\n\t\tdefault_language: doc[\"default_language\"],\n\t\tlanguage_override: doc[\"language_override\"]\n\t});\n}\nfunction parseValidator(options) {\n\tconst validator = options[\"validator\"];\n\tif (!validator) return void 0;\n\tconst jsonSchema = validator[\"$jsonSchema\"];\n\tif (!jsonSchema) return void 0;\n\treturn new MongoSchemaValidator({\n\t\tjsonSchema,\n\t\tvalidationLevel: options[\"validationLevel\"] ?? \"strict\",\n\t\tvalidationAction: options[\"validationAction\"] ?? \"error\"\n\t});\n}\nfunction parseCollectionOptions(info) {\n\tconst options = info[\"options\"];\n\tif (!options) return void 0;\n\tconst capped = options[\"capped\"];\n\tconst size = options[\"size\"];\n\tconst max = options[\"max\"];\n\tconst timeseries = options[\"timeseries\"];\n\tconst collation = options[\"collation\"] ? blindCast(options[\"collation\"]) : void 0;\n\tconst changeStreamPreAndPostImages = options[\"changeStreamPreAndPostImages\"];\n\tconst clusteredIndex = options[\"clusteredIndex\"];\n\tif (!(capped || timeseries || collation || changeStreamPreAndPostImages || clusteredIndex)) return void 0;\n\treturn new MongoSchemaCollectionOptions({\n\t\t...capped ? { capped: {\n\t\t\tsize: size ?? 0,\n\t\t\t...max != null ? { max } : {}\n\t\t} } : {},\n\t\t...timeseries ? { timeseries } : {},\n\t\t...collation ? { collation } : {},\n\t\t...changeStreamPreAndPostImages ? { changeStreamPreAndPostImages } : {},\n\t\t...clusteredIndex ? { clusteredIndex } : {}\n\t});\n}\nasync function introspectSchema(db) {\n\tconst collectionInfos = await db.listCollections().toArray();\n\tconst collections = [];\n\tfor (const info of collectionInfos) {\n\t\tconst name = info[\"name\"];\n\t\tconst type = info[\"type\"];\n\t\tif (name === PRISMA_MIGRATIONS_COLLECTION) continue;\n\t\tif (name.startsWith(\"system.\")) continue;\n\t\tif (type === \"view\") continue;\n\t\tconst indexes = (await db.collection(name).listIndexes().toArray()).filter((doc) => !isDefaultIdIndex(doc)).map(parseIndex);\n\t\tconst validator = parseValidator(\"options\" in info ? info[\"options\"] : {});\n\t\tconst options = parseCollectionOptions(info);\n\t\tcollections.push(new MongoSchemaCollection({\n\t\t\tname,\n\t\t\tindexes,\n\t\t\t...validator ? { validator } : {},\n\t\t\t...options ? { options } : {}\n\t\t}));\n\t}\n\treturn new MongoSchemaIR(collections);\n}\n//#endregion\n//#region src/core/errors.ts\nfunction mongoAdapterError(code, message, options) {\n\treturn structuredError(code, message, options);\n}\nfunction describeReceivedValue(value) {\n\tif (value === null) return \"null\";\n\tif (typeof value !== \"object\") return typeof value;\n\treturn `object with keys [${Object.keys(value).join(\", \")}]`;\n}\n//#endregion\n//#region src/core/marker-ledger.ts\nconst COLLECTION = \"_prisma_migrations\";\nconst MONGO_MARKER_COLLECTION = `_prisma_migrations marker documents in ${COLLECTION}`;\nconst MONGO_LEDGER_COLLECTION = `_prisma_migrations ledger documents in ${COLLECTION}`;\nconst MongoMarkerDocSchema = type({\n\tspace: \"string\",\n\tstorageHash: \"string\",\n\tprofileHash: \"string\",\n\t\"contractJson?\": \"unknown | null\",\n\t\"canonicalVersion?\": \"number | null\",\n\t\"updatedAt?\": \"Date\",\n\t\"appTag?\": \"string | null\",\n\t\"meta?\": type({ \"[string]\": \"unknown\" }).or(\"null\"),\n\t\"invariants?\": type(\"string\").array(),\n\t\"+\": \"delete\"\n});\nfunction parseMongoMarkerDoc(doc) {\n\tconst result = MongoMarkerDocSchema(doc);\n\tif (result instanceof type.errors) throw mongoAdapterError(\"CONTRACT.MARKER_ROW_CORRUPT\", `Invalid marker doc on ${COLLECTION}: ${result.summary}`, { meta: {\n\t\tcollection: COLLECTION,\n\t\tdetail: result.summary\n\t} });\n\treturn {\n\t\tstorageHash: result.storageHash,\n\t\tprofileHash: result.profileHash,\n\t\tcontractJson: result.contractJson ?? null,\n\t\tcanonicalVersion: result.canonicalVersion ?? null,\n\t\tupdatedAt: result.updatedAt ?? /* @__PURE__ */ new Date(),\n\t\tappTag: result.appTag ?? null,\n\t\tmeta: result.meta ?? {},\n\t\tinvariants: result.invariants ?? []\n\t};\n}\nfunction parseMongoMarkerDocSafely(doc, space) {\n\treturn parseMarkerRowSafely(doc, parseMongoMarkerDoc, {\n\t\tspace,\n\t\tmarkerLocation: MONGO_MARKER_COLLECTION\n\t});\n}\n//#endregion\n//#region src/core/marker-ledger-collection.ts\nconst MARKER_LEDGER_COLLECTION = \"_prisma_migrations\";\n//#endregion\n//#region src/core/mongo-control-driver.ts\nfunction isMongoControlDriver(driver) {\n\treturn driver.familyId === \"mongo\" && driver.targetId === \"mongo\" && \"execute\" in driver && typeof driver.execute === \"function\";\n}\nfunction requireMongoControlDriver(driver) {\n\tif (!isMongoControlDriver(driver)) throw mongoAdapterError(\"CONFIG.VALIDATION_FAILED\", \"Expected a Mongo control driver created by mongoControlDriver.create() from `@internal/driver-mongo/control`.\", { meta: { received: describeReceivedValue(driver) } });\n\treturn driver;\n}\nfunction extractDb(driver) {\n\treturn requireMongoControlDriver(driver).db;\n}\n//#endregion\n//#region src/core/mongo-control-adapter.ts\n/**\n* Mongo control adapter for control-plane operations like introspection\n* and marker-ledger CAS. Implements the family-level `MongoControlAdapter`\n* SPI. Every marker/ledger operation builds a canonical command inline via\n* the contract-free fluent builder and dispatches it through the family\n* adapter's lowering path (`createMongoAdapter().lower(plan, {})`) onto the\n* Mongo wire transport (`driver.execute(wireCommand)`) — the same route SQL\n* marker/ledger ops take through `adapter.lower()` → `driver.query()`.\n*/\nvar MongoControlAdapterImpl = class {\n\tfamilyId = \"mongo\";\n\ttargetId = \"mongo\";\n\t#adapter = createMongoAdapter();\n\t#markerLedgerCollection = collection(MARKER_LEDGER_COLLECTION);\n\tasync #execute(driver, command) {\n\t\tconst plan = {\n\t\t\tcollection: MARKER_LEDGER_COLLECTION,\n\t\t\tcommand,\n\t\t\tmeta: {\n\t\t\t\ttarget: \"mongo\",\n\t\t\t\ttargetFamily: \"mongo\",\n\t\t\t\tstorageHash: \"\",\n\t\t\t\tlane: \"control\"\n\t\t\t}\n\t\t};\n\t\tconst wireCommand = await this.#adapter.lower(plan, {});\n\t\tif (!isMongoControlDriver(driver)) throw mongoAdapterError(\"CONFIG.VALIDATION_FAILED\", \"Mongo control adapter requires a Mongo control driver with an execute() transport. Provide a MongoControlDriver from `@internal/driver-mongo/control`.\", { meta: { received: describeReceivedValue(driver) } });\n\t\tconst rows = [];\n\t\tfor await (const row of driver.execute(wireCommand)) rows.push(row);\n\t\treturn rows;\n\t}\n\tasync executeDdl(driver, command) {\n\t\tconst wire = await this.#adapter.lower({ command }, {});\n\t\tawait driver.run(wire);\n\t}\n\t/**\n\t* Server-side invariant-merge aggregation expression:\n\t* `$sortArray({ input: $setUnion([$ifNull('$invariants', []), incoming]), sortBy: 1 })`.\n\t*\n\t* Built through the typed agg-expr layer — `fn.setUnion` plus the generic\n\t* `MongoAggOperator` for `$ifNull` / `$sortArray` (neither has a named `fn`\n\t* helper). Returns a `MongoAggOperator` that is passed directly to\n\t* `f.stage.set({ invariants: ... })` in the update pipeline.\n\t*/\n\t#invariantMergeExpr(incoming) {\n\t\tconst existingOrEmpty = MongoAggOperator.of(\"$ifNull\", [MongoAggFieldRef.of(\"invariants\"), MongoAggLiteral.of([])]);\n\t\tconst merged = fn.setUnion({\n\t\t\t_field: {\n\t\t\t\tcodecId: \"mongo/array@1\",\n\t\t\t\tnullable: false\n\t\t\t},\n\t\t\tnode: existingOrEmpty\n\t\t}, {\n\t\t\t_field: {\n\t\t\t\tcodecId: \"mongo/array@1\",\n\t\t\t\tnullable: false\n\t\t\t},\n\t\t\tnode: MongoAggLiteral.of([...incoming])\n\t\t});\n\t\treturn MongoAggOperator.of(\"$sortArray\", {\n\t\t\tinput: merged.node,\n\t\t\tsortBy: MongoAggLiteral.of(1)\n\t\t});\n\t}\n\tasync readMarker(driver, space) {\n\t\tconst doc = (await withMarkerReadErrorHandling(() => this.#execute(driver, this.#markerLedgerCollection.aggregate().match((f) => f._id.eq(space)).match((f) => f.space.eq(space)).limit(1).build()), {\n\t\t\tspace,\n\t\t\tmarkerLocation: MONGO_MARKER_COLLECTION\n\t\t}))[0];\n\t\tif (!doc) return null;\n\t\treturn parseMongoMarkerDocSafely(doc, space);\n\t}\n\tasync readAllMarkers(driver) {\n\t\tconst docs = await withMarkerReadErrorHandling(() => this.#execute(driver, this.#markerLedgerCollection.aggregate().match((f) => f._id.type(\"string\")).match((f) => f.space.type(\"string\")).match((f) => expr(fn.eq(f._id, f.space))).build()), {\n\t\t\tspace: \"app\",\n\t\t\tmarkerLocation: MONGO_MARKER_COLLECTION\n\t\t});\n\t\tconst out = /* @__PURE__ */ new Map();\n\t\tfor (const doc of docs) {\n\t\t\tconst space = doc[\"space\"];\n\t\t\t/* v8 ignore next -- @preserve type-narrowing guard: the $match stage above filters on `space: { $type: 'string' }`, so this branch is unreachable at runtime. The check exists so the `out.set(space, ...)` call below can accept `string`. */\n\t\t\tif (typeof space !== \"string\") continue;\n\t\t\tout.set(space, parseMongoMarkerDocSafely(doc, space));\n\t\t}\n\t\treturn out;\n\t}\n\tasync initMarker(driver, space, destination) {\n\t\tconst document = {\n\t\t\t_id: space,\n\t\t\tspace,\n\t\t\tstorageHash: destination.storageHash,\n\t\t\tprofileHash: destination.profileHash,\n\t\t\tcontractJson: null,\n\t\t\tcanonicalVersion: null,\n\t\t\tupdatedAt: /* @__PURE__ */ new Date(),\n\t\t\tappTag: null,\n\t\t\tmeta: {},\n\t\t\tinvariants: [...destination.invariants ?? []]\n\t\t};\n\t\tawait this.#execute(driver, this.#markerLedgerCollection.insertOne(document));\n\t}\n\tasync updateMarker(driver, space, expectedFrom, destination) {\n\t\tconst { invariants } = destination;\n\t\treturn (await this.#execute(driver, this.#markerLedgerCollection.match((f) => f._id.eq(space)).match((f) => f.space.eq(space)).match((f) => f.storageHash.eq(expectedFrom)).findOneAndUpdate((f) => [f.stage.set(invariants === void 0 ? {\n\t\t\tstorageHash: MongoAggLiteral.of(destination.storageHash),\n\t\t\tprofileHash: MongoAggLiteral.of(destination.profileHash),\n\t\t\tupdatedAt: MongoAggLiteral.of(/* @__PURE__ */ new Date())\n\t\t} : {\n\t\t\tstorageHash: MongoAggLiteral.of(destination.storageHash),\n\t\t\tprofileHash: MongoAggLiteral.of(destination.profileHash),\n\t\t\tupdatedAt: MongoAggLiteral.of(/* @__PURE__ */ new Date()),\n\t\t\tinvariants: this.#invariantMergeExpr(invariants)\n\t\t})], { upsert: false }))).length > 0;\n\t}\n\tasync writeLedgerEntry(driver, space, entry) {\n\t\tconst document = {\n\t\t\ttype: \"ledger\",\n\t\t\tspace,\n\t\t\tedgeId: entry.edgeId,\n\t\t\tfrom: entry.from,\n\t\t\tto: entry.to,\n\t\t\tmigrationName: entry.migrationName,\n\t\t\tmigrationHash: entry.migrationHash,\n\t\t\toperations: blindCast(entry.operations),\n\t\t\tappliedAt: /* @__PURE__ */ new Date()\n\t\t};\n\t\tawait this.#execute(driver, this.#markerLedgerCollection.insertOne(document));\n\t}\n\tasync readLedger(driver, space) {\n\t\tconst ledgerContext = {\n\t\t\tspace: space ?? \"*\",\n\t\t\tmarkerLocation: MONGO_LEDGER_COLLECTION\n\t\t};\n\t\tconst chain = this.#markerLedgerCollection.aggregate().match((f) => f.type.eq(\"ledger\"));\n\t\tconst command = space === void 0 ? chain.sort({ _id: 1 }).build() : chain.match((f) => f.space.eq(space)).sort({ _id: 1 }).build();\n\t\tconst docs = await withMarkerReadErrorHandling(() => this.#execute(driver, command), ledgerContext);\n\t\tconst entries = [];\n\t\tfor (const doc of docs) {\n\t\t\tconst migrationName = doc[\"migrationName\"];\n\t\t\tconst migrationHash = doc[\"migrationHash\"];\n\t\t\tconst from = doc[\"from\"];\n\t\t\tconst to = doc[\"to\"];\n\t\t\tconst docSpace = doc[\"space\"];\n\t\t\tif (typeof migrationName !== \"string\" || typeof migrationHash !== \"string\") continue;\n\t\t\tif (typeof from !== \"string\" || typeof to !== \"string\") continue;\n\t\t\tif (typeof docSpace !== \"string\") continue;\n\t\t\tconst appliedAt = doc[\"appliedAt\"];\n\t\t\tconst appliedAtDate = appliedAt instanceof Date ? appliedAt : appliedAt !== void 0 ? new Date(String(appliedAt)) : /* @__PURE__ */ new Date();\n\t\t\tconst operations = doc[\"operations\"];\n\t\t\tconst opList = Array.isArray(operations) ? operations : [];\n\t\t\tentries.push({\n\t\t\t\tspace: docSpace,\n\t\t\t\tmigrationName,\n\t\t\t\tmigrationHash,\n\t\t\t\tfrom: ledgerOriginFromStored(from),\n\t\t\t\tto,\n\t\t\t\tappliedAt: appliedAtDate,\n\t\t\t\toperationCount: opList.length\n\t\t\t});\n\t\t}\n\t\treturn entries;\n\t}\n\tasync introspectSchema(driver) {\n\t\treturn introspectSchema(extractDb(driver));\n\t}\n\tcreateRunnerDependencies(driver) {\n\t\tconst controlDriver = requireMongoControlDriver(driver);\n\t\treturn {\n\t\t\tinspectionExecutor: new MongoInspectionExecutor(controlDriver.db),\n\t\t\tadapter: this.#adapter,\n\t\t\tdriver: controlDriver,\n\t\t\texecuteDdl: (command) => this.executeDdl(controlDriver, command),\n\t\t\tmarkerOps: {\n\t\t\t\treadMarker: (space) => this.readMarker(controlDriver, space),\n\t\t\t\tinitMarker: (space, destination) => this.initMarker(controlDriver, space, destination),\n\t\t\t\tupdateMarker: (space, expectedFrom, destination) => this.updateMarker(controlDriver, space, expectedFrom, destination),\n\t\t\t\twriteLedgerEntry: (space, entry) => this.writeLedgerEntry(controlDriver, space, entry)\n\t\t\t},\n\t\t\tintrospectSchema: () => this.introspectSchema(controlDriver)\n\t\t};\n\t}\n};\n//#endregion\n//#region src/exports/control.ts\n/**\n* The base PSL scalars as zero-arg type constructors in the unified authoring\n* channel, with explicit `nativeType` values pinned to the codec manifests\n* (`codecLookup.targetTypesFor(codecId)[0]`). `Json` has no BSON type; its\n* `nativeType` names the codec, and the validator reads the codec's empty\n* `targetTypes`, not this value.\n*/\nconst mongoScalarAuthoringTypes = {\n\tString: {\n\t\tkind: \"typeConstructor\",\n\t\tdocumentation: \"Text, stored as BSON string.\",\n\t\toutput: {\n\t\t\tcodecId: MONGO_STRING_CODEC_ID,\n\t\t\tnativeType: \"string\"\n\t\t}\n\t},\n\tInt32: {\n\t\tkind: \"typeConstructor\",\n\t\tdocumentation: \"A signed 32-bit integer, stored as BSON int.\",\n\t\toutput: {\n\t\t\tcodecId: MONGO_INT32_CODEC_ID,\n\t\t\tnativeType: \"int\"\n\t\t}\n\t},\n\tBool: {\n\t\tkind: \"typeConstructor\",\n\t\tdocumentation: \"A true or false value, stored as BSON bool.\",\n\t\toutput: {\n\t\t\tcodecId: MONGO_BOOLEAN_CODEC_ID,\n\t\t\tnativeType: \"bool\"\n\t\t}\n\t},\n\tDate: {\n\t\tkind: \"typeConstructor\",\n\t\tdocumentation: \"A date and time with millisecond precision, stored as BSON date.\",\n\t\toutput: {\n\t\t\tcodecId: MONGO_DATE_CODEC_ID,\n\t\t\tnativeType: \"date\"\n\t\t}\n\t},\n\tObjectId: {\n\t\tkind: \"typeConstructor\",\n\t\tdocumentation: \"A 12-byte MongoDB identifier, stored as BSON objectId.\",\n\t\toutput: {\n\t\t\tcodecId: MONGO_OBJECTID_CODEC_ID,\n\t\t\tnativeType: \"objectId\"\n\t\t}\n\t},\n\tDouble: {\n\t\tkind: \"typeConstructor\",\n\t\tdocumentation: \"A double-precision floating-point number, stored as BSON double.\",\n\t\toutput: {\n\t\t\tcodecId: MONGO_DOUBLE_CODEC_ID,\n\t\t\tnativeType: \"double\"\n\t\t}\n\t},\n\tInt64: {\n\t\tkind: \"typeConstructor\",\n\t\tdocumentation: \"A signed 64-bit integer read as a bigint, stored as BSON long.\",\n\t\toutput: {\n\t\t\tcodecId: MONGO_INT64_CODEC_ID,\n\t\t\tnativeType: \"long\"\n\t\t}\n\t},\n\tDecimal128: {\n\t\tkind: \"typeConstructor\",\n\t\tdocumentation: \"A 128-bit decimal read as decimal text without an exponent, stored as BSON decimal.\",\n\t\toutput: {\n\t\t\tcodecId: MONGO_DECIMAL128_CODEC_ID,\n\t\t\tnativeType: \"decimal\"\n\t\t}\n\t},\n\tBinary: {\n\t\tkind: \"typeConstructor\",\n\t\tdocumentation: \"Bytes read as a Uint8Array, stored as BSON binData.\",\n\t\toutput: {\n\t\t\tcodecId: MONGO_BINARY_CODEC_ID,\n\t\t\tnativeType: \"binData\"\n\t\t}\n\t},\n\tJson: {\n\t\tkind: \"typeConstructor\",\n\t\tdocumentation: \"Any JSON value, stored as the BSON document, array or scalar it maps to. The collection validator does not constrain its type.\",\n\t\toutput: {\n\t\t\tcodecId: MONGO_JSON_CODEC_ID,\n\t\t\tnativeType: \"json\"\n\t\t}\n\t},\n\tInt: {\n\t\tkind: \"typeConstructor\",\n\t\tdocumentation: \"Deprecated: use Int32. A signed 32-bit integer, stored as BSON int.\",\n\t\toutput: {\n\t\t\tcodecId: MONGO_INT32_CODEC_ID,\n\t\t\tnativeType: \"int\"\n\t\t},\n\t\tdeprecated: { replacement: \"Int32\" }\n\t},\n\tFloat: {\n\t\tkind: \"typeConstructor\",\n\t\tdocumentation: \"Deprecated: use Double. A double-precision floating-point number, stored as BSON double.\",\n\t\toutput: {\n\t\t\tcodecId: MONGO_DOUBLE_CODEC_ID,\n\t\t\tnativeType: \"double\"\n\t\t},\n\t\tdeprecated: { replacement: \"Double\" }\n\t},\n\tBoolean: {\n\t\tkind: \"typeConstructor\",\n\t\tdocumentation: \"Deprecated: use Bool. A true or false value, stored as BSON bool.\",\n\t\toutput: {\n\t\t\tcodecId: MONGO_BOOLEAN_CODEC_ID,\n\t\t\tnativeType: \"bool\"\n\t\t},\n\t\tdeprecated: { replacement: \"Bool\" }\n\t},\n\tDateTime: {\n\t\tkind: \"typeConstructor\",\n\t\tdocumentation: \"Deprecated: use Date. A date and time with millisecond precision, stored as BSON date.\",\n\t\toutput: {\n\t\t\tcodecId: MONGO_DATE_CODEC_ID,\n\t\t\tnativeType: \"date\"\n\t\t},\n\t\tdeprecated: { replacement: \"Date\" }\n\t}\n};\nconst mongoAdapterDescriptor = {\n\tkind: \"adapter\",\n\tid: \"mongo\",\n\tfamilyId: \"mongo\",\n\ttargetId: \"mongo\",\n\tversion: \"0.0.1\",\n\tauthoring: { type: mongoScalarAuthoringTypes },\n\ttypes: { codecTypes: {\n\t\timport: {\n\t\t\tpackage: \"@internal/target-mongo/codec-types\",\n\t\t\tnamed: \"CodecTypes\",\n\t\t\talias: \"MongoCodecTypes\"\n\t\t},\n\t\ttypeImports: [{\n\t\t\tpackage: \"@internal/target-mongo/codec-types\",\n\t\t\tnamed: \"Vector\",\n\t\t\talias: \"Vector\"\n\t\t}]\n\t} },\n\tcreate(_stack) {\n\t\treturn new MongoControlAdapterImpl();\n\t}\n};\n//#endregion\nexport { MongoControlAdapterImpl, MongoInspectionExecutor, createMongoAdapter, mongoAdapterDescriptor as default, mongoAdapterDescriptor, extractDb, introspectSchema, isMongoControlDriver, mongoScalarAuthoringTypes };\n\n//# sourceMappingURL=control.mjs.map"],"mappings":";;;;;;;;;;;;;;;;;;;AAmBA,IAAI,0BAA0B,MAAM;CACnC;CACA,YAAY,IAAI;EACf,KAAK,KAAK;CACX;CACA,MAAM,YAAY,KAAK;EACtB,IAAI;GACH,OAAO,MAAM,KAAK,GAAG,WAAW,IAAI,UAAU,CAAC,CAAC,YAAY,CAAC,CAAC,QAAQ;EACvE,SAAS,OAAO;GACf,IAAI,iBAAiB,oBAAoB,MAAM,SAAS,IAAI,OAAO,CAAC;GACpE,MAAM;EACP;CACD;CACA,MAAM,gBAAgB,MAAM;EAC3B,OAAO,KAAK,GAAG,gBAAgB,CAAC,CAAC,QAAQ;CAC1C;AACD;AAGA,MAAM,+BAA+B;AACrC,SAAS,eAAe,SAAS;CAChC,MAAM,OAAO,CAAC;CACd,KAAK,MAAM,CAAC,OAAO,cAAc,OAAO,QAAQ,OAAO,GAAG,KAAK,KAAK;EACnE;EACA;CACD,CAAC;CACD,OAAO;AACR;;;;;;AAMA,SAAS,iBAAiB,KAAK;CAC9B,MAAM,MAAM,IAAI;CAChB,IAAI,CAAC,KAAK,OAAO;CACjB,MAAM,UAAU,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AAS;GACT,YAAY;EACb;EACA,YAAY,EAAE,aAAa,OAAO;CACnC;AACD;AACA,MAAM,yBAAyB;CAC9B,MAAM;CACN,IAAI;CACJ,UAAU;CACV,UAAU;CACV,SAAS;CACT,WAAW,EAAE,MAAM,0BAA0B;CAC7C,OAAO,EAAE,YAAY;EACpB,QAAQ;GACP,SAAS;GACT,OAAO;GACP,OAAO;EACR;EACA,aAAa,CAAC;GACb,SAAS;GACT,OAAO;GACP,OAAO;EACR,CAAC;CACF,EAAE;CACF,OAAO,QAAQ;EACd,OAAO,IAAI,wBAAwB;CACpC;AACD"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as buildStandardCodecRegistry } from "./codecs-
|
|
2
|
-
import { t as createMongoAdapter } from "./mongo-adapter-
|
|
1
|
+
import { t as buildStandardCodecRegistry } from "./codecs-ChbLv6Rd-BmoC4ktF.mjs";
|
|
2
|
+
import { t as createMongoAdapter } from "./mongo-adapter-Dx9Gs2Lj-CA6H_zbI.mjs";
|
|
3
3
|
//#region ../../../3-mongo-target/2-mongo-adapter/dist/runtime.mjs
|
|
4
4
|
const mongoRuntimeAdapterDescriptor = {
|
|
5
5
|
kind: "adapter",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"adapter__runtime.mjs","names":[],"sources":["../../../../3-mongo-target/2-mongo-adapter/dist/runtime.mjs"],"sourcesContent":["import { t as createMongoAdapter } from \"./mongo-adapter-
|
|
1
|
+
{"version":3,"file":"adapter__runtime.mjs","names":[],"sources":["../../../../3-mongo-target/2-mongo-adapter/dist/runtime.mjs"],"sourcesContent":["import { t as createMongoAdapter } from \"./mongo-adapter-Dx9Gs2Lj.mjs\";\nimport { buildStandardCodecRegistry } from \"@internal/target-mongo/codecs\";\n//#region src/exports/runtime.ts\nconst mongoRuntimeAdapterDescriptor = {\n\tkind: \"adapter\",\n\tid: \"mongo\",\n\tfamilyId: \"mongo\",\n\ttargetId: \"mongo\",\n\tversion: \"0.0.1\",\n\tcodecs: buildStandardCodecRegistry,\n\tcreate(_stack) {\n\t\tconst adapter = createMongoAdapter();\n\t\treturn {\n\t\t\tfamilyId: \"mongo\",\n\t\t\ttargetId: \"mongo\",\n\t\t\tlower: adapter.lower.bind(adapter),\n\t\t\tstructuralLower: adapter.structuralLower.bind(adapter),\n\t\t\tresolveParams: adapter.resolveParams.bind(adapter)\n\t\t};\n\t}\n};\n//#endregion\nexport { mongoRuntimeAdapterDescriptor as default };\n\n//# sourceMappingURL=runtime.mjs.map"],"mappings":";;;AAGA,MAAM,gCAAgC;CACrC,MAAM;CACN,IAAI;CACJ,UAAU;CACV,UAAU;CACV,SAAS;CACT,QAAQ;CACR,OAAO,QAAQ;EACd,MAAM,UAAU,mBAAmB;EACnC,OAAO;GACN,UAAU;GACV,UAAU;GACV,OAAO,QAAQ,MAAM,KAAK,OAAO;GACjC,iBAAiB,QAAQ,gBAAgB,KAAK,OAAO;GACrD,eAAe,QAAQ,cAAc,KAAK,OAAO;EAClD;CACD;AACD"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
//#region ../../../3-mongo-target/1-mongo-target/dist/codec-ids-Bz230VLx.mjs
|
|
2
|
+
const MONGO_OBJECTID_CODEC_ID = "mongo/objectId@1";
|
|
3
|
+
const MONGO_STRING_CODEC_ID = "mongo/string@1";
|
|
4
|
+
const MONGO_DOUBLE_CODEC_ID = "mongo/double@1";
|
|
5
|
+
const MONGO_INT32_CODEC_ID = "mongo/int32@1";
|
|
6
|
+
const MONGO_BOOLEAN_CODEC_ID = "mongo/bool@1";
|
|
7
|
+
const MONGO_DATE_CODEC_ID = "mongo/date@1";
|
|
8
|
+
const MONGO_VECTOR_CODEC_ID = "mongo/vector@1";
|
|
9
|
+
const MONGO_INT64_CODEC_ID = "mongo/int64@1";
|
|
10
|
+
const MONGO_DECIMAL128_CODEC_ID = "mongo/decimal128@1";
|
|
11
|
+
const MONGO_BINARY_CODEC_ID = "mongo/binary@1";
|
|
12
|
+
const MONGO_JSON_CODEC_ID = "mongo/json@1";
|
|
13
|
+
//#endregion
|
|
14
|
+
export { MONGO_DOUBLE_CODEC_ID as a, MONGO_JSON_CODEC_ID as c, MONGO_VECTOR_CODEC_ID as d, MONGO_DECIMAL128_CODEC_ID as i, MONGO_OBJECTID_CODEC_ID as l, MONGO_BOOLEAN_CODEC_ID as n, MONGO_INT32_CODEC_ID as o, MONGO_DATE_CODEC_ID as r, MONGO_INT64_CODEC_ID as s, MONGO_BINARY_CODEC_ID as t, MONGO_STRING_CODEC_ID as u };
|
|
15
|
+
|
|
16
|
+
//# sourceMappingURL=codec-ids-Bz230VLx-Dbi_KV7J.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"codec-ids-Bz230VLx-Dbi_KV7J.mjs","names":[],"sources":["../../../../3-mongo-target/1-mongo-target/dist/codec-ids-Bz230VLx.mjs"],"sourcesContent":["//#region src/core/codec-ids.ts\nconst MONGO_OBJECTID_CODEC_ID = \"mongo/objectId@1\";\nconst MONGO_STRING_CODEC_ID = \"mongo/string@1\";\nconst MONGO_DOUBLE_CODEC_ID = \"mongo/double@1\";\nconst MONGO_INT32_CODEC_ID = \"mongo/int32@1\";\nconst MONGO_BOOLEAN_CODEC_ID = \"mongo/bool@1\";\nconst MONGO_DATE_CODEC_ID = \"mongo/date@1\";\nconst MONGO_VECTOR_CODEC_ID = \"mongo/vector@1\";\nconst MONGO_INT64_CODEC_ID = \"mongo/int64@1\";\nconst MONGO_DECIMAL128_CODEC_ID = \"mongo/decimal128@1\";\nconst MONGO_BINARY_CODEC_ID = \"mongo/binary@1\";\nconst MONGO_JSON_CODEC_ID = \"mongo/json@1\";\n//#endregion\nexport { MONGO_DOUBLE_CODEC_ID as a, MONGO_JSON_CODEC_ID as c, MONGO_VECTOR_CODEC_ID as d, MONGO_DECIMAL128_CODEC_ID as i, MONGO_OBJECTID_CODEC_ID as l, MONGO_BOOLEAN_CODEC_ID as n, MONGO_INT32_CODEC_ID as o, MONGO_DATE_CODEC_ID as r, MONGO_INT64_CODEC_ID as s, MONGO_BINARY_CODEC_ID as t, MONGO_STRING_CODEC_ID as u };\n\n//# sourceMappingURL=codec-ids-Bz230VLx.mjs.map"],"mappings":";AACA,MAAM,0BAA0B;AAChC,MAAM,wBAAwB;AAC9B,MAAM,wBAAwB;AAC9B,MAAM,uBAAuB;AAC7B,MAAM,yBAAyB;AAC/B,MAAM,sBAAsB;AAC5B,MAAM,wBAAwB;AAC9B,MAAM,uBAAuB;AAC7B,MAAM,4BAA4B;AAClC,MAAM,wBAAwB;AAC9B,MAAM,sBAAsB"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
//#region ../../../3-mongo-target/1-mongo-target/dist/codec-ids.d.mts
|
|
2
|
+
//#region src/core/codec-ids.d.ts
|
|
3
|
+
declare const MONGO_OBJECTID_CODEC_ID: "mongo/objectId@1";
|
|
4
|
+
declare const MONGO_STRING_CODEC_ID: "mongo/string@1";
|
|
5
|
+
declare const MONGO_DOUBLE_CODEC_ID: "mongo/double@1";
|
|
6
|
+
declare const MONGO_INT32_CODEC_ID: "mongo/int32@1";
|
|
7
|
+
declare const MONGO_BOOLEAN_CODEC_ID: "mongo/bool@1";
|
|
8
|
+
declare const MONGO_DATE_CODEC_ID: "mongo/date@1";
|
|
9
|
+
declare const MONGO_VECTOR_CODEC_ID: "mongo/vector@1";
|
|
10
|
+
declare const MONGO_INT64_CODEC_ID: "mongo/int64@1";
|
|
11
|
+
declare const MONGO_DECIMAL128_CODEC_ID: "mongo/decimal128@1";
|
|
12
|
+
declare const MONGO_BINARY_CODEC_ID: "mongo/binary@1";
|
|
13
|
+
declare const MONGO_JSON_CODEC_ID: "mongo/json@1";
|
|
14
|
+
//#endregion
|
|
15
|
+
export { MONGO_DOUBLE_CODEC_ID as a, MONGO_JSON_CODEC_ID as c, MONGO_VECTOR_CODEC_ID as d, MONGO_DECIMAL128_CODEC_ID as i, MONGO_OBJECTID_CODEC_ID as l, MONGO_BOOLEAN_CODEC_ID as n, MONGO_INT32_CODEC_ID as o, MONGO_DATE_CODEC_ID as r, MONGO_INT64_CODEC_ID as s, MONGO_BINARY_CODEC_ID as t, MONGO_STRING_CODEC_ID as u };
|
|
16
|
+
//# sourceMappingURL=codec-ids-Ck-Z63jY.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"codec-ids-Ck-Z63jY.d.mts","names":[],"sources":["../../../../3-mongo-target/1-mongo-target/dist/codec-ids.d.mts"],"mappings":";;cACc;cACA;cACA;cACA;cACA;cACA;cACA;cACA;cACA;cACA;cACA"}
|