lib/google/cloud/bigquery/data.rb in google-cloud-bigquery-0.21.0 vs lib/google/cloud/bigquery/data.rb in google-cloud-bigquery-0.23.0

- old
+ new

@@ -72,10 +72,11 @@ # # @example # require "google/cloud/bigquery" # # bigquery = Google::Cloud::Bigquery.new + # dataset = bigquery.dataset "my_dataset" # table = dataset.table "my_table" # # data = table.data # if data.next? # next_data = data.next @@ -92,10 +93,11 @@ # # @example # require "google/cloud/bigquery" # # bigquery = Google::Cloud::Bigquery.new + # dataset = bigquery.dataset "my_dataset" # table = dataset.table "my_table" # # data = table.data # if data.next? # next_data = data.next @@ -127,29 +129,32 @@ # # @example Iterating each rows by passing a block: # require "google/cloud/bigquery" # # bigquery = Google::Cloud::Bigquery.new + # dataset = bigquery.dataset "my_dataset" # table = dataset.table "my_table" # # table.data.all do |row| # puts row["word"] # end # # @example Using the enumerator by not passing a block: # require "google/cloud/bigquery" # # bigquery = Google::Cloud::Bigquery.new + # dataset = bigquery.dataset "my_dataset" # table = dataset.table "my_table" # # words = table.data.all.map do |row| # row["word"] # end # # @example Limit the number of API calls made: # require "google/cloud/bigquery" # # bigquery = Google::Cloud::Bigquery.new + # dataset = bigquery.dataset "my_dataset" # table = dataset.table "my_table" # # table.data.all(request_limit: 10) do |row| # puts row["word"] # end