trait InsertsDatabaseRows

Methods

void
insertDatabaseRows(ConnectionInterface $connection, string $table, array $rows, int $maxBindings)

Insert database rows without exceeding the connection's binding limit.

void
insertDatabaseRowChunk(ConnectionInterface $connection, string $table, array $rows)

Insert one database row chunk.

Details

at line 17
protected void insertDatabaseRows(ConnectionInterface $connection, string $table, array $rows, int $maxBindings)

Insert database rows without exceeding the connection's binding limit.

Parameters

ConnectionInterface $connection
string $table
array $rows
int $maxBindings

Return Value

void

at line 43
protected void insertDatabaseRowChunk(ConnectionInterface $connection, string $table, array $rows)

Insert one database row chunk.

Parameters

ConnectionInterface $connection
string $table
array $rows

Return Value

void