gotosocial/vendor/github.com/jackc/pgx/v5/pgtype/text_format_only_codec.go
tobi ec325fee14
[chore] Update a bunch of database dependencies (#1772)
* [chore] Update a bunch of database dependencies

* fix lil thing
2023-05-12 14:33:40 +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
}