lib/google/cloud/bigquery/job.rb in google-cloud-bigquery-1.34.0 vs lib/google/cloud/bigquery/job.rb in google-cloud-bigquery-1.35.0
- old
+ new
@@ -225,9 +225,18 @@
return nil unless @gapi.statistics.reservation_usage
Array(@gapi.statistics.reservation_usage).map { |g| ReservationUsage.from_gapi g }
end
##
+ # The ID of a multi-statement transaction.
+ #
+ # @return [String, nil] The transaction ID, or `nil` if not associated with a transaction.
+ #
+ def transaction_id
+ @gapi.statistics.transaction_info&.transaction_id
+ end
+
+ ##
# The statistics including stack frames for a child job of a script.
#
# @return [Google::Cloud::Bigquery::Job::ScriptStatistics, nil] The script statistics, or `nil` if the job is
# not a child job.
#