mirror of
https://github.com/friendica/friendica
synced 2024-05-13 06:09:37 +02:00
23 lines
344 B
PHP
23 lines
344 B
PHP
|
<?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();
|
||
|
}
|