MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / orm

Function orm

packages/core/fumadb/src/index.ts:109–119  ·  view source on GitHub ↗
(version)

Source from the content-addressed store, hash-verified

107 adapter,
108 schemas,
109 orm(version) {
110 let orm = orms.get(version);
111 if (orm) return orm;
112
113 const schema = schemas.find((schema) => schema.version === version);
114 if (!schema) throw new Error(`unknown schema version ${version}`);
115
116 orm = adapter.createORM.call(adapterContext, schema);
117 orms.set(version, orm);
118 return orm as any;
119 },
120 async version() {
121 const version = await adapter.getSchemaVersion.call(adapterContext);
122 if (!version)

Callers

nothing calls this directly

Calls 3

callMethod · 0.80
getMethod · 0.65
setMethod · 0.65

Tested by

no test coverage detected