Sha256: 5d02bbe4874e18f97eb002df6e2059fdccea2086f177b84a1db48e920f30250c

Contents?: true

Size: 424 Bytes

Versions: 1

Compression:

Stored size: 424 Bytes

Contents

class TreasureData::API
module Export

  ####
  ## Export API
  ##

  # => jobId:String
  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

1 entries across 1 versions & 1 rubygems

Version Path
td-client-0.8.68 lib/td/client/api/export.rb