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

CSV generation for large tuples (aka custom CSVItem conversion) #24

Open
kondziu opened this issue Aug 2, 2021 · 0 comments
Open

CSV generation for large tuples (aka custom CSVItem conversion) #24

kondziu opened this issue Aug 2, 2021 · 0 comments
Labels
v4 wishlist Things to do for v4.

Comments

@kondziu
Copy link
Contributor

kondziu commented Aug 2, 2021

When an entity is mapped into more than 11 elements, the csv generator functions don't understand the resulting tuple type. There should be a way to generate a CSV row (or multiple rows) from an entity in those cases.

One candidate solution is to have something like:

db.projects()
    .into_csv(|project| { 
        vec![CSVItem::from("id", project.id()),
               CSVItem::from("url", project.url())],
    }, ...)
@kondziu kondziu added the v4 wishlist Things to do for v4. label Aug 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
v4 wishlist Things to do for v4.
Projects
None yet
Development

No branches or pull requests

1 participant