-
Notifications
You must be signed in to change notification settings - Fork 31
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
SHOW CHANGE STREAMS statement #137
Comments
Thanks for the suggested layout. Another layout representation would be just using the response of the GetDatabaseDdlResponse. With this way we don't need to change our layout even if a new notation/syntax is added to the Change Stream in the future. |
Equivalent DDLs $ gcloud spanner databases ddl describe --project=$PROJECT_ID --instance=$INSTANCE_ID $DATABASE_ID | pcregrep -M 'CREATE CHANGE STREAM [^;]*;'
CREATE CHANGE STREAM Empty;
CREATE CHANGE STREAM EverythingStream
FOR ALL;
CREATE CHANGE STREAM NamesAndAlbums
FOR Singers(FirstName, LastName), Albums, Songs OPTIONS (
retention_period = '36h'
);
CREATE CHANGE STREAM SingerAlbumStream
FOR Singers, Albums; |
Thanks! That's the one. What do you think? |
spanner-cli already have the MySQL-style |
The generic
(We should consider about |
That's a good idea! +1 👍 |
Implemented
3 can be generalized as discussed but I think 1( I think it can be generalized as the sugar for |
Thanks for summarizing that. I totally agree with the summarized categories. The user story might be running
I'm not sure if we can assemble the proper |
I agree it is impossible to assemble DDLs from INFORMATION_SCHEMA in a general way and it is possible using As for
In thought experimental, most of
Note: |
Sounds good.
How can we get the |
I don't think it can possible to get the |
Yeah perhaps we have to implement each |
refs #135 (comment)
FOR ALL
or empty streams alsoProposed layout
Semantics
References
INFORMATION_SCHEMA.CHANGE_STREAMS
INFORMATION_SCHEMA.CHANGE_STREAM_TABLES
INFORMATION_SCHEMA.CHANGE_STREAM_COLUMNS
INFORMATION_SCHEMA.CHANGE_STREAM_OPTIONS
The text was updated successfully, but these errors were encountered: