MCPcopy Create free account
hub / github.com/porsager/postgres / read

Function read

cf/polyfills.js:197–206  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

195 }
196
197 async function read() {
198 try {
199 let done
200 , value
201 while (({ done, value } = await tcp.reader.read(), !done))
202 tcp.emit('data', Buffer.from(value))
203 } catch (err) {
204 error(err)
205 }
206 }
207
208 async function readFirst() {
209 const { value } = await tcp.reader.read()

Callers 1

connectFunction · 0.70

Calls 2

errorFunction · 0.70
readMethod · 0.65

Tested by

no test coverage detected