lib/delete.js
function (key) {
      if (key === undefined) {
        that.push({
          key: 'DOCUMENT' + sep + docId + sep,
          lastPass: true
        })
        return end()
      }
      that.options.indexes.get(key, function (err, val) {
        if (!err) {
          that.push({
            key: key,
            value: val
          })
        }
        pushValue(docFields[i++])
      })
    }
function (key) {
      if (key === undefined) {
        that.push({
          key: 'DOCUMENT' + sep + docId + sep,
          lastPass: true
        })
        return end()
      }
      that.options.indexes.get(key, function (err, val) {
        if (!err) {
          that.push({
            key: key,
            value: val
          })
        }
        pushValue(docFields[i++])
      })
    }
function ( key ) { if ( key === undefined ) { that . push ( { key : 'DOCUMENT' + sep + docId + sep , lastPass : true } ) return end ( ) } that . options . indexes . get ( key , function ( err , val ) { if ( ! err ) { that . push ( { key : key , value : val } ) } pushValue ( docFields [ i ++ ] ) } ) }
get value from db and push it to the stream
get value from db and push it to the stream