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

Function decodeRowsFused

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

Source from the content-addressed store, hash-verified

136const fusedRowParser = PgProtocol.makeParser({ readField: success(PgTypes.makeFieldReader(binaryColumns)) })
137
138const decodeRowsFused = () => {
139 let count = 0
140 for (const message of fusedRowParser.push(binaryRowsPayload)) {
141 if (message._tag !== "DataRow") continue
142 for (let index = 0; index < message.values.length; index++) {
143 fieldSink = message.values[index]
144 }
145 count++
146 }
147 return count
148}
149
150// A wide row of cheap columns, where the view per field is most of the work.
151const wideColumnCount = 20

Callers 1

PgCodec.tsFile · 0.85

Calls 1

pushMethod · 0.65

Tested by

no test coverage detected