Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Batch insert #6

Open
baukevdw opened this issue Jun 22, 2020 · 0 comments
Open

Batch insert #6

baukevdw opened this issue Jun 22, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@baukevdw
Copy link
Member

Add support for batch inserts on the connection and query builder

/**
 * @param string $table  The table to insert the given records in
 * @param array[] $rows The rows to insert into the table
 */
public function batchInsert(string $table, array $rows): int

Each row should consist of an key-value array where the key should match the column name.
All the rows should contain the same amount of columns.
The order of the columns doesn't matter (the implementation should sort the keys alphabetically ksort).

@baukevdw baukevdw added the enhancement New feature or request label Jun 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant