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

Function encodeExecute

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

Source from the content-addressed store, hash-verified

991 * @since 4.0.0
992 */
993export const encodeExecute = (options: Omit<Execute, "_tag">): Uint8Array => {
994 const writer = begin(0x45)
995 writer.cString(options.portal)
996 writer.int32(options.maxRows)
997 return end()
998}
999
1000/**
1001 * Encodes a `Describe` message.

Callers 1

encodeFunction · 0.85

Calls 4

beginFunction · 0.70
endFunction · 0.70
cStringMethod · 0.45
int32Method · 0.45

Tested by

no test coverage detected