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

Function targetByte

packages/sql/pg/src/PgProtocol.ts:723–723  ·  view source on GitHub ↗
(target: DescribeTarget)

Source from the content-addressed store, hash-verified

721}
722
723const targetByte = (target: DescribeTarget): number => target === "statement" ? 0x53 : 0x50
724
725const requireUint16Count = (count: number, name: string): number => {
726 if (count > 0xffff) throw new EncodeError({ message: `${name} count exceeds 65535: ${count}` })

Callers 2

encodeDescribeFunction · 0.85
encodeCloseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected