Skip to content

chore(migration): Migrate code from googleapis/python-spanner into packages/google-cloud-spanner#16187

Closed
chalmerlowe wants to merge 1096 commits intomainfrom
migration.python-spanner.migration.2026-03-26_06-39-31.migrate
Closed

chore(migration): Migrate code from googleapis/python-spanner into packages/google-cloud-spanner#16187
chalmerlowe wants to merge 1096 commits intomainfrom
migration.python-spanner.migration.2026-03-26_06-39-31.migrate

Conversation

@chalmerlowe
Copy link
Copy Markdown
Contributor

See #10952.

This PR should be merged with a merge-commit, not a squash-commit, in order to preserve the git history.

release-please bot and others added 30 commits January 30, 2024 06:04
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Co-authored-by: Sri Harsha CH <57220027+harshachinta@users.noreply.github.com>
* proto generation

* max commit delay

* Fix some errors

* Unit tests

* regenerate proto changes

* Fix unit tests

* Finish test_transaction.py

* Finish test_batch.py

* Formatting

* Cleanup

* Fix merge conflict

* Add optional=True

* Remove optional=True, try calling HasField.

* Update HasField to be called on the protobuf.

* Update to timedelta.duration instead of an int.

* Cleanup

* Changes from Sri to pipe value to top-level funcitons and to add integration tests. Thanks Sri

* Run nox -s blacken

* feat(spanner): remove unused imports and add line

* feat(spanner): add empty line in python docs

* Update comment with valid values.

* Update comment with valid values.

* feat(spanner): fix lint

* feat(spanner): rever nox file changes

---------

Co-authored-by: Sri Harsha CH <57220027+harshachinta@users.noreply.github.com>
Co-authored-by: Sri Harsha CH <sriharshach@google.com>
* feat: Exposing Spanner client in dbapi connection

* Update comment

Co-authored-by: Knut Olav Løite <koloite@gmail.com>

---------

Co-authored-by: Knut Olav Løite <koloite@gmail.com>
* chore: support named schemas

* chore: import type and typecode

* fix: use magic string instead of method reference as default value

* fix: dialect property now also reloads the database

* Comment addressed

* Fix test

---------

Co-authored-by: Ankit Agarwal <146331865+ankiaga@users.noreply.github.com>
Co-authored-by: ankiaga <ankiaga@google.com>
* changes

* change

* tests

* tests

* changes

* change

* lint

* lint

---------

Co-authored-by: surbhigarg92 <surbhigarg.92@gmail.com>
* chore: Adding schema name property in dbapi connection

* small fix

* More changes

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* Comments incorporated

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* Comments incorporated

* lint issues fixed

* comment incorporated

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Sri Harsha CH <57220027+harshachinta@users.noreply.github.com>
* feat: Implementation to support executing partitioned dml query at dbapi

* Small fix

* Comments incorporated

* Comments incorporated
* docs: samples and tests for admin backup APIs

* fix test

* fix tests

* incorporate suggestions

---------

Co-authored-by: Sri Harsha CH <57220027+harshachinta@users.noreply.github.com>
* docs: samples and tests for admin database APIs

* rebase branch with main

* remove backup samples

* add more database samples

* remove unused import

* add more samples

* incorporate suggestions

* fix tests

* incorporate suggestions

* fix tests

* remove parallel run

---------

Co-authored-by: Sri Harsha CH <57220027+harshachinta@users.noreply.github.com>
#1109)

* docs: update all public documents to use auto-generated admin clients.

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* fix lint issue

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* lint fixes

* add missing samples

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
* docs: use autogenerated methods the fetch names from admin samples

* use database_admin_api for instance_path

* incorporate changes
* test: skip sample tests if no changes detected

* add exception for test file
* feat(spanner): add retry, timeout for batch update

* feat(spanner): add samples for retry, timeout

* feat(spanner): update unittest

* feat(spanner): update comments

* feat(spanner): update code for retry

* feat(spanner): update comment
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Source-Link: googleapis/synthtool@d895aec
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:98f3afd11308259de6e828e37376d18867fd321aba07826e29e4f8d9cab56bad

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
* Add a sample

* Small addition.

* Change sample to a transactional sample.

* Comments

* feat(spanner): update snippet tag position

* fix test output

---------

Co-authored-by: Sri Harsha CH <57220027+harshachinta@users.noreply.github.com>
Co-authored-by: Sri Harsha CH <sriharshach@google.com>
* docs: add sample for managed autoscaler

* incorporate suggestions

---------

Co-authored-by: Sri Harsha CH <57220027+harshachinta@users.noreply.github.com>
* feat: add support of float32 type

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* incorporate changes

* incorporate changes

* handle case for infinity

* fix build

* fix tests

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
* feat: add support for PG.OID in parameterized queries

* test: add tests for PG.OID bindings

* test: add test to check that the PG.OID param type is correct

* lint: fix lint

* test: correct new test name

---------

Co-authored-by: larkee <larkee@users.noreply.github.com>
* chore(python): bump idna from 3.4 to 3.7 in .kokoro

Source-Link: googleapis/synthtool@d50980e
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:5a4c19d17e597b92d786e569be101e636c9c2817731f80a5adec56b2aa8fe070

* update replacement in owlbot.py

* Apply changes from googleapis/synthtool#1950

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Anthonios Partheniou <partheniou@google.com>
This is required for compliance with RFC3339/ISO8401 and timestamps
which do not comply will be rejected by Spanner.

Fixes #1131
@chalmerlowe chalmerlowe requested review from a team as code owners March 26, 2026 13:15
@snippet-bot
Copy link
Copy Markdown

snippet-bot bot commented Mar 26, 2026

Here is the summary of changes.

You are about to add 383 region tags.

This comment is generated by snippet-bot.
If you find problems with this result, please file an issue at:
https://github.com/googleapis/repo-automation-bots/issues.
To update this comment, add snippet-bot:force-run label or use the checkbox below:

  • Refresh this comment

@parthea parthea added the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Mar 26, 2026
@ohmayr ohmayr force-pushed the migration.python-spanner.migration.2026-03-26_06-39-31.migrate branch from 5baf303 to f561f37 Compare March 31, 2026 18:16
@parthea parthea closed this Mar 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

do not merge Indicates a pull request not ready for merge, due to either quality or timing.

Projects

None yet

Development

Successfully merging this pull request may close these issues.