{"id":23629675,"url":"https://github.com/sumpygump/qi-db","last_synced_at":"2026-03-06T05:02:46.233Z","repository":{"id":10733432,"uuid":"12987927","full_name":"sumpygump/qi-db","owner":"sumpygump","description":"Basic PHP adapter classes for accessing databases.","archived":false,"fork":false,"pushed_at":"2025-09-20T12:43:26.000Z","size":34,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-20T14:44:08.202Z","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/sumpygump.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2013-09-21T02:09:58.000Z","updated_at":"2024-07-12T22:01:53.000Z","dependencies_parsed_at":"2024-07-12T23:39:29.868Z","dependency_job_id":null,"html_url":"https://github.com/sumpygump/qi-db","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/sumpygump/qi-db","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sumpygump%2Fqi-db","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sumpygump%2Fqi-db/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sumpygump%2Fqi-db/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sumpygump%2Fqi-db/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sumpygump","download_url":"https://codeload.github.com/sumpygump/qi-db/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sumpygump%2Fqi-db/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30162716,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-06T04:43:31.446Z","status":"ssl_error","status_checked_at":"2026-03-06T04:40:30.133Z","response_time":250,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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-12-28T01:16:50.626Z","updated_at":"2026-03-06T05:02:46.210Z","avatar_url":"https://github.com/sumpygump.png","language":"PHP","readme":"qi-db\n=====\n\nQi Db provides PHP library classes for running SQL on databases.\n\n## Installation with Composer\n\nUse composer to include the `Qi\\Db` library in a project.\n\n```\ncomposer require sumpygump/qi-db\n```\n\nIf you don't have composer already installed, this is my recommendation for\ninstalling it. See\n[getcomposer.org installation instructions](http://getcomposer.org/doc/00-intro.md#globally).\n\nOnce the files have been composed with the `composer install` command, you can\nuse any of the `Qi\\Db` classes after composer's autoloader is included.\n\n```php\nrequire 'vendor/autoload.php';\n\n$db = new Qi\\Db\\PdoMysql();\n// ...\n```\n\n## Manual Installation\n\nYou can also download the files and place them in a library folder. If you do\nthis, be sure to update your autoloader to handle the `Qi_Db_*` classes or\nelse manually include the files of the classes you'll need.\n\n## Basic Usage\n\nThis is some example code that illustrates connecting to a Mysql database:\n\n```\n$dbConfig = [\n    'host' =\u003e 'localhost',\n    'db'   =\u003e 'databasename',\n    'user' =\u003e 'username',\n    'pass' =\u003e 'mypassword',\n];\n$db = new Qi\\Db\\PdoMysql($dbConfig);\n```\n\nThis is some example code that illustrates using the `insert()` and `fetchRow()`\nmethods of the PdoMysql class.\n\n```\n// This will insert a new record into a `users` table\n$newRow = [\n    'email' =\u003e 'test@example.com',\n    'first_name' =\u003e 'Joe',\n    'last_name' =\u003e 'Schmoe',\n];\n$db-\u003einsert('users', $newRow);\n\n// This will fetch a user by email address\n$user = $db-\u003efetchRow(\"SELECT * FROM `users` WHERE `email`=?\", ['test@example.com']);\n```\n\nPlease check the class source code for the full list of other methods that can\nbe used.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsumpygump%2Fqi-db","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsumpygump%2Fqi-db","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsumpygump%2Fqi-db/lists"}