MCPcopy Index your code
hub / github.com/coder/coder / Scan

Method Scan

coderd/database/models.go:841–848  ·  view source on GitHub ↗

Scan implements the Scanner interface.

(value interface{})

Source from the content-addressed store, hash-verified

839
840// Scan implements the Scanner interface.
841func (ns *NullAgentKeyScopeEnum) Scan(value interface{}) error {
842 if value == nil {
843 ns.AgentKeyScopeEnum, ns.Valid = "", false
844 return nil
845 }
846 ns.Valid = true
847 return ns.AgentKeyScopeEnum.Scan(value)
848}
849
850// Value implements the driver Valuer interface.
851func (ns NullAgentKeyScopeEnum) Value() (driver.Value, error) {

Callers

nothing calls this directly

Calls 1

ScanMethod · 0.45

Tested by

no test coverage detected