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.TransactionInfo

class google.cloud.bigquery.job.TransactionInfo(transaction_id: str)[source]

[Alpha] Information of a multi-statement transaction.

https://cloud.google.com/bigquery/docs/reference/rest/v2/Job#TransactionInfo

New in version 2.24.0.

Create new instance of TransactionInfo(transaction_id,)

__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(transaction_info)

index(value[, start, stop])

Return first index of value.

Attributes

transaction_id

Output only.

count(value, /)

Return number of occurrences of value.

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

Return first index of value.

Raises ValueError if the value is not present.

transaction_id: str

Output only. ID of the transaction.