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

Reuse config between reader and writer #71

Closed
AndreasVolkmann opened this issue Nov 14, 2020 · 1 comment
Closed

Reuse config between reader and writer #71

AndreasVolkmann opened this issue Nov 14, 2020 · 1 comment
Labels
feature request New feature request

Comments

@AndreasVolkmann
Copy link

When reading/writing you usually want to use the same config, i.e. charset, quoteChar, etc.

It would be great if we could write this config once, and then reuse in both read and write.

Something like:

val context = CsvContext {
    charset = "UTF-8"
}

csvReader(context)...
csvWriter(context)...
@doyaaaaaken
Copy link
Owner

Thank you for your feedback!

It's not bad idea, but actually the config of reader and writer are different. These have some common config elements, but many are different.
And I think there would be few use-cases to reuse config between reader and writer.

@doyaaaaaken doyaaaaaken added the feature request New feature request label Nov 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature request
Projects
None yet
Development

No branches or pull requests

2 participants