Adding snippets for Spanner DatabaseAdminClient.#2408
Merged
snehashah16 merged 2 commits intomasterfrom Sep 7, 2017
Merged
Conversation
|
Can you also run the command to insert these snippets into DatabaseAdminClient and include that as part of this PR |
vkedia
approved these changes
Sep 7, 2017
| + ") PRIMARY KEY (SingerId, AlbumId),\n" | ||
| + " INTERLEAVE IN PARENT Singers ON DELETE CASCADE")); | ||
| Database db = op.waitFor().getResult(); | ||
| System.out.println("Created database [" + db.getId() + "]"); |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Contributor
Author
|
Ok, verified! The commit does not seem to have printlns now:
https://github.com/GoogleCloudPlatform/google-cloud-java/pull/2408/files
…On Thu, Sep 7, 2017 at 1:01 PM, Vikas Kedia ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In google-cloud-examples/src/main/java/com/google/cloud/
examples/spanner/snippets/DatabaseAdminClientSnippets.java
<#2408 (comment)>
:
> + databaseId,
+ Arrays.asList(
+ "CREATE TABLE Singers (\n"
+ + " SingerId INT64 NOT NULL,\n"
+ + " FirstName STRING(1024),\n"
+ + " LastName STRING(1024),\n"
+ + " SingerInfo BYTES(MAX)\n"
+ + ") PRIMARY KEY (SingerId)",
+ "CREATE TABLE Albums (\n"
+ + " SingerId INT64 NOT NULL,\n"
+ + " AlbumId INT64 NOT NULL,\n"
+ + " AlbumTitle STRING(MAX)\n"
+ + ") PRIMARY KEY (SingerId, AlbumId),\n"
+ + " INTERLEAVE IN PARENT Singers ON DELETE CASCADE"));
+ Database db = op.waitFor().getResult();
+ System.out.println("Created database [" + db.getId() + "]");
Oh I just meant remove all the printlns.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#2408 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/Aa_6vBDfA7rBkbn62ZdraU9snWn8DMVqks5sgEuLgaJpZM4PN15c>
.
--
Sneha Shah
|
chingor13
pushed a commit
that referenced
this pull request
Feb 20, 2026
suztomo
pushed a commit
to suztomo/google-cloud-java
that referenced
this pull request
Mar 23, 2026
googleapis#2408) This PR contains the following updates: | Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Adoption](https://docs.renovatebot.com/merge-confidence/) | [Passing](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-trace](https://redirect.github.com/googleapis/google-cloud-java) | `2.85.0` → `2.86.0` |  |  |  |  | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/googleapis/java-spanner-jdbc). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4zNi4yIiwidXBkYXRlZEluVmVyIjoiNDMuMzYuMiIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->
suztomo
pushed a commit
to suztomo/google-cloud-java
that referenced
this pull request
Mar 23, 2026
🤖 I have created a release *beep* *boop* --- ## [2.35.4](https://togithub.com/googleapis/java-spanner-jdbc/compare/v2.35.3...v2.35.4) (2026-03-04) ### Bug Fixes * Fix Column Type Name for PostgreSQL ARRAY types ([googleapis#2409](https://togithub.com/googleapis/java-spanner-jdbc/issues/2409)) ([cc95355](https://togithub.com/googleapis/java-spanner-jdbc/commit/cc9535517ac7a91b098e99ec53242663747bed63)) * Fix UTC<->Timezone conversion issue for DST start and end timestamp ([googleapis#2260](https://togithub.com/googleapis/java-spanner-jdbc/issues/2260)) ([a628fbc](https://togithub.com/googleapis/java-spanner-jdbc/commit/a628fbc2569af1eab47f56c2bafc6cbbbe7566c8)) ### Dependencies * Update dependency com.fasterxml.jackson.core:jackson-databind to v2.21.1 ([googleapis#2406](https://togithub.com/googleapis/java-spanner-jdbc/issues/2406)) ([b1a9cfd](https://togithub.com/googleapis/java-spanner-jdbc/commit/b1a9cfd087d43b8d4b8a9f563f77df96c303c9ca)) * Update dependency com.google.api.grpc:proto-google-cloud-trace-v1 to v2.85.0 ([googleapis#2395](https://togithub.com/googleapis/java-spanner-jdbc/issues/2395)) ([c0e7ac2](https://togithub.com/googleapis/java-spanner-jdbc/commit/c0e7ac257707f7c5b1a895bef325e99f0f2b2e71)) * Update dependency com.google.api.grpc:proto-google-cloud-trace-v1 to v2.86.0 ([googleapis#2407](https://togithub.com/googleapis/java-spanner-jdbc/issues/2407)) ([3f6e7fc](https://togithub.com/googleapis/java-spanner-jdbc/commit/3f6e7fc65d0c2f989dd83cb6b13196fb72278203)) * Update dependency com.google.cloud:google-cloud-spanner to v6.111.1 ([googleapis#2410](https://togithub.com/googleapis/java-spanner-jdbc/issues/2410)) ([644c081](https://togithub.com/googleapis/java-spanner-jdbc/commit/644c0816a1a061ca4c73fb0187dbcf57729d64c2)) * Update dependency com.google.cloud:google-cloud-spanner-bom to v6.111.1 ([googleapis#2411](https://togithub.com/googleapis/java-spanner-jdbc/issues/2411)) ([351a974](https://togithub.com/googleapis/java-spanner-jdbc/commit/351a974567edca6e387bb56d14ef09eb038cbfb5)) * Update dependency com.google.cloud:google-cloud-trace to v2.85.0 ([googleapis#2396](https://togithub.com/googleapis/java-spanner-jdbc/issues/2396)) ([2f93594](https://togithub.com/googleapis/java-spanner-jdbc/commit/2f9359434f25191e5db827c9fa2c33e6493e7650)) * Update dependency com.google.cloud:google-cloud-trace to v2.86.0 ([googleapis#2408](https://togithub.com/googleapis/java-spanner-jdbc/issues/2408)) ([2bedcba](https://togithub.com/googleapis/java-spanner-jdbc/commit/2bedcba91133e079829812c3dcdf88b7994caad4)) * Update dependency com.google.cloud:sdk-platform-java-config to v3.57.0 ([googleapis#2405](https://togithub.com/googleapis/java-spanner-jdbc/issues/2405)) ([fb80362](https://togithub.com/googleapis/java-spanner-jdbc/commit/fb803624c94d5b04c1212fb2c1765107b0e887a0)) * Update dependency net.bytebuddy:byte-buddy to v1.18.5 ([googleapis#2397](https://togithub.com/googleapis/java-spanner-jdbc/issues/2397)) ([f498b66](https://togithub.com/googleapis/java-spanner-jdbc/commit/f498b66202aec9bceedc7fb9ed4eb962dcfdad07)) * Update dependency net.bytebuddy:byte-buddy-agent to v1.18.5 ([googleapis#2398](https://togithub.com/googleapis/java-spanner-jdbc/issues/2398)) ([507c255](https://togithub.com/googleapis/java-spanner-jdbc/commit/507c255ba6a55e79855643c5c4143fd9d23f5a02)) * Update dependency org.springframework.boot:spring-boot to v4.0.3 ([googleapis#2403](https://togithub.com/googleapis/java-spanner-jdbc/issues/2403)) ([a2fbe8d](https://togithub.com/googleapis/java-spanner-jdbc/commit/a2fbe8d497d95940f1deaf1efc9dda7d2f913e45)) * Update dependency org.springframework.boot:spring-boot-starter-data-jdbc to v4.0.3 ([googleapis#2404](https://togithub.com/googleapis/java-spanner-jdbc/issues/2404)) ([e1ae535](https://togithub.com/googleapis/java-spanner-jdbc/commit/e1ae5353123477669fbe4e2efd1003ba5eaff6be)) * Update dependency org.springframework.boot:spring-boot-starter-parent to v3.5.11 ([googleapis#2402](https://togithub.com/googleapis/java-spanner-jdbc/issues/2402)) ([626096d](https://togithub.com/googleapis/java-spanner-jdbc/commit/626096d6428defed74e7c62f5810898c8f0f931b)) --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.