Scan implements the Scanner interface.
(value interface{})
| 897 | |
| 898 | // Scan implements the Scanner interface. |
| 899 | func (ns *NullAiSeatUsageReason) Scan(value interface{}) error { |
| 900 | if value == nil { |
| 901 | ns.AiSeatUsageReason, ns.Valid = "", false |
| 902 | return nil |
| 903 | } |
| 904 | ns.Valid = true |
| 905 | return ns.AiSeatUsageReason.Scan(value) |
| 906 | } |
| 907 | |
| 908 | // Value implements the driver Valuer interface. |
| 909 | func (ns NullAiSeatUsageReason) Value() (driver.Value, error) { |