Sha256: 7fdbf05993e674cb1d1956074b0ac33fa9ce0805b7fc6cc135974e1fa74c098f

Contents?: true

Size: 456 Bytes

Versions: 1

Compression:

Stored size: 456 Bytes

Contents

class TreasureData::API
module PartialDelete

  ####
  ## Partial delete API
  ##

  def partial_delete(db, table, to, from, opts={})
    params = opts.dup
    params['to'] = to.to_s
    params['from'] = from.to_s
    code, body, res = post("/v3/table/partialdelete/#{e db}/#{e table}", params)
    if code != "200"
      raise_error("Partial delete 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/partial_delete.rb