Bulk
Read onlyYes
FinalYes
Methods
- __construct() : mixed
- create() : self
- insert() : void
- Insert data into the database in bulk.
- update() : void
Methods
__construct()
public
__construct(QueryFactory $queryFactory) : mixed
Parameters
- $queryFactory : QueryFactory
create()
public
static create() : self
Return values
selfinsert()
Insert data into the database in bulk.
public
insert(Connection $connection, string $table, BulkData $bulkData[, InsertOptions|null $options = null ]) : void
Insert should be used whenever you want to insert a large number of rows into a table or upsert them.
Each database platform has its own way of handling bulk inserts, please make sure to use the correct implementation of InsertOptions for your platform.
Parameters
- $connection : Connection
- $table : string
- $bulkData : BulkData
- $options : InsertOptions|null = null
Tags
update()
public
update(Connection $connection, string $table, BulkData $bulkData[, UpdateOptions|null $options = null ]) : void
Parameters
- $connection : Connection
- $table : string
- $bulkData : BulkData
- $options : UpdateOptions|null = null