MCPcopy
hub / github.com/prisma/prisma / dmmfToRuntimeDataModel

Function dmmfToRuntimeDataModel

packages/client-common/src/runtimeDataModel.ts:23–29  ·  packages/client-common/src/runtimeDataModel.ts::dmmfToRuntimeDataModel
(dmmfDataModel: DMMF.Datamodel)

Source from the content-addressed store, hash-verified

21}
22
23export function dmmfToRuntimeDataModel(dmmfDataModel: DMMF.Datamodel): RuntimeDataModel {
24 return {
25 models: buildMapForRuntime(dmmfDataModel.models),
26 enums: buildMapForRuntime(dmmfDataModel.enums),
27 types: buildMapForRuntime(dmmfDataModel.types),
28 }
29}
30
31/**
32 * Minimal version of the runtime datamodel for the Client to work

Callers 5

getTestClientFunction · 0.90
runtimeDataModelFunction · 0.90
setupFunction · 0.90
buildRuntimeDataModelFunction · 0.90
buildRuntimeDataModelFunction · 0.90

Calls 1

buildMapForRuntimeFunction · 0.85

Tested by 1

setupFunction · 0.72