Class Table (3.57.0)

  Table 
 ( 
 table_id 
 , 
 database 
 , 
 schema_name 
 = 
 None 
 ) 
 

Representation of a Cloud Spanner Table.

Parameters

Name
Description
table_id
str

The ID of the table.

database
Database

The database that owns the table.

Properties

qualified_table_name

The qualified name of the table used in SQL.

Returns
Type
Description
str
The qualified table name.

schema

The schema of this table.

Returns
Type
Description
list of Field
The table schema.

schema_name

The schema name of the table used in SQL.

Returns
Type
Description
str
The table schema name.

table_id

The ID of the table used in SQL.

Returns
Type
Description
str
The table ID.

Methods

exists

  exists 
 () 
 

Test whether this table exists.

Returns
Type
Description
bool
True if the table exists, else false.

reload

  reload 
 () 
 

Reload this table.

Refresh any configured schema into schema .

Exceptions
Type
Description
NotFound
if the table does not exist
Design a Mobile Site
View Site in Mobile | Classic
Share by: