type github.com/jackc/pgx/v5/pgtype.BitsCodec
10 uses
github.com/jackc/pgx/v5/pgtype (current package)
bits.go#L56: buf, err := BitsCodec{}.PlanEncode(nil, 0, TextFormatCode, src).Encode(src, nil)
bits.go#L63: type BitsCodec struct{}
bits.go#L65: func (BitsCodec) FormatSupported(format int16) bool {
bits.go#L69: func (BitsCodec) PreferredFormat() int16 {
bits.go#L73: func (BitsCodec) PlanEncode(m *Map, oid uint32, format int16, value any) EncodePlan {
bits.go#L129: func (BitsCodec) PlanScan(m *Map, oid uint32, format int16, target any) ScanPlan {
bits.go#L144: func (c BitsCodec) DecodeDatabaseSQLValue(m *Map, oid uint32, format int16, src []byte) (driver.Value, error) {
bits.go#L148: func (c BitsCodec) DecodeValue(m *Map, oid uint32, format int16, src []byte) (any, error) {
pgtype_default.go#L51: defaultMap.RegisterType(&Type{Name: "bit", OID: BitOID, Codec: BitsCodec{}})
pgtype_default.go#L91: defaultMap.RegisterType(&Type{Name: "varbit", OID: VarbitOID, Codec: BitsCodec{}})