-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Batch Write API implementation and samples (#1027)
* feat: Batch Write API implementation and samples * Update sample * review comments * return public class for mutation groups * Update google/cloud/spanner_v1/batch.py Co-authored-by: Sri Harsha CH <[email protected]> * Update google/cloud/spanner_v1/batch.py Co-authored-by: Sri Harsha CH <[email protected]> * review comments * remove doc * feat(spanner): nit sample data refactoring * review comments * fix test --------- Co-authored-by: Sri Harsha CH <[email protected]> Co-authored-by: Sri Harsha CH <[email protected]>
- Loading branch information
1 parent
7debe71
commit aa36b07
Showing
9 changed files
with
584 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,6 +27,14 @@ | |
(2, "Bharney", "Rhubble", "[email protected]"), | ||
(3, "Wylma", "Phlyntstone", "[email protected]"), | ||
) | ||
BATCH_WRITE_ROW_DATA = ( | ||
(1, "Phred", "Phlyntstone", "[email protected]"), | ||
(2, "Bharney", "Rhubble", "[email protected]"), | ||
(3, "Wylma", "Phlyntstone", "[email protected]"), | ||
(4, "Pebbles", "Phlyntstone", "[email protected]"), | ||
(5, "Betty", "Rhubble", "[email protected]"), | ||
(6, "Slate", "Stephenson", "[email protected]"), | ||
) | ||
ALL = spanner_v1.KeySet(all_=True) | ||
SQL = "SELECT * FROM contacts ORDER BY contact_id" | ||
|
||
|
This file contains 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
Oops, something went wrong.