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

Function PortalSuspended

cf/src/connection.js:841–852  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

839 }
840
841 async function PortalSuspended() {
842 try {
843 const x = await Promise.resolve(query.cursorFn(result))
844 rows = 0
845 x === CLOSE
846 ? write(Close(query.portal))
847 : (result = new Result(), write(Execute('', query.cursorRows)))
848 } catch (err) {
849 write(Sync)
850 query.reject(err)
851 }
852 }
853
854 function CloseComplete() {
855 result.count && query.cursorFn(result)

Callers

nothing calls this directly

Calls 3

writeFunction · 0.70
CloseFunction · 0.70
ExecuteFunction · 0.70

Tested by

no test coverage detected