MCPcopy Create free account
hub / github.com/PostHog/duckgres / encodeText

Function encodeText

server/types.go:854–857  ·  view source on GitHub ↗
(v interface{})

Source from the content-addressed store, hash-verified

852}
853
854func encodeText(v interface{}) []byte {
855 str := formatValue(v)
856 return []byte(str)
857}
858
859// encodeJSON re-serializes a Go value to JSON bytes.
860// The Go DuckDB driver deserializes JSON columns into native Go types

Callers 3

encodeBinaryFunction · 0.85
encodeNumericFunction · 0.85
encodeJSONFunction · 0.85

Calls 1

formatValueFunction · 0.85

Tested by

no test coverage detected