Skip to content

Spanner: Add PingingPool to toplevel spanner module - #6886

Merged
crwilcox merged 3 commits into
googleapis:masterfrom
crwilcox:add-pingingpool-to-spanner-alias
Dec 10, 2018
Merged

Spanner: Add PingingPool to toplevel spanner module#6886
crwilcox merged 3 commits into
googleapis:masterfrom
crwilcox:add-pingingpool-to-spanner-alias

Conversation

@crwilcox

Copy link
Copy Markdown
Contributor

No description provided.

@crwilcox crwilcox added the api: spanner Issues related to the Spanner API. label Dec 10, 2018
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Dec 10, 2018
@crwilcox

crwilcox commented Dec 10, 2018

Copy link
Copy Markdown
Contributor Author

The documentation at https://gcloud-python.readthedocs.io/en/stable/spanner/session-api.html#google.cloud.spanner.pool.PingingPool (not this clients but reasonable enough) states you can access it this way but you cannot as it was not included.

@tseaver tseaver left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should probably be adding the other pool classes, too (FixedSizePool is there already):

  • AbstractSessionPool (users who write their own pool implementations need it.
  • BurstyPool
  • TransactionPingingPool

@crwilcox

Copy link
Copy Markdown
Contributor Author

Current list of impls is below. I can add TransactionPingingPool as well


__all__ = (
    "__version__",
    "AbstractSessionPool",
    "BurstyPool",
    "Client",
    "COMMIT_TIMESTAMP",
    "enums",
    "FixedSizePool",
    "KeyRange",
    "KeySet",
    "param_types",
    "PingingPool",
    "types",
)

@crwilcox
crwilcox force-pushed the add-pingingpool-to-spanner-alias branch from aa6c2d4 to 7aff218 Compare December 10, 2018 20:21
@crwilcox
crwilcox merged commit a43f885 into googleapis:master Dec 10, 2018
@crwilcox
crwilcox deleted the add-pingingpool-to-spanner-alias branch December 10, 2018 21:10
parthea pushed a commit that referenced this pull request Mar 9, 2026
* Add PingingPool to toplevel spanner module

* Add TransactionPingingPool to spanner module

* Add PingingPools to spanner_v1 module
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: spanner Issues related to the Spanner API. cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants