MCPcopy
hub / github.com/prisma/prisma / serializeExtendedAttributes

Function serializeExtendedAttributes

packages/query-plan-executor/src/log/event.ts:78–90  ·  view source on GitHub ↗
(attributes: ExtendedAttributes)

Source from the content-addressed store, hash-verified

76}
77
78function serializeExtendedAttributes(attributes: ExtendedAttributes): Attributes {
79 const serializedAttributes: Attributes = {}
80
81 for (const [key, value] of Object.entries(attributes)) {
82 if (value instanceof Error) {
83 serializedAttributes[key] = String(value)
84 } else {
85 serializedAttributes[key] = value
86 }
87 }
88
89 return serializedAttributes
90}

Callers 1

exportMethod · 0.85

Calls 1

entriesMethod · 0.80

Tested by

no test coverage detected