Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

trouble migrating from 0.6.8 -> 0.7.0 #16

Closed
let4be opened this issue Jun 1, 2021 · 1 comment
Closed

trouble migrating from 0.6.8 -> 0.7.0 #16

let4be opened this issue Jun 1, 2021 · 1 comment

Comments

@let4be
Copy link

let4be commented Jun 1, 2021

So, I removed all Reflection references from my code and all Reflection derives from structures interfacing with clickhouse...

However I have one generic writer function that looks something like

pub async fn go<A: Clone + std::fmt::Debug + Send, R: Serialize, F: Fn(A) -> R>(&self,client: Client,map: &F) -> Result<()> {
      let mut inserter = client.inserter(...);
      inserter.write(&map(...)).await?;
      ...
}

now I'm getting this error which I find unintuitive
error[E0277]: the trait bound R: clickhouse::row::Primitive is not satisfied (at the &map function call)
(as clickhouse::row::Primitive trait is private)

What would be the best way to resolve?...

p.s. before R: Serialize used to be R: Reflection + Serialize

@let4be
Copy link
Author

let4be commented Jun 1, 2021

replacing Reflection with clickhouse::Row and Reflection derive with Row derive fixed the problem
should'a looked more careful at what changed...

@let4be let4be closed this as completed Jun 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant