Value implements the [driver.Valuer] interface.
()
| 360 | |
| 361 | // Value implements the [driver.Valuer] interface. |
| 362 | func (l FieldsList) Value() (driver.Value, error) { |
| 363 | data, err := json.Marshal(l) |
| 364 | |
| 365 | return string(data), err |
| 366 | } |
| 367 | |
| 368 | // Scan implements [sql.Scanner] interface to scan the provided value |
| 369 | // into the current FieldsList instance. |
no outgoing calls