Module session (3.69.0)
Stay organized with collections
Save and categorize content based on your preferences.
Wrapper for Cloud Spanner Session objects.
Classes
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.
|
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 2026-06-26 UTC.
[null,null,["Last updated 2026-06-26 UTC."],[],[]]