func unmarshal(s sql.Scanner, b []byte) error { var d interface{} if err := json.Unmarshal(b, &d); err != nil { return err } return s.Scan(d) }
func decodeScanner(scanner sql.Scanner, b []byte) error { if b == nil { return scanner.Scan(nil) } return scanner.Scan(b) }