{"id":19124664,"url":"https://github.com/duncan3dc/sql-class","last_synced_at":"2025-05-05T19:27:29.256Z","repository":{"id":16795484,"uuid":"19554130","full_name":"duncan3dc/sql-class","owner":"duncan3dc","description":"A simple database abstraction layer for PHP, with an on disk caching facility. ","archived":false,"fork":false,"pushed_at":"2025-03-06T13:52:20.000Z","size":1256,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-19T11:10:51.841Z","etag":null,"topics":["mysql","odbc","php","sql"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/duncan3dc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2014-05-07T23:42:12.000Z","updated_at":"2025-03-06T13:52:17.000Z","dependencies_parsed_at":"2024-11-09T05:30:25.244Z","dependency_job_id":"a82386dd-0cd4-48ba-afb7-3d56c87d3dcf","html_url":"https://github.com/duncan3dc/sql-class","commit_stats":{"total_commits":181,"total_committers":3,"mean_commits":"60.333333333333336","dds":"0.011049723756906049","last_synced_commit":"18c04bc67501c38fdba1a2bc0301bdc28a7f8a5a"},"previous_names":[],"tags_count":65,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duncan3dc%2Fsql-class","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duncan3dc%2Fsql-class/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duncan3dc%2Fsql-class/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duncan3dc%2Fsql-class/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/duncan3dc","download_url":"https://codeload.github.com/duncan3dc/sql-class/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252562175,"owners_count":21768250,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["mysql","odbc","php","sql"],"created_at":"2024-11-09T05:29:48.717Z","updated_at":"2025-05-05T19:27:29.240Z","avatar_url":"https://github.com/duncan3dc.png","language":"PHP","readme":"sql-class\n=========\n\nA simple database abstraction layer, with an on disk caching facility.  \n\nFull documentation is available at http://duncan3dc.github.io/sql-class/  \nPHPDoc API documentation is also available at [http://duncan3dc.github.io/sql-class/api/](http://duncan3dc.github.io/sql-class/api/namespaces/duncan3dc.SqlClass.html)  \n\n[![Build Status](https://github.com/duncan3dc/sql-class/workflows/.github/workflows/buildcheck.yml/badge.svg?branch=main)](https://github.com/duncan3dc/sql-class/actions/workflows/buildcheck.yml)\n[![Latest Version](https://img.shields.io/packagist/v/duncan3dc/sql-class.svg)](https://packagist.org/packages/duncan3dc/sql-class)\n\n\nExamples\n--------\n\nThe classes use a namespace of duncan3dc\\SqlClass\n```php\nuse duncan3dc\\SqlClass\\Sql;\n```\n\n-------------------\n\n```php\n$sql = new Sql([\n    \"mode\"      =\u003e  \"mysql\",\n    \"hostname\"  =\u003e  \"localhost\",\n    \"username\"  =\u003e  \"root\",\n    \"password\"  =\u003e  \"password\",\n]);\n\n$row = $sql-\u003eselect(\"table_1\",[\n    \"field1\"    =\u003e  \"one\",\n    \"field2\"    =\u003e  \"two\",\n]);\n\n$sql-\u003eupdate(\"table_1\",[\n    \"field3\"    =\u003e  \"three\",\n],[\n    \"field1\"    =\u003e  $row[\"field1\"],\n    \"field2\"    =\u003e  $row[\"field2\"],\n])\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fduncan3dc%2Fsql-class","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fduncan3dc%2Fsql-class","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fduncan3dc%2Fsql-class/lists"}