Method: BigQuery::Client::Tables#table_data
- Defined in:
- lib/big_query/client/tables.rb
#table_data(tableId, dataset = @dataset) ⇒ Hash
Returns all rows of table data
36 37 38 39 40 41 |
# File 'lib/big_query/client/tables.rb', line 36 def table_data(tableId, dataset = @dataset) response = api(api_method: @bq.tabledata.list, parameters: { 'datasetId' => dataset, 'tableId' => tableId }) response['rows'] || [] end |