Sha256: 9831a208c570370b80bd5abc15cbd05c4d47df011b97679c67bee12a1a7d2433

Contents?: true

Size: 782 Bytes

Versions: 7

Compression:

Stored size: 782 Bytes

Contents

module GoogleBigquery
  class TableData < GoogleBigquery::Client

    def self.create(project_id, dataset_id, table_id, body={})
      res = GoogleBigquery::Auth.client.execute(
        :api_method=> GoogleBigquery::Auth.api.tabledata.insert_all, 
        :body_object=> body , #{"datasetReference"=> {"datasetId" =>"whoa"}}, 
        :parameters=> {"projectId"=> project_id, "datasetId"=> dataset_id, "tableId"=>table_id }
      )
      parse_response(res)
    end

    def self.list(project_id, dataset_id, table_id)
      res = GoogleBigquery::Auth.client.execute(
        :api_method=> GoogleBigquery::Auth.api.tabledata.list, 
        :parameters=> {"projectId"=> project_id, "datasetId"=> dataset_id, "tableId"=>table_id }
      )
      parse_response(res)
    end

  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
bigbroda-0.0.7 lib/google_bigquery/table_data.rb
bigbroda-0.0.6 lib/google_bigquery/table_data.rb
bigbroda-0.0.5 lib/google_bigquery/table_data.rb
bigbroda-0.0.4 lib/google_bigquery/table_data.rb
bigbroda-0.0.3 lib/google_bigquery/table_data.rb
bigbroda-0.0.2 lib/google_bigquery/table_data.rb
bigbroda-0.0.1 lib/google_bigquery/table_data.rb