Class: insert

Adaptor~insert(table, record, options) → {Operation}

new insert(table, record, options) → {Operation}

Insert a record
Parameters:
Name Type Description
table string The target table
record object Payload data for the record as a JS object or function
options object Optional options argument
Source:
Returns:
Type
Operation
Example
insert('users', { name: 'Elodie', id: 7 }, { setNull: "'NaN'", logValues: true });