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