monzero/vendor/github.com/jackc/pgx/v5/pgtype/text_format_only_codec.go

14 lines
276 B
Go
Raw Normal View History

package pgtype
type TextFormatOnlyCodec struct {
Codec
}
func (c *TextFormatOnlyCodec) FormatSupported(format int16) bool {
return format == TextFormatCode && c.Codec.FormatSupported(format)
}
func (TextFormatOnlyCodec) PreferredFormat() int16 {
return TextFormatCode
}