var step = require('step'); var PSQL = require('cartodb-psql'); var assert = require('assert'); function PostgresFormat(id) { this.id = id; } PostgresFormat.prototype = { getQuery: function(sql/*, options*/) { return sql; }, getContentType: function(){ return this._contentType; }, getFileExtension: function() { return this.id; } }; PostgresFormat.prototype.handleQueryRow = function(row, result) { result.addRow(row); }; PostgresFormat.prototype.handleQueryRowWithSkipFields = function(row, result) { var sf = this.opts.skipfields; for ( var j=0; j