CartoDB-SQL-API/app/models/formats/ogr/csv.js

17 lines
380 B
JavaScript
Raw Normal View History

2018-10-24 21:42:33 +08:00
'use strict';
var ogr = require('./../ogr');
2013-05-16 17:24:52 +08:00
2014-08-03 02:27:05 +08:00
function CsvFormat() {}
2013-05-16 17:24:52 +08:00
2014-08-03 02:27:05 +08:00
CsvFormat.prototype = new ogr('csv');
2013-05-16 17:24:52 +08:00
2014-08-03 02:27:05 +08:00
CsvFormat.prototype._contentType = "text/csv; charset=utf-8; header=present";
CsvFormat.prototype._fileExtension = "csv";
2013-05-16 17:24:52 +08:00
2014-08-03 02:27:05 +08:00
CsvFormat.prototype.generate = function(options, callback) {
this.toOGR_SingleFile(options, 'CSV', callback);
2013-05-16 17:24:52 +08:00
};
2014-08-03 02:27:05 +08:00
module.exports = CsvFormat;