Skip to content

ostrolucky/doctrine-bulk-insert

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Doctrine/DBAL Bulk Insert

The library is based on the gist and provides bulk insert functionality to the Doctrine/DBAL.

Usage

<?php

use Doctrine\DBAL\Connection;
use Franzose\DoctrineBulkInsert\Query;

// Prepare database connection
$connection = new Connection(...);

// Execute query and get affected rows back
$rows = (new Query($connection))->execute('foo', [
    ['foo' => 111, 'bar' => 222],
    ['foo' => 333, 'bar' => 444],
]);

About

Bulk insert functionality for the Doctrine/DBAL

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • PHP 100.0%