Module session (3.38.0)

Wrapper for Cloud Spanner Session objects.

Classes

Session

Session(database, labels=None, database_role=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.

database_role str

(Optional) user-assigned database_role for the session.