MCPcopy Create free account
hub / github.com/cloudreve/cloudreve / Scan

Method Scan

pkg/boolset/boolset.go:60–66  ·  view source on GitHub ↗

Scan implements the sql.Scanner method.

(src any)

Source from the content-addressed store, hash-verified

58
59// Scan implements the sql.Scanner method.
60func (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.
69func Sets[T constraints.Integer](val map[T]bool, bs *BooleanSet) {

Callers

nothing calls this directly

Calls 1

UnmarshalBinaryMethod · 0.95

Tested by

no test coverage detected