friendica/src/Database/IDatabaseLock.php

23 lines
344 B
PHP
Raw Normal View History

2019-02-28 13:38:25 +01:00
<?php
namespace Friendica\Database;
interface IDatabaseLock
{
/**
* Locks a table for exclusive write access
*
* @param string $table The table name
*
* @return bool Was the lock successful?
*/
function lock($table);
/**
* Unlocks all locked tables
*
* @return bool Was the unlock successful?
*/
function unlock();
}