Scan implements the sql.Scanner method.
(src any)
| 58 | |
| 59 | // Scan implements the sql.Scanner method. |
| 60 | func (b *BooleanSet) Scan(src any) error { |
| 61 | srcByte, ok := src.([]byte) |
| 62 | if !ok { |
| 63 | return ErrValueNotSupported |
| 64 | } |
| 65 | return b.UnmarshalBinary(srcByte) |
| 66 | } |
| 67 | |
| 68 | // Sets set BooleanSet values in batch. |
| 69 | func Sets[T constraints.Integer](val map[T]bool, bs *BooleanSet) { |
nothing calls this directly
no test coverage detected