mako-framework/mako-framework — Issue #24: Add bulk-insert functionality to the query builder
Author: kula-shakerz
Created: 2012-03-09 10:54:50+00:00
State: open
Labels: feature

Make it possible to insert multiple rows

$rows = array
(
array('username' => foo', 'password' => Database::raw("MD5('foo123')")),
array('username' => bar', 'password' => Database::raw("MD5('bar123')")),
);

Database::to('users')->insert($rows);