Class Table (3.19.0)

Stay organized with collections Save and categorize content based on your preferences.
Table(table_id, database)

Representation of a Cloud Spanner Table.

Parameters

NameDescription
table_id str

The ID of the table.

database Database

The database that owns the table.

Inheritance

builtins.object > Table

Properties

schema

The schema of this table.

Returns
TypeDescription
list of FieldThe table schema.

table_id

The ID of the table used in SQL.

Returns
TypeDescription
strThe table ID.

Methods

exists

exists()

Test whether this table exists.

Returns
TypeDescription
boolTrue if the table exists, else false.

reload

reload()

Reload this table.

Refresh any configured schema into schema.

Exceptions
TypeDescription
NotFoundif the table does not exist