Value fulfills the sql.driver.Valuer interface.
()
| 117 | |
| 118 | // Value fulfills the sql.driver.Valuer interface. |
| 119 | func (b *Block) Value() (driver.Value, error) { |
| 120 | return b.Bytes() |
| 121 | } |
| 122 | |
| 123 | // FromBytes parses a Block from a byte slice, by unmarshaling and |
| 124 | // converting a RawBlock protobuf. |