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.

class int = 0, deleted_row_count: int = 0, updated_row_count: int = 0)[source]

Detailed statistics for DML statements.

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


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



Initialize self.

count(value, /)

Return number of occurrences of value.


index(value[, start, stop])

Return first index of value.



Number of deleted rows.


Number of inserted rows.


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.