type github.com/jackc/pgx/v5/pgtype.BitsCodec
10 uses
github.com/jackc/pgx/v5/pgtype (current package)
bits.go#L58: buf, err := BitsCodec{}.PlanEncode(nil, 0, TextFormatCode, src).Encode(src, nil)
bits.go#L65: type BitsCodec struct{}
bits.go#L67: func (BitsCodec) FormatSupported(format int16) bool {
bits.go#L71: func (BitsCodec) PreferredFormat() int16 {
bits.go#L75: func (BitsCodec) PlanEncode(m *Map, oid uint32, format int16, value any) EncodePlan {
bits.go#L131: func (BitsCodec) PlanScan(m *Map, oid uint32, format int16, target any) ScanPlan {
bits.go#L148: func (c BitsCodec) DecodeDatabaseSQLValue(m *Map, oid uint32, format int16, src []byte) (driver.Value, error) {
bits.go#L152: 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#L90: defaultMap.RegisterType(&Type{Name: "varbit", OID: VarbitOID, Codec: BitsCodec{}})