crunch/incubator — Issue #83: Remove "inMapper" from sqlite\Connection methods
Author: KingCrunch
Created: 2012-01-21 23:46:09+00:00
State: open

The parameter `$outMapper` is useful, because when there are more than one result for a query every row is automatically map. However, for the parameters, that go into the query, the mapping can be done outside much easier

$c->exec(
$q,
array(
'param' => $datetime
),
function ($in) {
$in['param'] = $in['param']->format('c');
return $in;
}
);

$c->exec(
$q,
array(
'param' => $datetime->format('c)
)
);