Value implements the driver.Valuer interface for database serialization.
()
| 1865 | |
| 1866 | // Value implements the driver.Valuer interface for database serialization. |
| 1867 | func (d Decimal) Value() (driver.Value, error) { |
| 1868 | return d.String(), nil |
| 1869 | } |
| 1870 | |
| 1871 | // UnmarshalText implements the encoding.TextUnmarshaler interface for XML |
| 1872 | // deserialization. |