{"id":19326126,"url":"https://github.com/bartko-s/stefano-lock-table","last_synced_at":"2026-05-12T20:41:45.624Z","repository":{"id":57059426,"uuid":"16176485","full_name":"bartko-s/stefano-lock-table","owner":"bartko-s","description":null,"archived":false,"fork":false,"pushed_at":"2022-09-30T18:56:20.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-04T22:04:49.250Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bartko-s.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-01-23T15:32:34.000Z","updated_at":"2022-09-30T18:50:43.000Z","dependencies_parsed_at":"2022-08-24T14:53:27.483Z","dependency_job_id":null,"html_url":"https://github.com/bartko-s/stefano-lock-table","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/bartko-s/stefano-lock-table","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bartko-s%2Fstefano-lock-table","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bartko-s%2Fstefano-lock-table/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bartko-s%2Fstefano-lock-table/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bartko-s%2Fstefano-lock-table/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bartko-s","download_url":"https://codeload.github.com/bartko-s/stefano-lock-table/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bartko-s%2Fstefano-lock-table/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32956818,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-12T09:19:52.626Z","status":"ssl_error","status_checked_at":"2026-05-12T09:17:33.438Z","response_time":102,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-10T02:12:32.251Z","updated_at":"2026-05-12T20:41:45.594Z","avatar_url":"https://github.com/bartko-s.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Stefano Lock Table\r\n===================\r\n\r\n[![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)\r\n[![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)\r\n\r\nInstalation using Composer\r\n--------------------------\r\n1. Run command  ``` composer require stefano/stefano-lock-table ```\r\n\r\nFeatures\r\n------------\r\n- build lock table sql string\r\n- build unlock table sql string\r\n- supported vendors mysql, postgresql\r\n\r\nUsage\r\n-----\r\n\r\n```\r\n$factory = new \\StefanoLockTable\\Factory();\r\n\r\n$vendor = 'Mysql'; //or any supported database\r\n$adapter = $factory-\u003ecreateAdapter($vendor);\r\n\r\n//build lock table sql string (exclusive lock)\r\n$adapter-\u003egetLockSqlString('tableName');\r\n$adapter-\u003egetLockSqlString(array('tableName', 'anotherTable'));\r\n\r\n//build unlock table sql string\r\n$adapter-\u003egetUnlockSqlString();\r\n```\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbartko-s%2Fstefano-lock-table","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbartko-s%2Fstefano-lock-table","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbartko-s%2Fstefano-lock-table/lists"}