lib/index.js
function mapValueCast (value) {
      index++
      parameters.push(inputValue(value))

      let cast = ''

      if (Buffer.isBuffer(value))
        cast = '::bytea'
      else if (typeof value === 'number' && value % 1 === 0)
        cast = '::int'

      return `$${index}${cast}`
    }
function mapValueCast (value) {
      index++
      parameters.push(inputValue(value))

      let cast = ''

      if (Buffer.isBuffer(value))
        cast = '::bytea'
      else if (typeof value === 'number' && value % 1 === 0)
        cast = '::int'

      return `$${index}${cast}`
    }
function mapValueCast ( value ) { index ++ parameters . push ( inputValue ( value ) ) let cast = '' if ( Buffer . isBuffer ( value ) ) cast = '::bytea' else if ( typeof value === 'number' && value % 1 === 0 ) cast = '::int' return ` ${ index } ${ cast } ` }
These functions modify the variables in this closure.
These functions modify the variables in this closure .