Example #1
0
function cleanDoneOrCanceledLog()
{
    foreach (getAllDbsForDoneOrCanceledLog() as $dbInfo) {
        $link = connect($dbInfo);
        if ($link) {
            \database\cleanDoneOrCanceledLog($link);
        }
    }
}
Example #2
0
function getDbForDoneOrCanceledLog($customerId)
{
    return chooseShard(getAllDbsForDoneOrCanceledLog(), $customerId);
}