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

[GCS] Add option to stream reads #1848

Merged

Conversation

rickclephas
Copy link
Contributor

Adds a streamReads option to the GoogleCloudStorageAdapter (similar to the AwsS3V3Adapter).

It makes sure that readStream will actually stream the read instead of downloading the whole file.
When set to true the behaviour will be the same as with the official GCS StreamWrapper.

To preserve backwards compatibility the default value is set to false, this could be changed to true in a future version.

@frankdejonge
Copy link
Member

@rickclephas if you could rebase on latest 3.x, that will probably make the tests green again.

@rickclephas rickclephas force-pushed the feature/gcs-streaming-reads branch from 78b0018 to 91ecc62 Compare January 26, 2025 14:03
@frankdejonge frankdejonge merged commit e96dfac into thephpleague:3.x Jan 27, 2025
6 checks passed
@rickclephas rickclephas deleted the feature/gcs-streaming-reads branch January 27, 2025 12:08
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.

2 participants