Skip to content

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

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

chore(migration): Migrate code from googleapis/python-spanner into packages/google-cloud-spanner#16187
chalmerlowe wants to merge 1092 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.

ankiaga and others added 30 commits January 29, 2024 04:22
* fix: Few fixes in DBAPI 

* Small fix

* Test fix
…nstance APIs. (#1065)

* docs: samples and tests for auto-generated createDatabase and createInstance APIs.

* 🦉 Updates from OwlBot post-processor

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

* fix lint

* incorporate suggestions

* rename tests

* fix lint

* fix failures

* chore(spanner): fix formatting

* incorporate suggesitons

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Sri Harsha CH <sriharshach@google.com>
Co-authored-by: Sri Harsha CH <57220027+harshachinta@users.noreply.github.com>
)

* feat(spanner): add SpannerAsyncClient import to spanner_v1 package

* feat(spanner): move to seperate line

* feat(spanner): fix lint
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>
@chalmerlowe chalmerlowe marked this pull request as ready for review March 26, 2026 13:15
@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
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.