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

Function handle

cjs/src/connection.js:461–490  ·  view source on GitHub ↗
(xs, x = xs[0])

Source from the content-addressed store, hash-verified

459
460 /* Handlers */
461 function handle(xs, x = xs[0]) {
462 (
463 x === 68 ? DataRow : // D
464 x === 100 ? CopyData : // d
465 x === 65 ? NotificationResponse : // A
466 x === 83 ? ParameterStatus : // S
467 x === 90 ? ReadyForQuery : // Z
468 x === 67 ? CommandComplete : // C
469 x === 50 ? BindComplete : // 2
470 x === 49 ? ParseComplete : // 1
471 x === 116 ? ParameterDescription : // t
472 x === 84 ? RowDescription : // T
473 x === 82 ? Authentication : // R
474 x === 110 ? NoData : // n
475 x === 75 ? BackendKeyData : // K
476 x === 69 ? ErrorResponse : // E
477 x === 115 ? PortalSuspended : // s
478 x === 51 ? CloseComplete : // 3
479 x === 71 ? CopyInResponse : // G
480 x === 78 ? NoticeResponse : // N
481 x === 72 ? CopyOutResponse : // H
482 x === 99 ? CopyDone : // c
483 x === 73 ? EmptyQueryResponse : // I
484 x === 86 ? FunctionCallResponse : // V
485 x === 118 ? NegotiateProtocolVersion : // v
486 x === 87 ? CopyBothResponse : // W
487 /* c8 ignore next */
488 UnknownMessage
489 )(xs)
490 }
491
492 function DataRow(x) {
493 let index = 7

Callers 1

dataFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected