Class: insert

Adaptor~insert(table, fields) → {Operation}

new insert(table, fields) → {Operation}

Insert a record
Parameters:
Name Type Description
table string The target table
fields object A fields object
Source:
Returns:
Type
Operation
Example
execute(
  insert('table', fields(
     field('name', dataValue('name'))
  ))
)(state)