Value implements the database/sql/driver.Valuer interface. It converts d to a string.
()
| 766 | // Value implements the database/sql/driver.Valuer interface. It converts d to a |
| 767 | // string. |
| 768 | func (d Decimal) Value() (driver.Value, error) { |
| 769 | return d.String(), nil |
| 770 | } |
| 771 | |
| 772 | // Scan implements the database/sql.Scanner interface. It supports string, |
| 773 | // []byte, int64, float64. |