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

Function write

deno/src/connection.js:249–255  ·  view source on GitHub ↗
(x, fn)

Source from the content-addressed store, hash-verified

247 }
248
249 function write(x, fn) {
250 chunk = chunk ? Buffer.concat([chunk, x]) : Buffer.from(x)
251 if (fn || chunk.length >= 1024)
252 return nextWrite(fn)
253 nextWriteTimer === null && (nextWriteTimer = setImmediate(nextWrite))
254 return true
255 }
256
257 function nextWrite(fn) {
258 const x = socket.write(chunk, fn)

Callers 14

executeFunction · 0.70
secureFunction · 0.70
dataFunction · 0.70
connectedFunction · 0.70
CommandCompleteFunction · 0.70
ParameterDescriptionFunction · 0.70
RowDescriptionFunction · 0.70
SASLFunction · 0.70
SASLContinueFunction · 0.70
NoDataFunction · 0.70

Calls 5

setImmediateFunction · 0.90
nextWriteFunction · 0.70
writeMethod · 0.65
endMethod · 0.65
rawMethod · 0.65

Tested by

no test coverage detected