CartoDB-SQL-API/lib/models/formats/ogr/csv.js
Daniel García Aubert 5a96dbb59c Run eslint --fix
2019-12-23 18:19:08 +01:00

17 lines
382 B
JavaScript

'use strict';
var Ogr = require('./../ogr');
function CsvFormat () {}
CsvFormat.prototype = new Ogr('csv');
CsvFormat.prototype._contentType = 'text/csv; charset=utf-8; header=present';
CsvFormat.prototype._fileExtension = 'csv';
CsvFormat.prototype.generate = function (options, callback) {
this.toOGR_SingleFile(options, 'CSV', callback);
};
module.exports = CsvFormat;