function mkSelect(table, fields, conjunct) {
  var _head, _where, _fields;
  _fields = fields.length > 0 ? fields.join(', ') : '*';
  _head = 'SELECT ' + _fields + ' FROM ' + table;
  return _head + ' ' + mkWhere(conjunct);
}
/**
 * Creates a valid SQL select statement given a table, fields to select,
 * and a conjunction of field/values to screen against.
 *
 * @param {String} table    - the target table for insertion
 * @param {Array(String)} fields - a list of fields to present in the results
 * @param {Object} conjunct - a conjunction of field/value pairs to filter
 * @returns {String} string representation of SQL SELECT statement
 */
Creates a valid SQL select statement given a table, fields to select,
and a conjunction of field/values to screen against.

@param {String} table    - the target table for insertion
@param {Array(String)} fields - a list of fields to present in the results
@param {Object} conjunct - a conjunction of field/value pairs to filter
@returns {String} string representation of SQL SELECT statement
Creates a valid SQL select statement given a table fields to select and a conjunction of field / values to screen against . @param { String } table - the target table for insertion @param { Array ( String ) } fields - a list of fields to present in the results @param { Object } conjunct - a conjunction of field / value pairs to filter @returns { String } string representation of SQL SELECT statement
function mkSelect(table, fields, conjunct) {
  var _head, _where, _fields;
  _fields = fields.length > 0 ? fields.join(', ') : '*';
  _head = 'SELECT ' + _fields + ' FROM ' + table;
  return _head + ' ' + mkWhere(conjunct);
}
function mkSelect ( table , fields , conjunct ) { var _head , _where , _fields ; _fields = fields . length > 0 ? fields . join ( ', ' ) : '*' ; _head = 'SELECT ' + _fields + ' FROM ' + table ; return _head + ' ' + mkWhere ( conjunct ) ; }
Creates a valid SQL select statement given a table, fields to select,
 and a conjunction of field/values to screen against.
Creates a valid SQL select statement given a table fields to select and a conjunction of field / values to screen against .