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

Method Scan

coderd/database/models.go:343–350  ·  view source on GitHub ↗

Scan implements the Scanner interface.

(value interface{})

Source from the content-addressed store, hash-verified

341
342// Scan implements the Scanner interface.
343func (ns *NullAPIKeyScope) Scan(value interface{}) error {
344 if value == nil {
345 ns.APIKeyScope, ns.Valid = "", false
346 return nil
347 }
348 ns.Valid = true
349 return ns.APIKeyScope.Scan(value)
350}
351
352// Value implements the driver Valuer interface.
353func (ns NullAPIKeyScope) Value() (driver.Value, error) {

Callers

nothing calls this directly

Calls 1

ScanMethod · 0.45

Tested by

no test coverage detected