Stay organized with collections Save and categorize content based on your preferences.

Table API

User friendly container for Cloud Spanner Table.

class, database)

Bases: object

Representation of a Cloud Spanner Table.

  • Parameters

    • table_id (str) – The ID of the table.

    • database (Database) – The database that owns the table.


Test whether this table exists.

  • Return type


  • Returns

    True if the table exists, else false.


Reload this table.

Refresh any configured schema into schema.

  • Raises

    NotFound – if the table does not exist

property schema()

The schema of this table.

  • Return type

    list of Field

  • Returns

    The table schema.

property table_id()

The ID of the table used in SQL.

  • Return type


  • Returns

    The table ID.