Scan implements the Scanner interface.
(value interface{})
| 341 | |
| 342 | // Scan implements the Scanner interface. |
| 343 | func (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. |
| 353 | func (ns NullAPIKeyScope) Value() (driver.Value, error) { |