MCPcopy Create free account
hub / github.com/Effect-TS/effect / replyToRow

Function replyToRow

packages/effect/src/unstable/cluster/SqlMessageStorage.ts:189–195  ·  view source on GitHub ↗
(reply: Reply.Encoded)

Source from the content-addressed store, hash-verified

187 }
188
189 const replyToRow = (reply: Reply.Encoded): ReplyRow => ({
190 id: reply.id,
191 kind: replyKind[reply._tag],
192 request_id: reply.requestId,
193 payload: reply._tag === "WithExit" ? JSON.stringify(reply.exit) : JSON.stringify(reply.values),
194 sequence: reply._tag === "Chunk" ? reply.sequence : null
195 })
196
197 const supportsBooleans = sql.onDialectOrElse({
198 mssql: () => false,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected