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

Function encodeDescribe

packages/sql/pg/src/PgProtocol.ts:1007–1012  ·  view source on GitHub ↗
(options: Omit<Describe, "_tag">)

Source from the content-addressed store, hash-verified

1005 * @since 4.0.0
1006 */
1007export const encodeDescribe = (options: Omit<Describe, "_tag">): Uint8Array => {
1008 const writer = begin(0x44)
1009 writer.uint8(targetByte(options.target))
1010 writer.cString(options.name)
1011 return end()
1012}
1013
1014/**
1015 * Encodes a `Close` message.

Callers 1

encodeFunction · 0.85

Calls 5

targetByteFunction · 0.85
beginFunction · 0.70
endFunction · 0.70
uint8Method · 0.45
cStringMethod · 0.45

Tested by

no test coverage detected