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

Function replyToRow

packages/cluster/src/SqlMessageStorage.ts:138–144  ·  view source on GitHub ↗
(reply: Reply.ReplyEncoded<any>)

Source from the content-addressed store, hash-verified

136 }
137
138 const replyToRow = (reply: Reply.ReplyEncoded<any>): ReplyRow => ({
139 id: reply.id,
140 kind: replyKind[reply._tag],
141 request_id: reply.requestId,
142 payload: reply._tag === "WithExit" ? JSON.stringify(reply.exit) : JSON.stringify(reply.values),
143 sequence: reply._tag === "Chunk" ? reply.sequence : null
144 })
145
146 const supportsBooleans = sql.onDialectOrElse({
147 mssql: () => false,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected