Scan implements the Scanner interface.
(value interface{})
| 197 | |
| 198 | // Scan implements the Scanner interface. |
| 199 | func (x *NullProjectStatus) Scan(value interface{}) (err error) { |
| 200 | x.Set = true |
| 201 | if value == nil { |
| 202 | x.ProjectStatus, x.Valid = ProjectStatus(0), false |
| 203 | return |
| 204 | } |
| 205 | |
| 206 | err = x.ProjectStatus.Scan(value) |
| 207 | x.Valid = (err == nil) |
| 208 | return |
| 209 | } |
| 210 | |
| 211 | // Value implements the driver Valuer interface. |
| 212 | func (x NullProjectStatus) Value() (driver.Value, error) { |
no test coverage detected