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(spanner): added support for setting database_dialect on google_spanner_database #11235

Closed
wants to merge 1 commit into from

Conversation

rahul2393
Copy link

@rahul2393 rahul2393 commented Mar 8, 2022

Add support for setting database_dialect on google_spanner_database

@rahul2393 rahul2393 changed the title feat(spanner): added support for setting a database_dialect on google_spanner_database feat(spanner): added support for setting database_dialect on google_spanner_database Mar 8, 2022
Copy link

@aseering aseering left a comment

Choose a reason for hiding this comment

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

Thanks for putting this together!

I left a couple comments. One general comment -- can/should there be tests?

if v == nil {
return v
}
return ConvertSelfLinkToV1(v.(string))
Copy link

Choose a reason for hiding this comment

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

ConvertSelfLinkToV1() cleans URLs. But database dialects are enums, I didn't think they can contain URLs? So that function should be a no-op for any valid dialect. Should this be a no-op like (for example) flattenSpannerDatabaseState() above?

@@ -100,6 +100,10 @@ The following arguments are supported:
* `deletion_protection` - (Optional) Whether or not to allow Terraform to destroy the instance. Unless this field is set to false
in Terraform state, a `terraform destroy` or `terraform apply` that would delete the instance will fail.

* `database_dialect` - (Optional) The dialect of the Cloud Spanner Database.
If it is not provided, "DATABASE_DIALECT_UNSPECIFIED" will be used.
Copy link

Choose a reason for hiding this comment

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

Could I request adding an extra bit of information to this comment?

If it is not provided, "DATABASE_DIALECT_UNSPECIFIED" will be used, which will create a Google Standard SQL database.

@rahul2393
Copy link
Author

rahul2393 commented Mar 8, 2022

Patch will be auto-generated by GoogleCloudPlatform/magic-modules#5799

@rahul2393 rahul2393 closed this Mar 8, 2022
@github-actions
Copy link

github-actions bot commented Apr 8, 2022

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 8, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants