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';
2019-01-16 22:58:11 +08:00
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
2019-01-16 22:58:11 +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;