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

Method Scan

coderd/database/models.go:1325–1332  ·  view source on GitHub ↗

Scan implements the Scanner interface.

(value interface{})

Source from the content-addressed store, hash-verified

1323
1324// Scan implements the Scanner interface.
1325func (ns *NullChatMessageRole) Scan(value interface{}) error {
1326 if value == nil {
1327 ns.ChatMessageRole, ns.Valid = "", false
1328 return nil
1329 }
1330 ns.Valid = true
1331 return ns.ChatMessageRole.Scan(value)
1332}
1333
1334// Value implements the driver Valuer interface.
1335func (ns NullChatMessageRole) Value() (driver.Value, error) {

Callers

nothing calls this directly

Calls 1

ScanMethod · 0.45

Tested by

no test coverage detected