daichirata / hammer

🛠 hammer is a command-line tool to schema management for Google Cloud Spanner.
MIT License
83 stars 24 forks source link

Support for Change Stream DDL #41

Closed rob-pomelo closed 2 years ago

rob-pomelo commented 2 years ago

Spanner recently added change streams (https://cloud.google.com/spanner/docs/change-streams/manage). Right now using the library on our schema fails because of unknown DDL (essentially because of CREATE CHANGE STREAM GlobalChangeStream FOR All;). Even being able to just ignore it would be great.

Thanks for an awesome library!

daichirata commented 2 years ago

Thanks for the report. We would like to support it in the future, but it is difficult to support the change streams definition immediately in hammer. So I added the ignore-change-streams flag you suggested. By specifying this flag, we can temporarily ignore the CREATE CHANGE STREAM definition.

rob-pomelo commented 2 years ago

Wow thank you so much for the quick turn around, super appreciated!