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

2.1 #1656

Merged
merged 3 commits into from May 9, 2018
Merged

2.1 #1656

merged 3 commits into from May 9, 2018

Conversation

glgeorgiev
Copy link

Requirements

  • Checked the codebase to ensure that your feature doesn't already exist.
  • Checked the pull requests to ensure that another person hasn't already submitted the feature or fix.
  • Adjusted the Documentation.
  • Added tests to ensure against regression.

Description of the Change

Added option to pass encoding to Chunked CSV Reader.

Why Should This Be Added?

It improves the usability of the package.

Benefits

It will now support other file encodings, besides UTF-8.

Possible Drawbacks

None.

Verification Process

The parameter is optional, it doesn't affect the expected behavior of the ChunkedReadJob class.

Applicable Issues

#870
#1364

@@ -64,7 +69,8 @@ public function __construct(
$startIndex,
$chunkSize,
callable $callback,
$shouldQueue = true
$shouldQueue = true,
$encoding = null
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you update the docblock as well please

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, of course. I have updated the docblock.

@patrickbrouwers patrickbrouwers merged commit 06e397a into SpartnerNL:2.1 May 9, 2018
@patrickbrouwers
Copy link
Member

Thanks 👍

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

Successfully merging this pull request may close these issues.

None yet

2 participants