Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bartko-s/stefano-lock-table
https://github.com/bartko-s/stefano-lock-table
Last synced: 5 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/bartko-s/stefano-lock-table
- Owner: bartko-s
- Created: 2014-01-23T15:32:34.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2022-09-30T18:56:20.000Z (over 2 years ago)
- Last Synced: 2024-12-11T05:25:35.072Z (about 1 month ago)
- Language: PHP
- Size: 13.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Stefano Lock Table
===================[![Build Status](https://app.travis-ci.com/bartko-s/stefano-lock-table.svg?branch=master)](https://app.travis-ci.com/bartko-s/stefano-lock-table)
[![Coverage Status](https://coveralls.io/repos/bartko-s/stefano-lock-table/badge.png?branch=master)](https://coveralls.io/r/bartko-s/stefano-lock-table?branch=master)Instalation using Composer
--------------------------
1. Run command ``` composer require stefano/stefano-lock-table ```Features
------------
- build lock table sql string
- build unlock table sql string
- supported vendors mysql, postgresqlUsage
-----```
$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();
```