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

Query deserializer feature #69

Open
Dushistov opened this issue Feb 25, 2022 · 1 comment
Open

Query deserializer feature #69

Dushistov opened this issue Feb 25, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@Dushistov
Copy link
Owner

It would be nice to have optional functionality to decode query as whole,
example:

while let Some(item) = query_iter.next()? {
    let (p1, p2, ...): (T1, T2, ...) = deserialize_with_serde(item)?;
}
#[derive(Deserialize)]
struct QueryResult {
   f1: T1,
   f2: T2,
...
}
while let Some(item) = query_iter.next()? {
    let res: QueryResult = deserialize_with_serde(item)?;
}
@Dushistov Dushistov added the enhancement New feature or request label Feb 25, 2022
@Dushistov
Copy link
Owner Author

Dushistov commented Feb 25, 2022

Initial implementation can be found here: #66 .
What missed:

  • tests
  • feature to make it optional
  • replace bunch of todo! with help of usage of serde-fleece

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant