monzero/vendor/github.com/jackc/pgx/v5/pgtype/text_format_only_codec.go
Gibheer 6ea4d2c82d switch from github.com/lib/pq to github.com/jackc/pgx/v5
lib/pq is out of maintenance for some time now, so switch to the newer
more active library. Looks like it finally stabilized after a long time.
2024-09-05 19:38:25 +02:00

14 lines
276 B
Go

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
}