MCPcopy
hub / github.com/prisma/prisma / serialize

Method serialize

packages/param-graph/src/serialization.ts:166–176  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

164 }
165
166 serialize(): SerializedParamGraph {
167 this.#writeHeader()
168 this.#writeInputNodes()
169 this.#writeOutputNodes()
170 this.#writeRoots()
171
172 return {
173 strings: this.#data.strings,
174 graph: encodeBase64url(new Uint8Array(this.#buffer, 0, this.#offset)),
175 }
176 }
177
178 #writeVaruint(value: number): void {
179 while (value >= 0x80) {

Callers 9

serializeParamGraphFunction · 0.80
testJSONMethod · 0.80
explicitTransactionMethod · 0.80
$rawMethod · 0.80
testTypeTest2Method · 0.80

Calls 5

#writeHeaderMethod · 0.95
#writeInputNodesMethod · 0.95
#writeOutputNodesMethod · 0.95
#writeRootsMethod · 0.95
encodeBase64urlFunction · 0.85

Tested by

no test coverage detected