Module session (1.13.0)

Wrapper for Cloud Spanner Session objects.

Classes

Session

Session(database, labels=None)

Representation of a Cloud Spanner Session.

We can use a Session to:

  • create the session
  • Use exists to check for the existence of the session
  • drop the session
Parameters
Name Description
database Database

The database to which the session is bound.

labels dict (str -> str)

(Optional) User-assigned labels for the session.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年12月16日 UTC.