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): add support for proto bundle DDL statements #1235

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

hugosandelius
Copy link

Adds support for the following DDL statements in Spanner:

  • CREATE PROTO BUNDLE
  • ALTER PROTO BUNDLE INSERT
  • ALTER PROTO BUNDLE UPDATE

In the Spanner API, these DDL statements must be accompanied with a param specifying proto descriptors, so to support this a new x-proto-descriptors-file configuration is added, specifying the path to a binary file containing proto descriptors.

Unfortunately the spannertest package used for testing the Spanner driver does not yet support proto bundle statements, so I could not write any unit tests, but this was manually tested against Spanner.

The version of cloud.google.com/go/spanner had to be bumped so the x-clean-statements flag could work (otherwise it fails since it doesn't recognize proto bundle DDL statements)

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.

1 participant