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

Method Scan

coderd/database/models.go:51–58  ·  view source on GitHub ↗

Scan implements the Scanner interface.

(value interface{})

Source from the content-addressed store, hash-verified

49
50// Scan implements the Scanner interface.
51func (ns *NullAIProviderType) Scan(value interface{}) error {
52 if value == nil {
53 ns.AIProviderType, ns.Valid = "", false
54 return nil
55 }
56 ns.Valid = true
57 return ns.AIProviderType.Scan(value)
58}
59
60// Value implements the driver Valuer interface.
61func (ns NullAIProviderType) Value() (driver.Value, error) {

Callers

nothing calls this directly

Calls 1

ScanMethod · 0.45

Tested by

no test coverage detected