Skip to content

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)

@hugosandelius
Copy link
Author

@dhui could you take a look at this please? It's a small change but enables an important feature in Spanner 🙏

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