lib/record.js
function validateRecord (table, record) {
  invariant(
    _.isString(table),
    'Must provide a table'
  )

  invariant(
    /^[a-z0-9_]{3,255}$/.test(table),
    'Table must be between 3 and 255 characters and must ' +
    'consist only of lower case letters, numbers, and _'
  )

  invariant(
    _.isObject(record),
    'Must provide a record'
  )
}
function validateRecord (table, record) {
  invariant(
    _.isString(table),
    'Must provide a table'
  )

  invariant(
    /^[a-z0-9_]{3,255}$/.test(table),
    'Table must be between 3 and 255 characters and must ' +
    'consist only of lower case letters, numbers, and _'
  )

  invariant(
    _.isObject(record),
    'Must provide a record'
  )
}
function validateRecord ( table , record ) { invariant ( _ . isString ( table ) , 'Must provide a table' ) invariant ( / ^[a-z0-9_]{3,255}$ / . test ( table ) , 'Table must be between 3 and 255 characters and must ' + 'consist only of lower case letters, numbers, and _' ) invariant ( _ . isObject ( record ) , 'Must provide a record' ) }
Helpers 
Validate record
Helpers Validate record