-
Notifications
You must be signed in to change notification settings - Fork 123
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
docs: add samples for PostgreSQL #1700
Conversation
Here is the summary of changes. You are about to add 4 region tags.
This comment is generated by snippet-bot.
|
samples/snippets/src/main/java/com/example/spanner/PgCaseSensitivitySample.java
Outdated
Show resolved
Hide resolved
+ " AlbumId bigint NOT NULL," | ||
+ " Title varchar(1024) NOT NULL," | ||
+ " PRIMARY KEY (SingerId, AlbumId)" | ||
+ ") INTERLEAVE IN PARENT Singers ON DELETE CASCADE"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we have sample for drop? One of the benefit is that we only support cascade drop for interleaved table.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What exactly do you mean? I don't think we support cascade drop, only cascade delete. Or is that what you meant?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sorry, yep, delete.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
@jin-jj : Can you have a look at the PR if it looks ok to you? Now that we have the PR for existing samples available, I think this can be merged together with that one. So marking it as approved.
LGTM. I have a comment about the INTERLEAVE IN on delete cascade, but let's worry about it later. |
🤖 I have created a release *beep* *boop* --- ### [6.23.3](v6.23.2...v6.23.3) (2022-04-21) ### Dependencies * update dependency com.google.cloud:google-cloud-shared-dependencies to v2.10.0 ([#1830](#1830)) ([3c55eb3](3c55eb3)) ### Documentation * add samples for PostgreSQL ([#1700](#1700)) ([a024483](a024483)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
Adds samples specifically for PG dialect databases.
cc @jin-jj