method deleteCompleted documentation in bbn\Db\Sync

function(float $start = NULL) { if (!self::isInit()) { die("DB sync is not initiated"); } if (!$start || !($start = self::$sync_connection->selectOne( self::$sync_table, 'MIN(chrono)', [ ['db', 'NOT LIKE', self::$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 self::$sync_connection->delete( self::$sync_table, [ 'db' => self::$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.