You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
668 B
JavaScript

var inherits = require('inherits')
var assign = require('lodash/object/assign')
var Formatter = require('../../formatter')
function MSSQL_Formatter(client) {
Formatter.call(this, client)
}
inherits(MSSQL_Formatter, Formatter)
assign(MSSQL_Formatter.prototype, {
// Accepts a string or array of columns to wrap as appropriate.
columnizeWithPrefix: function(prefix, target) {
var columns = typeof target === 'string' ? [target] : target
var str = '', i = -1;
while (++i < columns.length) {
if (i > 0) str += ', '
str += prefix + this.wrap(columns[i])
}
return str
},
})
module.exports = MSSQL_Formatter