Type alias TableInsertManyOptions

TableInsertManyOptions: GenericInsertManyOptions
Overview

The options for an insertMany command on a table.

🚨Important: The options depend on the ordered parameter. If ordered is true, then the concurrency option is not allowed.

Example

const result = await table.insertMany([
{ id: uuid.v4(), name: 'John' },
{ id: uuid.v7(), name: 'Jane' },
], {
ordered: true,
timeout: 60000,
});

Example

const result = await table.insertMany([
{ id: uuid.v4(), name: 'John' },
{ id: uuid.v7(), name: 'Jane' },
], {
concurrency: 16, // ordered implicitly `false` if unset
});

Datatypes

See Table's documentation for information on the available datatypes for tables.

See

  • Table.insertMany
  • TableInsertManyResult