Scan implements the Scanner interface.
(value interface{})
| 1111 | |
| 1112 | // Scan implements the Scanner interface. |
| 1113 | func (ns *NullAutomaticUpdates) Scan(value interface{}) error { |
| 1114 | if value == nil { |
| 1115 | ns.AutomaticUpdates, ns.Valid = "", false |
| 1116 | return nil |
| 1117 | } |
| 1118 | ns.Valid = true |
| 1119 | return ns.AutomaticUpdates.Scan(value) |
| 1120 | } |
| 1121 | |
| 1122 | // Value implements the driver Valuer interface. |
| 1123 | func (ns NullAutomaticUpdates) Value() (driver.Value, error) { |