Sha256: 20c4f54f1121b02c9be97584214c2573b25e0ce702faed0d9dea770666251d98

Contents?: true

Size: 557 Bytes

Versions: 18

Compression:

Stored size: 557 Bytes

Contents

class TreasureData::API
module Export

  ####
  ## Export API
  ##

  # => jobId:String
  # @param [String] db
  # @param [String] table
  # @param [String] storage_type
  # @param [Hash] opts
  # @return [String] job_id
  def export(db, table, storage_type, opts={})
    params = opts.dup
    params['storage_type'] = storage_type
    code, body, res = post("/v3/export/run/#{e db}/#{e table}", params)
    if code != "200"
      raise_error("Export failed", res)
    end
    js = checked_json(body, %w[job_id])
    return js['job_id'].to_s
  end

end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
td-client-0.8.84 lib/td/client/api/export.rb
td-client-0.8.83 lib/td/client/api/export.rb
td-client-0.8.82 lib/td/client/api/export.rb
td-client-0.8.81 lib/td/client/api/export.rb
td-client-0.8.80 lib/td/client/api/export.rb
td-client-0.8.79 lib/td/client/api/export.rb
td-client-0.8.78 lib/td/client/api/export.rb
td-client-0.9.0dev2 lib/td/client/api/export.rb
td-client-0.9.0dev1 lib/td/client/api/export.rb
td-client-0.8.77 lib/td/client/api/export.rb
td-client-0.8.76 lib/td/client/api/export.rb
td-client-0.8.75 lib/td/client/api/export.rb
td-client-0.8.74 lib/td/client/api/export.rb
td-client-0.8.73 lib/td/client/api/export.rb
td-client-0.8.72 lib/td/client/api/export.rb
td-client-0.8.71 lib/td/client/api/export.rb
td-client-0.8.70 lib/td/client/api/export.rb
td-client-0.8.69 lib/td/client/api/export.rb