Scan implements the Scanner interface.
(value interface{})
| 957 | |
| 958 | // Scan implements the Scanner interface. |
| 959 | func (ns *NullAppSharingLevel) Scan(value interface{}) error { |
| 960 | if value == nil { |
| 961 | ns.AppSharingLevel, ns.Valid = "", false |
| 962 | return nil |
| 963 | } |
| 964 | ns.Valid = true |
| 965 | return ns.AppSharingLevel.Scan(value) |
| 966 | } |
| 967 | |
| 968 | // Value implements the driver Valuer interface. |
| 969 | func (ns NullAppSharingLevel) Value() (driver.Value, error) { |