MCPcopy
hub / github.com/jackc/pgx / PreferredFormat

Method PreferredFormat

pgtype/composite.go:50–55  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

48}
49
50func (c *CompositeCodec) PreferredFormat() int16 {
51 if c.FormatSupported(BinaryFormatCode) {
52 return BinaryFormatCode
53 }
54 return TextFormatCode
55}
56
57func (c *CompositeCodec) PlanEncode(m *Map, oid uint32, format int16, value any) EncodePlan {
58 if _, ok := value.(CompositeIndexGetter); !ok {

Callers

nothing calls this directly

Calls 1

FormatSupportedMethod · 0.95

Tested by

no test coverage detected