Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: googleapis/python-spanner
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v3.23.0
Choose a base ref
...
head repository: googleapis/python-spanner
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v3.24.0
Choose a head ref
  • 5 commits
  • 22 files changed
  • 5 contributors

Commits on Nov 19, 2022

  1. chore(python): update release script dependencies (#855)

    Source-Link: googleapis/synthtool@25083af
    Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:e6cbd61f1838d9ff6a31436dfc13717f372a7482a82fc1863ca954ec47bff8c8
    
    Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
    gcf-owl-bot[bot] and gcf-owl-bot[bot] authored Nov 19, 2022
    Configuration menu
    Copy the full SHA
    1922a2e View commit details
    Browse the repository at this point in the history

Commits on Nov 22, 2022

  1. feat: Add support and tests for DML returning clauses (#805)

    This change adds support for DML returning clauses and includes a few prerequisite changes.
    
    I would suggest reviewing commit-by-commit. The commit messages provide additional context and are reproduced below,
    
    ### feat: Support custom endpoint when running tests
    
    By setting the `GOOGLE_CLOUD_TESTS_SPANNER_HOST` environment variable you can now run tests against an alternate Spanner API endpoint. This is particularly useful for running system tests against a pre-production deployment.
    
    ### refactor(dbapi): Remove most special handling of INSERTs
    
    For historical reasons it seems the INSERT codepath and that for UPDATE/DELETE were separated, but today there appears to be no practical differences in how these DML statements are handled. This change removes most of the special handling for INSERTs and uses existing methods for UPDATEs/DELETEs instead. The one remaining exception is the automatic addition of a WHERE clause to UPDATE and DELETE statements lacking one, which does not apply to INSERT statements.
    
    ### feat(dbapi): Add full support for rowcount
    
    Previously, rowcount was only available after executing an UPDATE or DELETE in autocommit mode. This change extends this support so that a rowcount is available for all DML statements, regardless of whether autocommit is enabled.
    
    ### feat: Add support for returning clause in DML
    
    This change adds support and tests for a returning clause in DML statements. This is done by moving executing of all DML to use `execute_sql`, which is already used when not in autocommit mode.
    c2nes authored Nov 22, 2022
    Configuration menu
    Copy the full SHA
    81505cd View commit details
    Browse the repository at this point in the history

Commits on Nov 26, 2022

  1. chore(python): drop flake8-import-order in samples noxfile (#857)

    Source-Link: googleapis/synthtool@6ed3a83
    Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:3abfa0f1886adaf0b83f07cb117b24a639ea1cb9cffe56d43280b977033563eb
    
    Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
    gcf-owl-bot[bot] and gcf-owl-bot[bot] authored Nov 26, 2022
    Configuration menu
    Copy the full SHA
    adc511f View commit details
    Browse the repository at this point in the history

Commits on Nov 30, 2022

  1. feat: Add snippets for Spanner DML with returning clause (#811)

    Samples are provided for INSERT, DELETE, and UPDATE in both GoogleSQL and PostgreSQL dialects. To provide a more compelling example for the INSERT case, a generated column has been added in the "create_database" example so that the generated value can be returned in the INSERT examples.
    c2nes authored Nov 30, 2022
    Configuration menu
    Copy the full SHA
    62e55b5 View commit details
    Browse the repository at this point in the history

Commits on Dec 2, 2022

  1. chore(main): release 3.24.0 (#856)

    Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
    release-please[bot] authored Dec 2, 2022
    Configuration menu
    Copy the full SHA
    20533b8 View commit details
    Browse the repository at this point in the history
Loading