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

Function decodeWideRows

packages/sql/pg/benchmark/PgCodec.ts:167–178  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

165})
166
167const decodeWideRows = () => {
168 let count = 0
169 for (const message of wideParser.push(wideRowsPayload)) {
170 if (message._tag !== "DataRow") continue
171 for (let index = 0; index < message.values.length; index++) {
172 const field = message.values[index]
173 if (field !== null) fieldSink = success(PgTypes.decode(field, wideOid, 1))
174 }
175 count++
176 }
177 return count
178}
179
180const decodeWideRowsFused = () => {
181 let count = 0

Callers 1

PgCodec.tsFile · 0.85

Calls 3

successFunction · 0.70
pushMethod · 0.65
decodeMethod · 0.45

Tested by

no test coverage detected