Module session (3.57.0)

Wrapper for Cloud Spanner Session objects.

Classes

Session

  Session 
 ( 
 database 
 , 
 labels 
 = 
 None 
 , 
 database_role 
 = 
 None 
 , 
 is_multiplexed 
 = 
 False 
 ) 
 

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.

database_role
str

(Optional) user-assigned database_role for the session.

is_multiplexed
bool

(Optional) whether this session is a multiplexed session.

Design a Mobile Site
View Site in Mobile | Classic
Share by: