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

Method FormatSupported

pgtype/composite.go:40–48  ·  view source on GitHub ↗
(format int16)

Source from the content-addressed store, hash-verified

38}
39
40func (c *CompositeCodec) FormatSupported(format int16) bool {
41 for _, f := range c.Fields {
42 if !f.Type.Codec.FormatSupported(format) {
43 return false
44 }
45 }
46
47 return true
48}
49
50func (c *CompositeCodec) PreferredFormat() int16 {
51 if c.FormatSupported(BinaryFormatCode) {

Callers 1

PreferredFormatMethod · 0.95

Calls 1

FormatSupportedMethod · 0.65

Tested by

no test coverage detected