trait InsertsDatabaseRows

Methods

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

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

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

Insert one database row chunk.

int
maxBindings(ConnectionInterface $connection)

Get the statement binding limit without requiring a PDO-backed custom driver.

Details

at line 18
protected void insertDatabaseRows(ConnectionInterface $connection, string $table, array $rows)

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

Parameters

ConnectionInterface $connection
string $table
array $rows

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

at line 53
protected int maxBindings(ConnectionInterface $connection)

Get the statement binding limit without requiring a PDO-backed custom driver.

Parameters

ConnectionInterface $connection

Return Value

int