As of January 1, 2020 this library no longer supports Python 2 on the latest released version.
Library versions released prior to that date will continue to be available. For more information please
visit Python 2 support on Google Cloud.
Table API¶
User friendly container for Cloud Spanner Table.
- class google.cloud.spanner_v1.table.Table(table_id, database, schema_name=None)[source]¶
Bases:
object
Representation of a Cloud Spanner Table.
- Parameters
- exists()[source]¶
Test whether this table exists.
- Return type
- Returns
True if the table exists, else false.
- property qualified_table_name¶
The qualified name of the table used in SQL.
- Return type
- Returns
The qualified table name.
- reload()[source]¶
Reload this table.
Refresh any configured schema into
schema
.- Raises
NotFound – if the table does not exist
- property schema_name¶
The schema name of the table used in SQL.
- Return type
- Returns
The table schema name.