method deleteCompleted documentation in bbn\Db\Sync2
function(float $start = NULL)
{
if (!self::isInit()) {
die("DB sync is not initiated");
}
if (!$start
|| !($start = $this->sync_connection->selectOne(
$this->sync_table, 'MIN(chrono)', [
['db', 'NOT LIKE', $this->current_connection->getCurrent()],
'state' => 0
]
))
) {
$start = time();
}
// Deleting the entries prior to this sync we produced and have been seen by the twin process
return $this->sync_connection->delete(
$this->sync_table, [
'db' => $this->current_connection->getCurrent(),
'state'=> 1,
['chrono', '<', $start]
]
);
}
BBN is a suite of PHP and JS libraries and VueJS components - all open-source! bbn.io, build applications, the quick way
This website uses cookies to ensure you get the best experience on our website.
© 2011-2025
BBN Solutions