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

17 lines
322 B
JavaScript
Raw Normal View History

var ogr = require('./ogr');
2013-05-16 17:24:52 +08:00
function csv() {}
2013-05-16 17:24:52 +08:00
csv.prototype = new ogr('csv');
2013-05-16 17:24:52 +08:00
var p = csv.prototype;
2013-05-16 17:24:52 +08:00
p._contentType = "text/csv; charset=utf-8; header=present";
p._fileExtension = "csv";
2013-05-16 17:24:52 +08:00
p.generate = function(options, callback) {
this.toOGR_SingleFile(options, 'CSV', callback);
2013-05-16 17:24:52 +08:00
};
module.exports = csv;