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