postgres/client.js
function createReadStream(options) {
  const { prefix, values, keys } = options,
    transform = TransformStream(options),
    selects = [];

  if (keys) selects.push('id');
  if (values) selects.push('data');

  baseQuery(prefix)
    .select(...selects)
    .where('id', 'like', `${prefix}%`)
    .pipe(transform);

  return transform;
}
function createReadStream(options) {
  const { prefix, values, keys } = options,
    transform = TransformStream(options),
    selects = [];

  if (keys) selects.push('id');
  if (values) selects.push('data');

  baseQuery(prefix)
    .select(...selects)
    .where('id', 'like', `${prefix}%`)
    .pipe(transform);

  return transform;
}
function createReadStream ( options ) { const { prefix , values , keys } = options , transform = TransformStream ( options ) , selects = [ ] ; if ( keys ) selects . push ( 'id' ) ; if ( values ) selects . push ( 'data' ) ; baseQuery ( prefix ) . select ( ... selects ) . where ( 'id' , 'like' , ` ${ prefix } ` ) . pipe ( transform ) ; return transform ; }
Return a readable stream of query results
from the db

@param  {Object} options
@return {Stream}
Return a readable stream of query results from the db