new insertMany(table, records, options) → {Operation}
Insert many records, using the keys of the first as the column template
Parameters:
Name | Type | Description |
---|---|---|
table |
string | The target table |
records |
function | A function that takes state and returns an array of records |
options |
object | Optional options argument |
- Source:
Returns:
- Type
- Operation
Example
execute(
insertMany(table, records, { setNull: false, writeSql: true, logValues: false })
)(state)