stefano / stefano-lock-table
Build lock table sql query
Installs: 5 657
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/stefano/stefano-lock-table
Requires
- php: >=7.1.0
 
Requires (Dev)
- mockery/mockery: ^1.0.0
 - php-coveralls/php-coveralls: ^2.0
 - phpunit/phpunit: >=7 <10
 
This package is auto-updated.
Last update: 2025-10-29 01:42:02 UTC
README
Instalation using Composer
- Run command  
composer require stefano/stefano-lock-table 
Features
- build lock table sql string
 - build unlock table sql string
 - supported vendors mysql, postgresql
 
Usage
$factory = new \StefanoLockTable\Factory();
$vendor = 'Mysql'; //or any supported database
$adapter = $factory->createAdapter($vendor);
//build lock table sql string (exclusive lock)
$adapter->getLockSqlString('tableName');
$adapter->getLockSqlString(array('tableName', 'anotherTable'));
//build unlock table sql string
$adapter->getUnlockSqlString();