As of January 1, 2020 this library no longer supports Python 2 on the latest released version. Library versions released prior to that date will continue to be available. For more information please visit Python 2 support on Google Cloud.

google.cloud.bigquery.job.DmlStats

class google.cloud.bigquery.job.DmlStats(inserted_row_count: int = 0, deleted_row_count: int = 0, updated_row_count: int = 0)[source]

Detailed statistics for DML statements.

https://cloud.google.com/bigquery/docs/reference/rest/v2/DmlStats

Create new instance of DmlStats(inserted_row_count, deleted_row_count, updated_row_count)

__init__()

Initialize self. See help(type(self)) for accurate signature.

Methods

__init__()

Initialize self.

count(value, /)

Return number of occurrences of value.

from_api_repr(stats)

index(value[, start, stop])

Return first index of value.

Attributes

deleted_row_count

Number of deleted rows.

inserted_row_count

Number of inserted rows.

updated_row_count

Number of updated rows.

count(value, /)

Return number of occurrences of value.

deleted_row_count: int

Number of deleted rows. populated by DML DELETE, MERGE and TRUNCATE statements.

index(value, start=0, stop=9223372036854775807, /)

Return first index of value.

Raises ValueError if the value is not present.

inserted_row_count: int

Number of inserted rows. Populated by DML INSERT and MERGE statements.

updated_row_count: int

Number of updated rows. Populated by DML UPDATE and MERGE statements.