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

Method Scan

coderd/database/models.go:1183–1190  ·  view source on GitHub ↗

Scan implements the Scanner interface.

(value interface{})

Source from the content-addressed store, hash-verified

1181
1182// Scan implements the Scanner interface.
1183func (ns *NullBuildReason) Scan(value interface{}) error {
1184 if value == nil {
1185 ns.BuildReason, ns.Valid = "", false
1186 return nil
1187 }
1188 ns.Valid = true
1189 return ns.BuildReason.Scan(value)
1190}
1191
1192// Value implements the driver Valuer interface.
1193func (ns NullBuildReason) Value() (driver.Value, error) {

Callers

nothing calls this directly

Calls 1

ScanMethod · 0.45

Tested by

no test coverage detected