var Step = require('step'), PSQL = require(global.settings.app_root + '/app/models/psql'); 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