Sha256: bf6e8e296f8f3033414c6ff7b16b8ab8f5f31dae686fdacbefd068267d952abd
Contents?: true
Size: 597 Bytes
Versions: 30
Compression:
Stored size: 597 Bytes
Contents
class TreasureData::API module PartialDelete #### ## Partial delete API ## # @param [String] db # @param [String] table # @param [Fixnum] to # @param [Fixnum] from # @param [Hash] opts # @return [String] 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
30 entries across 30 versions & 1 rubygems