MCPcopy Create free account
hub / github.com/auxten/postgresql-parser / EncodeStringAscending

Function EncodeStringAscending

pkg/util/encoding/encoding.go:695–697  ·  view source on GitHub ↗

EncodeStringAscending encodes the string value using an escape-based encoding. See EncodeBytes for details. The encoded bytes are append to the supplied buffer and the resulting buffer is returned.

(b []byte, s string)

Source from the content-addressed store, hash-verified

693// EncodeBytes for details. The encoded bytes are append to the supplied buffer
694// and the resulting buffer is returned.
695func EncodeStringAscending(b []byte, s string) []byte {
696 return encodeStringAscendingWithTerminatorAndPrefix(b, s, ascendingEscapes.escapedTerm, bytesMarker)
697}
698
699// encodeStringAscendingWithTerminatorAndPrefix encodes the string value using an escape-based encoding. See
700// EncodeBytes for details. The encoded bytes are append to the supplied buffer

Callers 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…