Scan implements the Scanner interface.
(value interface{})
| 1263 | |
| 1264 | // Scan implements the Scanner interface. |
| 1265 | func (ns *NullChatClientType) Scan(value interface{}) error { |
| 1266 | if value == nil { |
| 1267 | ns.ChatClientType, ns.Valid = "", false |
| 1268 | return nil |
| 1269 | } |
| 1270 | ns.Valid = true |
| 1271 | return ns.ChatClientType.Scan(value) |
| 1272 | } |
| 1273 | |
| 1274 | // Value implements the driver Valuer interface. |
| 1275 | func (ns NullChatClientType) Value() (driver.Value, error) { |