Module session (3.11.1)

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
NameDescription
database Database

The database to which the session is bound.

labels dict (str -> str)

(Optional) User-assigned labels for the session.