MCPcopy Create free account
hub / github.com/Effect-TS/effect / requireNonNegativeCount

Function requireNonNegativeCount

packages/sql/pg/src/PgProtocol.ts:1801–1806  ·  view source on GitHub ↗
(count: number, name: string)

Source from the content-addressed store, hash-verified

1799}
1800
1801const requireNonNegativeCount = (count: number, name: string): number => {
1802 if (count < 0) {
1803 throw new ParseError({ message: `Invalid ${name} count: ${count}` })
1804 }
1805 return count
1806}
1807
1808const decodeCopyResponse = (
1809 reader: Reader

Callers 2

decodeCopyResponseFunction · 0.85
decodeBackendFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected