func (attr *Bytes) Scan(vr *pgx.ValueReader) error { if vr.Len() == -1 { attr.Value = nil attr.Status = Null return nil } attr.Value = vr.ReadBytes(vr.Len()) attr.Status = Present return vr.Err() }