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

feat: inject database info on list databases #2656

Merged
merged 2 commits into from
Feb 4, 2020

Conversation

AVaksman
Copy link
Contributor

fixes #2524

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Jan 30, 2020
Copy link
Contributor

@dwsupplee dwsupplee left a comment

Choose a reason for hiding this comment

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

Looks good! Just a small note.

@@ -183,14 +183,16 @@ public function __construct(
$projectId,
$name,
SessionPoolInterface $sessionPool = null,
$returnInt64AsObject = false
$returnInt64AsObject = false,
array $info = null
Copy link
Contributor

Choose a reason for hiding this comment

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

You could default the array in the signature here, instead of needing the elvis operator on line 195

Suggested change
array $info = null
array $info = []

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done, thanks

@dwsupplee dwsupplee added the api: spanner Issues related to the Spanner API. label Jan 30, 2020
@jdpedrie jdpedrie changed the title refactor: inject database info on list databases feat: inject database info on list databases Feb 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: spanner Issues related to the Spanner API. cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[spanner] inject database info on list databases
4 participants