bigquery.dataset

Classes

Dataset

Module Contents

class bigquery.dataset.Dataset(dataset_name=None, project=None, service_file=None, session=None, token=None, api_root=None)

Bases: bigquery.bigquery.BigqueryBase

Parameters:
  • dataset_name (Optional[str])

  • project (Optional[str])

  • service_file (Optional[Union[str, IO[AnyStr]]])

  • session (Optional[requests.Session])

  • token (Optional[gcloud.aio.auth.Token])

  • api_root (Optional[str])

dataset_name = None
async list_tables(session=None, timeout=60, params=None)

List tables in a dataset.

Parameters:
  • session (Optional[requests.Session])

  • timeout (int)

  • params (Optional[Dict[str, Any]])

Return type:

Dict[str, Any]

async list_datasets(session=None, timeout=60, params=None)

List datasets in current project.

Parameters:
  • session (Optional[requests.Session])

  • timeout (int)

  • params (Optional[Dict[str, Any]])

Return type:

Dict[str, Any]

async get(session=None, timeout=60, params=None)

Get a specific dataset in current project.

Parameters:
  • session (Optional[requests.Session])

  • timeout (int)

  • params (Optional[Dict[str, Any]])

Return type:

Dict[str, Any]

async insert(dataset, session=None, timeout=60)

Create datasets in current project.

Parameters:
  • dataset (Dict[str, Any])

  • session (Optional[requests.Session])

  • timeout (int)

Return type:

Dict[str, Any]

async delete(dataset_name=None, session=None, timeout=60)

Delete datasets in current project.

Parameters:
  • dataset_name (Optional[str])

  • session (Optional[requests.Session])

  • timeout (int)

Return type:

Dict[str, Any]