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

Function encodePasswordMessage

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

Source from the content-addressed store, hash-verified

1061 * @since 4.0.0
1062 */
1063export const encodePasswordMessage = (options: Omit<PasswordMessage, "_tag">): Uint8Array => {
1064 const writer = begin(0x70)
1065 writer.cString(options.password)
1066 return end()
1067}
1068
1069/**
1070 * Encodes a `SASLInitialResponse` message.

Callers 1

encodeFunction · 0.85

Calls 3

beginFunction · 0.70
endFunction · 0.70
cStringMethod · 0.45

Tested by

no test coverage detected