atoti_directquery_bigquery.standard_table_options module#

class atoti_directquery_bigquery.BigqueryStandardTableOptions#
__init__(*, keys=None)#

Additional options about the external table to create.

Parameters

keys (Optional[Sequence[str]]) – The columns that will become keys of the table.

Example

>>> from atoti_directquery_bigquery import BigqueryStandardTableOptions
>>> external_table = external_database.tables["tutorial", "SALES"]
>>> table = session.add_external_table(
...     external_table,
...     table_name="sales_renamed",
...     options=BigqueryStandardTableOptions(keys=["SALE_ID"]),
... )