MCPcopy Index your code
hub / github.com/brianc/node-postgres / _handleCopyData

Method _handleCopyData

packages/pg/lib/client.js:516–524  ·  view source on GitHub ↗
(msg)

Source from the content-addressed store, hash-verified

514 }
515
516 _handleCopyData(msg) {
517 const activeQuery = this._getActiveQuery()
518 if (activeQuery == null) {
519 const error = new Error('Received unexpected copyData message from backend.')
520 this._handleErrorEvent(error)
521 return
522 }
523 activeQuery.handleCopyData(msg, this.connection)
524 }
525
526 _handleNotification(msg) {
527 this.emit('notification', msg)

Callers

nothing calls this directly

Calls 3

_getActiveQueryMethod · 0.95
_handleErrorEventMethod · 0.95
handleCopyDataMethod · 0.80

Tested by

no test coverage detected