type github.com/jackc/pgx/v5/pgtype.BitsCodec
10 uses
github.com/jackc/pgx/v5/pgtype (current package)
bits.go#L57: buf, err := BitsCodec{}.PlanEncode(nil, 0, TextFormatCode, src).Encode(src, nil)
bits.go#L64: type BitsCodec struct{}
bits.go#L66: func (BitsCodec) FormatSupported(format int16) bool {
bits.go#L70: func (BitsCodec) PreferredFormat() int16 {
bits.go#L74: func (BitsCodec) PlanEncode(m *Map, oid uint32, format int16, value any) EncodePlan {
bits.go#L130: func (BitsCodec) PlanScan(m *Map, oid uint32, format int16, target any) ScanPlan {
bits.go#L145: func (c BitsCodec) DecodeDatabaseSQLValue(m *Map, oid uint32, format int16, src []byte) (driver.Value, error) {
bits.go#L149: 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{}})